Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Ali Servet Donmez exalted

🏠
Working from home
Block or report user

Report or block exalted

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Import a public key in PGP.md
# 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
View How to decrypt with PGP.md
gpg --output <output path> --decrypt <encrypted file path>
View How to generate a new PGP key.md
View .csscomb.json
{
"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",
@exalted
exalted / create-ssh-key.md
Last active Feb 19, 2016
Create SSH key (Heroku)
View create-ssh-key.md

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)"`
View sql-cheatsheet.txt
+--------------------------------------------------------------------+
| |
| SELECT * |
| FROM A |
| [INNER] JOIN B ON A."FOO" = B."BAR" [AND ...]; |
| |
+--------------------------------------------------------------------+
| |
| SELECT * |
| FROM A |
@exalted
exalted / create-git-repo-from-subdirectory.sh
Last active Jul 9, 2018
Given a subdirectory extract separate repo out of an existing one
View create-git-repo-from-subdirectory.sh
# 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
View Nimbus.podspec
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' => 'jverkoey@gmail.com',
'Bubnov Slavik' => 'bubnovslavik@gmail.com',
'Roger Chapman' => 'rogchap@gmail.com',
'Manu Cornet' => 'manu.cornet@gmail.com',
View GitHub Secrets.md

GitHub Secrets

URL Features

/commits

/<ref> (ref: SHA or branch)

@exalted
exalted / autobot.sh
Last active Dec 16, 2015
Automagically create, setup and deploy Hubot on Heroku with Campfire adapter!
View autobot.sh
#!/usr/bin/env bash
#
# Autobot: create, setup and deploy Hubot on Heroku with Campfire adapter.
#
# USAGE:
# autobot.sh <path>
#
# Autobot will;
# 1. download and install all the Hubot machinery
# 2. create your very own Hubot instance
You can’t perform that action at this time.