This file contains 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
brew install ffmpeg | |
brew install gifsicle | |
ffmpeg -i screencast.mov -s 600x120 -pix_fmt rgb24 -r 30 -f gif - | gifsicle --optimize=3 --delay=3 > screencast.gif |
This file contains 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
brew install imagemagick | |
convert icon.png favicon.ico |
This file contains 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
apm list --installed --bare |
This file contains 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
# md5 sums should match | |
openssl x509 -noout -modulus -in server.crt| openssl md5 | |
openssl rsa -noout -modulus -in server.key| openssl md5 |
This file contains 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
# Pandoc has to be installed (http://pandoc.org/) | |
# on OS X it can be easily installed via brew | |
brew install pandoc | |
pandoc -s file.docx -t markdown -o file.md |
This file contains 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
npm ls -g --depth 0 |
This file contains 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
#!/usr/bin/env osascript -l JavaScript | |
function run(domain) { | |
const Chrome = Application('Google Chrome'); | |
Chrome.activate(); | |
const window = Chrome.windows[0]; | |
const tab = Chrome.Tab({ | |
url: 'chrome://net-internals/#hsts', | |
}); |
This file contains 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
ffmpeg -i source.mp4 -vcodec libx264 -pix_fmt yuv420p target.mp4 |
This file contains 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
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false |
This file contains 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
# 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' |
OlderNewer