The following shell scripts list all functions that contain all git commands
- updateGitBranch.sh - Push all commits to master repository
- newGitBranch.sh - Create a new branch and push it straight to the remote repository
- deleteGitBranch.sh - Delete a specific branch in a repository and push it to the remote repository (make sure that you have commited to the remote or stash, and are not in the to-be-deleted branch)
git remote set-url origin https://<token_number_here>@github.com/lnugraha/repository_name.git
git push -u origin main
git reset --hard <version_number>
git commit -am "Write your comments here!"
git clone -b develop git@repository_full_address_here.git
history | tail -25
history | grep echo | tail -25
ps -au
kill -9 process_number_to_be_killed
// Enable start-up chime
sudo nvram BootAudio=%01
// Disable start-up chime
sudo nvram BootAudio=%00
// Enable power chime
defaults write com.apple.PowerChime ChimeOnAllHardware -bool TRUE; open /System/Library/CoreServices/PowerChime.app &
// Disable power chime
defaults write com.apple.PowerChime ChimeOnAllHardware -bool FALSE; killall PowerChime
// This sound indicates that your MacBook is charging upon plugging in power cables
afplay /System/Library/CoreServices/PowerChime.app/Contents/Resources/connect_power.aif
// Enable boot-up by lid-lifting (default configuration)
sudo nvram AutoBoot=%03
// Disable boot-up by lid-lifting
sudo nvram AutoBoot=%00
// Disable shadow effect
defaults write com.apple.screencapture disable-shadow -bool TRUE
// Enable shadow effect (default configuration)
defaults write com.apple.screencapture disable-shadow -bool FALSE