From 68e1605c018e42f3a6bc878a0def44d2b33a4bba Mon Sep 17 00:00:00 2001 From: kunsang Date: Fri, 9 Apr 2021 14:31:16 +0200 Subject: [PATCH 01/13] Make public ip alias working again --- .aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.aliases b/.aliases index 3387fa0609e..c4b6ccb8bf2 100644 --- a/.aliases +++ b/.aliases @@ -56,7 +56,7 @@ alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome' alias canary='/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary' # IP addresses -alias ip="dig +short myip.opendns.com @resolver1.opendns.com" +alias ip="dig @resolver4.opendns.com myip.opendns.com +short" alias localip="ipconfig getifaddr en0" alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'" From c18ff512dce1d00c4d69778ba20ea35acaf6d0c1 Mon Sep 17 00:00:00 2001 From: Kunsang Norbu Tsering Date: Fri, 9 Apr 2021 16:28:33 +0200 Subject: [PATCH 02/13] Added mandatory IPv6 alias and made ip(4) 'fuzzy' --- .aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.aliases b/.aliases index c4b6ccb8bf2..ff2fc0f9300 100644 --- a/.aliases +++ b/.aliases @@ -56,7 +56,8 @@ alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome' alias canary='/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary' # IP addresses -alias ip="dig @resolver4.opendns.com myip.opendns.com +short" +alias ip{4,}='dig @resolver4.opendns.com myip.opendns.com +short -4' #you can use ip4 or ip to get your ipv4 +alias ip6='dig @ns1.google.com TXT o-o.myaddr.l.google.com +short -6' #https://unix.stackexchange.com/a/81699 alias localip="ipconfig getifaddr en0" alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'" From e35757a72f2c305f280b4627631fffad1f4cd8b5 Mon Sep 17 00:00:00 2001 From: kunsang Date: Mon, 3 May 2021 20:23:38 +0200 Subject: [PATCH 03/13] personal prefs in .macos and killchrome command fix --- .aliases | 2 ++ .macos | 60 ++++++++++++++++++++++++++++---------------------------- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/.aliases b/.aliases index ff2fc0f9300..72a48a7cb26 100644 --- a/.aliases +++ b/.aliases @@ -138,6 +138,8 @@ alias pumpitup="osascript -e 'set volume output volume 100'" # Kill all the tabs in Chrome to free up memory # [C] explained: http://www.commandlinefu.com/commands/view/402/exclude-grep-from-your-grepped-output-of-ps-alias-included-in-description alias chromekill="ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill" +# force kill all chrome tabs (previous method didnt work after BIG SUR) +alias killchrome='kill -9 $(ps aux | grep -i "Chrome\ Helper" | awk "{print $2}")' # Lock the screen (when going AFK) alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend" diff --git a/.macos b/.macos index ec81a260ba1..a7e90c7ce09 100755 --- a/.macos +++ b/.macos @@ -23,16 +23,16 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & #sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "0x6D746873" # Disable the sound effects on boot -sudo nvram SystemAudioVolume=" " +# sudo nvram SystemAudioVolume=" " # Disable transparency in the menu bar and elsewhere on Yosemite -defaults write com.apple.universalaccess reduceTransparency -bool true +# defaults write com.apple.universalaccess reduceTransparency -bool true # Set highlight color to green defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600" # Set sidebar icon size to medium -defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2 +# defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2 # Always show scrollbars defaults write NSGlobalDomain AppleShowScrollBars -string "Always" @@ -46,7 +46,7 @@ defaults write NSGlobalDomain NSToolbarTitleViewRolloverDelay -float 0 # Disable smooth scrolling # (Uncomment if you’re on an older Mac that messes up the animation) -#defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false +defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false # Increase window resize speed for Cocoa applications defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 @@ -180,7 +180,7 @@ sudo systemsetup -settimezone "Europe/Brussels" > /dev/null ############################################################################### # Enable lid wakeup -sudo pmset -a lidwake 1 +# sudo pmset -a lidwake 1 # Restart automatically on power loss sudo pmset -a autorestart 1 @@ -189,16 +189,16 @@ sudo pmset -a autorestart 1 sudo systemsetup -setrestartfreeze on # Sleep the display after 15 minutes -sudo pmset -a displaysleep 15 +# sudo pmset -a displaysleep 15 # Disable machine sleep while charging -sudo pmset -c sleep 0 +# sudo pmset -c sleep 0 # Set machine sleep to 5 minutes on battery -sudo pmset -b sleep 5 +# sudo pmset -b sleep 5 # Set standby delay to 24 hours (default is 1 hour) -sudo pmset -a standbydelay 86400 +# sudo pmset -a standbydelay 86400 # Never go into computer sleep mode sudo systemsetup -setcomputersleep Off > /dev/null @@ -285,11 +285,11 @@ defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" # Disable the warning when changing a file extension defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false -# Enable spring loading for directories -defaults write NSGlobalDomain com.apple.springing.enabled -bool true +# Disable spring loading for directories +defaults write NSGlobalDomain com.apple.springing.enabled -bool false # Remove the spring loading delay for directories -defaults write NSGlobalDomain com.apple.springing.delay -float 0 +# defaults write NSGlobalDomain com.apple.springing.delay -float 0 # Avoid creating .DS_Store files on network or USB volumes defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true @@ -345,8 +345,8 @@ chflags nohidden ~/Library && xattr -d com.apple.FinderInfo ~/Library sudo chflags nohidden /Volumes # Remove Dropbox’s green checkmark icons in Finder -file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns -[ -e "${file}" ] && mv -f "${file}" "${file}.bak" +# file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns +# [ -e "${file}" ] && mv -f "${file}" "${file}.bak" # Expand the following File Info panes: # “General”, “Open with”, and “Sharing & Permissions” @@ -363,13 +363,13 @@ defaults write com.apple.finder FXInfoPanesExpanded -dict \ defaults write com.apple.dock mouse-over-hilite-stack -bool true # Set the icon size of Dock items to 36 pixels -defaults write com.apple.dock tilesize -int 36 +# defaults write com.apple.dock tilesize -int 36 # Change minimize/maximize window effect defaults write com.apple.dock mineffect -string "scale" # Minimize windows into their application’s icon -defaults write com.apple.dock minimize-to-application -bool true +# defaults write com.apple.dock minimize-to-application -bool true # Enable spring loading for all Dock items defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true @@ -748,31 +748,31 @@ defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen -bool true ############################################################################### # Enable the WebKit Developer Tools in the Mac App Store -defaults write com.apple.appstore WebKitDeveloperExtras -bool true +# defaults write com.apple.appstore WebKitDeveloperExtras -bool true # Enable Debug Menu in the Mac App Store -defaults write com.apple.appstore ShowDebugMenu -bool true +# defaults write com.apple.appstore ShowDebugMenu -bool true # Enable the automatic update check -defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true +# defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true # Check for software updates daily, not just once per week -defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 +# defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 # Download newly available updates in background -defaults write com.apple.SoftwareUpdate AutomaticDownload -int 1 +# defaults write com.apple.SoftwareUpdate AutomaticDownload -int 1 # Install System data files & security updates -defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 1 +# defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 1 # Automatically download apps purchased on other Macs -defaults write com.apple.SoftwareUpdate ConfigDataInstall -int 1 +# defaults write com.apple.SoftwareUpdate ConfigDataInstall -int 1 # Turn on app auto-update -defaults write com.apple.commerce AutoUpdate -bool true +# defaults write com.apple.commerce AutoUpdate -bool true # Allow the App Store to reboot machine on macOS updates -defaults write com.apple.commerce AutoUpdateRestartRequired -bool true +# defaults write com.apple.commerce AutoUpdateRestartRequired -bool true ############################################################################### # Photos # @@ -844,25 +844,25 @@ defaults write com.irradiatedsoftware.SizeUp ShowPrefsOnNextStart -bool false ############################################################################### # Install Sublime Text settings -cp -r init/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text*/Packages/User/Preferences.sublime-settings 2> /dev/null +# cp -r init/Preferences.sublime-settings ~/Library/Application\ Support/Sublime\ Text*/Packages/User/Preferences.sublime-settings 2> /dev/null ############################################################################### # Spectacle.app # ############################################################################### # Set up my preferred keyboard shortcuts -cp -r init/spectacle.json ~/Library/Application\ Support/Spectacle/Shortcuts.json 2> /dev/null +# cp -r init/spectacle.json ~/Library/Application\ Support/Spectacle/Shortcuts.json 2> /dev/null ############################################################################### # Transmission.app # ############################################################################### # Use `~/Documents/Torrents` to store incomplete downloads -defaults write org.m0k.transmission UseIncompleteDownloadFolder -bool true -defaults write org.m0k.transmission IncompleteDownloadFolder -string "${HOME}/Documents/Torrents" +# defaults write org.m0k.transmission UseIncompleteDownloadFolder -bool true +# defaults write org.m0k.transmission IncompleteDownloadFolder -string "${HOME}/Documents/Torrents" # Use `~/Downloads` to store completed downloads -defaults write org.m0k.transmission DownloadLocationConstant -bool true +# defaults write org.m0k.transmission DownloadLocationConstant -bool true # Don’t prompt for confirmation before downloading defaults write org.m0k.transmission DownloadAsk -bool false From 72d388c52b7e173644818195ec28f862f2efbc02 Mon Sep 17 00:00:00 2001 From: sgc_Kreation_05 Date: Tue, 3 Aug 2021 10:38:17 +0200 Subject: [PATCH 04/13] add some casks to brewfile --- brew.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/brew.sh b/brew.sh index 26508ee43dd..c9846b0c45b 100755 --- a/brew.sh +++ b/brew.sh @@ -97,5 +97,13 @@ brew install tree brew install vbindiff brew install zopfli +# macos casks +brew install --cask google-chrome +brew install --cask bettertouchtool +brew install --cask alfred +brew install --cask sublime-text +brew install --cask kitty +brew install --cask vlc + # Remove outdated versions from the cellar. brew cleanup From ba0387defcc1085cdee00e73ec5ae9326697c8c3 Mon Sep 17 00:00:00 2001 From: Kunsang Date: Tue, 3 Aug 2021 11:07:22 +0200 Subject: [PATCH 05/13] disable gpg signing --- .gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index e06fb559cc1..a7ea2472404 100644 --- a/.gitconfig +++ b/.gitconfig @@ -127,7 +127,7 @@ [commit] # https://help.github.com/articles/signing-commits-using-gpg/ - gpgsign = true + # gpgsign = true [diff] From 7a3bc9caf823a20c5e76bfdd7b14eb7b7359f11e Mon Sep 17 00:00:00 2001 From: Kunsang Date: Thu, 5 Aug 2021 10:58:11 +0200 Subject: [PATCH 06/13] add aditional casks --- brew.sh | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/brew.sh b/brew.sh index c9846b0c45b..e57ca93a8f1 100755 --- a/brew.sh +++ b/brew.sh @@ -97,13 +97,46 @@ brew install tree brew install vbindiff brew install zopfli -# macos casks +# Install macos casks brew install --cask google-chrome brew install --cask bettertouchtool brew install --cask alfred brew install --cask sublime-text brew install --cask kitty +brew install --cask tinypng4mac +brew install --cask suspicious-package +brew install --cask svgcleaner +brew install --cask runjs +brew install --cask poedit +brew install --cask nsregextester +brew install --cask noun-project +brew install --cask keka +brew install --cask jdiskreport +brew install --cask hacker-menu +# brew install --cask glyphfinder +brew install --cask geekbench +brew install --cask geektool +brew install --cask docker +brew install --cask developerexcuses +brew install --cask deepl +brew install --cask console +brew install --cask bigsur-cache-cleaner + brew install --cask vlc +brew install --cask xld +brew install --cask vox +brew install --cask spek +brew install --cask soulseek +brew install --cask transmission +brew install --cask musicbrainz-picard +brew install --cask moebius +brew install --cask mixed-in-key +brew install --cask losslesscut +brew install --cask fastclicker +brew install --cask cocktail +brew install --cask cncnet +brew install --cask camera-live + # Remove outdated versions from the cellar. brew cleanup From 8f9cbeb28ff9344e52ed1c4164d485e7e9a65470 Mon Sep 17 00:00:00 2001 From: sgc_Kreation_05 Date: Mon, 9 Aug 2021 10:58:38 +0200 Subject: [PATCH 07/13] add more casks and git aliases --- .aliases | 8 ++++++++ brew.sh | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.aliases b/.aliases index 72a48a7cb26..d2979fb4fbe 100644 --- a/.aliases +++ b/.aliases @@ -15,6 +15,14 @@ alias dt="cd ~/Desktop" alias p="cd ~/projects" alias g="git" +alias gs="git status" +alias gd="git diff" +alias ga="git add" +alias gcm="git commit -m" + + + + # Detect which `ls` flavor is in use if ls --color > /dev/null 2>&1; then # GNU `ls` colorflag="--color" diff --git a/brew.sh b/brew.sh index e57ca93a8f1..7318af245bd 100755 --- a/brew.sh +++ b/brew.sh @@ -96,6 +96,7 @@ brew install ssh-copy-id brew install tree brew install vbindiff brew install zopfli +brew install archey # Install macos casks brew install --cask google-chrome @@ -122,6 +123,7 @@ brew install --cask deepl brew install --cask console brew install --cask bigsur-cache-cleaner + brew install --cask vlc brew install --cask xld brew install --cask vox From 495d134d6efc946a8879394030b7eae2234966e3 Mon Sep 17 00:00:00 2001 From: sgc_Kreation_05 Date: Mon, 9 Aug 2021 11:02:06 +0200 Subject: [PATCH 08/13] fix bash-profile --- .bash_profile | 4 ++++ brew.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/.bash_profile b/.bash_profile index f79b6145e40..8c64806d89e 100644 --- a/.bash_profile +++ b/.bash_profile @@ -48,3 +48,7 @@ complete -W "NSGlobalDomain" defaults; # Add `killall` tab completion for common apps complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes SystemUIServer Terminal Twitter" killall; + +# https://obihann.github.io/archey-osx/ +clear +archey diff --git a/brew.sh b/brew.sh index 7318af245bd..14a679ec878 100755 --- a/brew.sh +++ b/brew.sh @@ -138,6 +138,7 @@ brew install --cask fastclicker brew install --cask cocktail brew install --cask cncnet brew install --cask camera-live +brew install bandcamp-dl # Remove outdated versions from the cellar. From 704301069846d0fad0b70e91056e5e60a23c1645 Mon Sep 17 00:00:00 2001 From: sgc_Kreation_05 Date: Mon, 9 Aug 2021 16:15:50 +0200 Subject: [PATCH 09/13] add git aliases --- .aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.aliases b/.aliases index d2979fb4fbe..e823b75bc82 100644 --- a/.aliases +++ b/.aliases @@ -19,7 +19,7 @@ alias gs="git status" alias gd="git diff" alias ga="git add" alias gcm="git commit -m" - +alias gp="git push" From 75d9ec7281b4fe4a4540f8fa127bc8a5065b34c6 Mon Sep 17 00:00:00 2001 From: Kunsang Norbu Tsering Date: Tue, 17 Aug 2021 09:28:38 +0200 Subject: [PATCH 10/13] add more casks --- brew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brew.sh b/brew.sh index 14a679ec878..d17cfb8a128 100755 --- a/brew.sh +++ b/brew.sh @@ -100,6 +100,7 @@ brew install archey # Install macos casks brew install --cask google-chrome +brew install --cask brave-browser brew install --cask bettertouchtool brew install --cask alfred brew install --cask sublime-text @@ -118,7 +119,6 @@ brew install --cask hacker-menu brew install --cask geekbench brew install --cask geektool brew install --cask docker -brew install --cask developerexcuses brew install --cask deepl brew install --cask console brew install --cask bigsur-cache-cleaner From 3471e2c7d8677acbfe54c386258577b06a2d3e7a Mon Sep 17 00:00:00 2001 From: Kunsang Norbu Tsering Date: Tue, 17 Aug 2021 09:46:58 +0200 Subject: [PATCH 11/13] add user to gitconfig --- .gitconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index a7ea2472404..4d194939a55 100644 --- a/.gitconfig +++ b/.gitconfig @@ -180,4 +180,7 @@ [init] - defaultBranch = main + defaultBranch = master +[user] + name = Kunsang Norbu Tsering + email = tsering@sumnergroh.com From fd975b55e766329c86de946057f268c7d0a38b6b Mon Sep 17 00:00:00 2001 From: Kunsang Norbu Tsering Date: Tue, 17 Aug 2021 09:59:04 +0200 Subject: [PATCH 12/13] add firefox, local casks --- brew.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brew.sh b/brew.sh index d17cfb8a128..e2de2f7ebeb 100755 --- a/brew.sh +++ b/brew.sh @@ -101,10 +101,12 @@ brew install archey # Install macos casks brew install --cask google-chrome brew install --cask brave-browser +brew install --cask firefox brew install --cask bettertouchtool brew install --cask alfred brew install --cask sublime-text brew install --cask kitty +brew install --cask local brew install --cask tinypng4mac brew install --cask suspicious-package brew install --cask svgcleaner @@ -115,7 +117,6 @@ brew install --cask noun-project brew install --cask keka brew install --cask jdiskreport brew install --cask hacker-menu -# brew install --cask glyphfinder brew install --cask geekbench brew install --cask geektool brew install --cask docker From 797fd59137859b62078edde898a288b1a82f9875 Mon Sep 17 00:00:00 2001 From: Kunsang Norbu Tsering Date: Tue, 17 Aug 2021 10:02:28 +0200 Subject: [PATCH 13/13] add vivaldi cask --- brew.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/brew.sh b/brew.sh index e2de2f7ebeb..8fbc9fbd778 100755 --- a/brew.sh +++ b/brew.sh @@ -102,6 +102,7 @@ brew install archey brew install --cask google-chrome brew install --cask brave-browser brew install --cask firefox +brew install --cask vivaldi brew install --cask bettertouchtool brew install --cask alfred brew install --cask sublime-text