Advanced Search
Search Results
5 total results found
Linux Hard Drive Management
Mounting a new drive lsblk # Find the drive you want to use fdisk /dev/sdc # sdc is an example, change accordingly. g # make a new GPT table (wipe out old partitions, start fresh) n # enter enter enter (use 1 partition, use entire disk) w # write changes reboo...
Reset Repo Commits
Linux export GIT_RESET_USER=yourUserNameOrOrgName export GIT_RESET_REPO=yourRepoName export GIT_HOST=https://git.chse.dev rm -rf .git git init git add . git checkout -b main git commit -m "Initial Commit" git remote add origin $GIT_HOST/$GIT_RESET_USER/$GIT_RE...
GitHub API: Organization Membership
This simple curl command will set your membership to public/private for any organization. A use case would be an organization so big you can't search for yourself. For this to work, you need a GitHub Personal Access Token. # To make an org private, replace PUT...
Saving chmod +x in a Git Repo
export fileType=.sh git config core.fileMode true find . -type f -iname "*$fileType" -exec chmod +x {} \; find . -type f -iname "*$fileType" -exec git update-index --chmod=+x {} \; git add . && git commit -am "Update Execute Permissions" && git push
Ghost Snippets
Place any of the following in your Code Injection settings. Found in: Ghost Admin -> Settings -> Advanced -> Code Injection Site Header <style> /* Make Hamburger Menu (Mobile) Visible on Dark Mode */ .gh-burger:after, .gh-burger:before { ba...