# show without importing
gpg --import --import-options show-only foo.key
# import
gpg --import foo.key
# list all public & private keys (see what’s imported)
gpg --list-keys
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
# | |
# USAGE: `healthcheck <name> <URL>` | |
# | |
# Minify using http://bash-minifier.appspot.com | |
healthcheck() { | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
RED='\033[0;31m' | |
COLOR_RESET='\033[0m' |
gpg --output <output path> --decrypt <encrypted file path>
(Inspired by https://help.github.com/articles/generating-a-new-gpg-key/.)
Install Homebrew (we will use Homebrew package manager to install gpg
utility).
ℹ️ You could also install https://gpgtools.org instead, but I have no experience with it; so this guide will assume you have Homebrew installed.
Install gpg
using Homebrew:
brew install gpg
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": false, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "double", |
Create SSH key
It's best having separate keys on different workstations (e.g., home, office, etc.).
Generate a public key:
ssh-keygen -t rsa -f ~/.ssh/heroku_rsa -C"$(whoami)@$(hostname)"`
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
+--------------------------------------------------------------------+ | |
| | | |
| SELECT * | | |
| FROM A | | |
| [INNER] JOIN B ON A."FOO" = B."BAR" [AND ...]; | | |
| | | |
+--------------------------------------------------------------------+ | |
| | | |
| SELECT * | | |
| FROM A | |
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
# Simple | |
git filter-branch --prune-empty --subdirectory-filter foobar/ --tag-name-filter cat -- --all | |
# Complex | |
# (Ref.: http://stackoverflow.com/a/17867910/11895, | |
# http://stackoverflow.com/a/19957874/11895) | |
git filter-branch -f --prune-empty --index-filter \ | |
'git rm --cached --ignore-unmatch -r -q -- . ; \ | |
git reset -q $GIT_COMMIT -- .gitignore README.md foo/ bar/' \ | |
-- --all |
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
Pod::Spec.new do |s| | |
s.name = 'Nimbus' | |
s.version = '0.9.3-arc-ios7' | |
s.license = 'Apache License, Version 2.0' | |
s.summary = 'An iOS framework whose growth is bounded by O(documentation).' | |
s.homepage = 'http://docs.nimbuskit.info/index.html' | |
s.author = { 'Jeff Verkoeyen' => '[email protected]', | |
'Bubnov Slavik' => '[email protected]', | |
'Roger Chapman' => '[email protected]', | |
'Manu Cornet' => '[email protected]', |
NewerOlder