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
| echo "Setting the YubiKey to be a U2F device and behave as a smart card" | |
| ykpersonalize -m 86 | |
| if [[ $# -eq 1 ]] && [[ "$1" = "first-run" ]] | |
| then | |
| echo "Please set a new managment key:" | |
| yubico-piv-tool -aset-mgm-key || true | |
| echo "Please set the device PIN:" | |
| yubico-piv-tool -achange-pin -P123456 |
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
| hub browse -- pull/$(hub issue --include-pulls | fzf | awk '{print $1}' | sed -e 's/^#//') |
Github Flavored Markdown (GFMD) is based on Markdown Syntax Guide with some overwriting as described at Github Flavored Markdown
It is easy to write in GFMD. Just write simply like text and use the below simple "tagging" to mark the text and you are good to go!
To specify a paragraph, leave 2 spaces at the end of the line
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
| Large Object Motions: | |
| ( | |
| ) | |
| { | |
| } | |
| [[ | |
| [] | |
| ][ | |
| ]] | |
| [m |
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
| #!/usr/bin/env bash | |
| # Fetch the password from the keychain if it exists | |
| PASSWORD_ENTERED=false | |
| ACCOUNT_NAME='login' | |
| SERVICE_NAME='mount_volume' | |
| PASSWORD=$( | |
| security 2> /dev/null \ | |
| find-generic-password -w \ | |
| -a $ACCOUNT_NAME \ |
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
| class String | |
| def pallindrome? | |
| string = self.downcase.gsub(/[^0-9a-z]/i,'') | |
| return false if string.length <= 1 | |
| string.reverse == string | |
| end | |
| def collect_possible_starts_and_end | |
| #{ a: [0, 1], b: [3], c: [1,4,6]} |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>AdjustWindowForFontSizeChange</key> | |
| <true/> | |
| <key>AllowClipboardAccess</key> | |
| <true/> | |
| <key>AnimateDimming</key> | |
| <false/> |
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
| #!/bin/bash | |
| ## START PRECOMMIT HOOK | |
| # Install with: | |
| # ln -s ../../bin/pre-commit .git/hooks/pre-commit | |
| files_modified=`git status --porcelain | egrep "^(A |M |R ).*" | awk ' { if ($3 == "->") print $4; else print $2 } '` | |
| for f in $files_modified; do | |
| if [[ $f == vendor/* ]]; then | |
| echo "skipping $f" |
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
| export DEVISE_SECRET_KEY='A REALLY LONG KEY' | |
| export SECRET_TOKEN='A REALLY LONG KEY' | |
| export SECRET_KEY_BASE='A REALLY LONG KEY' | |
| export CARRIERWAVE_PROVIDER='AWS' | |
| export CARRIERWAVE_AWS_ACCESS_KEY_ID='A REALLY LONG KEY' | |
| export CARRIERWAVE_AWS_SECRET_ACCESS_KEY='A REALLY LONG KEY' | |
| export CARRIERWAVE_REGION='us-west-1' | |
| export CARRIERWAVE_ENDPOINT='https://s3-us-west-1.amazonaws.com/' | |
| export CARRIERWAVE_HOST='https://s3.amazonaws.com' | |
| export CARRIERWAVE_ASSET_HOST='http://assets.zinedistro.org' |