View gist:fb7ed841e702dc3dc58b7f1a933642e6
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO |
View gist:2ce8cc5998254815408fbe1549cd2c85
docker update --restart=no container |
View gist:3053a020d1e1f4054ca1001e53238928
cat 2018e.json | jq '{ version: .version, zones: [.zones[].name] }' > timezones.json |
View gist:daa5150ae1a1ae6c829ffc84b230b82f
sudo ntpdate -u time.apple.com |
View gist:014ab4a30a1c968f599f81d86bc4909a
identify -format '%[EXIF:*]' image.jpg |
View gist:12bf8b6f04da064a1cafdfc570155624
openssl s_client -showcerts -connect example.com:443 |
View gist:45ab01577cefc8113b43ef186b903388
7z a file.7z file.txt -mhe=on -p1234 |
View gist:5a488a793ed3a3dbabe689fea5ee65ae
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false |
View gist:1ed3665af198f62271712569e14ac808
# Move to the left | |
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,maximize,minimize:' | |
# Move to the right | |
gsettings set org.gnome.desktop.wm.preferences button-layout ':close,maximize,minimize' |
View gist:ebaca117ac9e44231421f04e7796d5ca
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
Database files have to be updated before starting the server, here are the steps that had to be followed: | |
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
brew unlink postgresql | |
brew install postgresql@9.6 | |
brew unlink postgresql@9.6 | |
brew link postgresql |
NewerOlder