# Forked from https://gist.github.com/gguerini
# Syntax edits by Sick Codes (GPLv3+)
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"This is just a note to my future self - no assurances it will work for you!
This fix isn't permanent and will be overwritten by the system arbitrarily, hence why I wrote down the steps and script that worked for me here so I can easily set it again. The previous sentence was true until macOS Sonoma (14) was released, which now allows TouchID for sudo to persist across updates and restarts. The script will automatically detect if you are on Sonoma or later and apply that permanent change instead of the earlier, non-permanent fix.
Copy + run the line below.
curl -fsSL https://gist.githubusercontent.com/uncenter/604233698c41f1c54079760b93fbabf0/raw/x.sh | sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| z/rt/gcAAAEDAACAAgAAABAAAABIBgAAhQAgAAAAAAAZAAAASAAAAF9fUEFHRVpF | |
| Uk8AAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
| AAAAAAAAAAAZAAAAKAIAAF9fVEVYVAAAAAAAAAAAAAAAAAAAAQAAAACgAAAAAAAA | |
| AAAAAAAAAAAAoAAAAAAAAAUAAAAFAAAABgAAAAAAAABfX3RleHQAAAAAAAAAAAAA | |
| X19URVhUAAAAAAAAAAAAAOgVAAABAAAAnHIAAAAAAADoFQAAAgAAAAAAAAAAAAAA | |
| AAQAgAAAAAAAAAAAAAAAAF9fc3R1YnMAAAAAAAAAAABfX1RFWFQAAAAAAAAAAAAA | |
| hIgAAAEAAADmAQAAAAAAAISIAAABAAAAAAAAAAAAAAAIBACAAAAAAAYAAAAAAAAA | |
| X19zdHViX2hlbHBlcgAAAF9fVEVYVAAAAAAAAAAAAABsigAAAQAAADoDAAAAAAAA | |
| bIoAAAIAAAAAAAAAAAAAAAAEAIAAAAAAAAAAAAAAAABfX2NzdHJpbmcAAAAAAAAA | |
| X19URVhUAAAAAAAAAAAAAKaNAAABAAAA6RAAAAAAAACmjQAAAAAAAAAAAAAAAAAA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| echo "Hello World!"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "aws" { | |
| region = "us-east-1" | |
| } | |
| resource "aws_security_group" "instance" { | |
| name = "terraform-example-instance" | |
| ingress { | |
| from_port = "${var.server_port}" | |
| to_port = "${var.server_port}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| socat \ | |
| -v -d -d \ | |
| TCP-LISTEN:1234,crlf,reuseaddr,fork \ | |
| SYSTEM:" | |
| echo HTTP/1.1 200 OK; | |
| echo Content-Type\: text/plain; | |
| echo; | |
| echo \"Server: \$SOCAT_SOCKADDR:\$SOCAT_SOCKPORT\"; | |
| echo \"Client: \$SOCAT_PEERADDR:\$SOCAT_PEERPORT\"; | |
| " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| return load([ | |
| [ | |
| 'id' => 1, | |
| ] | |
| ]); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 |
NewerOlder