Looks familiar?
Worry no more! Use extract and prosper!
| #!/bin/sh | |
| # Implementation of http://tantek.pbworks.com/NewBase60 | |
| # License: http://creativecommons.org/licenses/by-sa/3.0/ | |
| n="$1" | |
| s='' | |
| m='0123456789ABCDEFGHJKLMNPQRSTUVWXYZ_abcdefghijkmnopqrstuvwxyz' | |
| if [ -z "$n" ] || [ "$n" -eq "0" ]; then | |
| echo 0 |
| body { | |
| font: 12px verdana; | |
| background-color: #5C87B2; | |
| } | |
| form { | |
| max-width: 400px; | |
| padding: 15px; | |
| background-color: white; | |
| } |
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by functional category:
git status list which (unstaged) files have changed
| <?php | |
| namespace Hitbtc; | |
| /** | |
| * show off @method | |
| * | |
| * @method string balance() balance( array $params ) | |
| * @method string ordersActive() ordersActive( array $params ) | |
| * @method string new_order() new_order( array $params ) | |
| * @method string cancel_order() cancel_order( array $params ) | |
| * @method string trades() trades( array $params ) |
| #! /bin/bash | |
| # The approx. time to run this script is 145 ms. | |
| # First we extract the private PEM key from the .p12 file: | |
| # openssl pkcs12 -nocerts -passin 'notasecret' -in file.p12 -out ~/google/google.privatekey.pem | |
| KEY='~/google/google.privatekey.pem' | |
| # The fields are ordered by their hash values. | |
| # In Google Client for Java HashMap is used to stack all JSON fields, so String.hashCode() is used for ordering. |
| import string, random | |
| #User | |
| print('USERNAME - ' + 'beanon' + '-' + ''.join(random.choice(string.digits) for i in range(4)) + ''.join(random.choice(string.ascii_lowercase) for i in range(4)) + ''.join(random.choice(string.ascii_uppercase) for i in range(4))) | |
| #Pass | |
| print('PASSWORD - ' + ''.join(random.choice(string.digits) for i in range(5)) + ''.join(random.choice(string.ascii_lowercase) for i in range(5)) + ''.join(random.choice(string.ascii_uppercase) for i in range(5))) |
| # MAC ADDRESS SPOOFER | |
| MAC="" | |
| for i in {0..5}; do | |
| VAL=$RANDOM | |
| PART=$(printf "%2X" $VAL) | |
| MAC+=$(printf "%.2s" $PART) | |
| if [ $i -lt 5 ] |