- Twitter Bootstrap jQuery Mobile Theme
- Colorpicker and Datepicker for Twitter
- unique web design with Twitter Bootstrap
- [Beatutiful buttons] (http://charliepark.org/bootstrap_buttons/)
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
#GIT Alias | |
alias latest='git checkout master;git fetch --all;git rebase;git status;' | |
alias br='git show-branch;git branch;git status;' | |
alias h2='git rebase -i HEAD~2' | |
alias h3='git rebase -i HEAD~3' | |
alias h4='git rebase -i HEAD~4' | |
alias h5='git rebase -i HEAD~5' | |
alias h6='git rebase -i HEAD~6' |
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
#!/bin/bash | |
sudo yum install -y epel-release | |
sudo yum install -y nano | |
sudo yum install -y git | |
#Install Amazon Client | |
curl -O http://peak.telecommunity.com/dist/ez_setup.py | |
sudo python ez_setup.py | |
#Install pip | |
sudo easy_install pip |
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
#AWS | |
# . install-aws.sh | |
instance_profile=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/` | |
aws_access_key_id=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep AccessKeyId | cut -d':' -f2 | sed 's/[^0-9A-Z]*//g'` | |
aws_secret_access_key=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep SecretAccessKey | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g'` | |
aws_secret_access_key=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep SecretAccessKey | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g'` | |
aws_session_token=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/${instance_profile} | grep Token | cut -d':' -f2 | sed 's/[^0-9A-Za-z/+=]*//g'` |
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
import sys | |
import os | |
import re | |
def normalize(filename): | |
(root, ext)=os.path.splitext(filename) | |
filename2 = root + "-norm"+ ext | |
print "Normalizing ", filename2 | |
f=open(filename, 'r') |
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
#Finds a list of jar files | |
find . -name \*.jar -print | |
#Using an alias | |
#Usage list *.jar | |
function list { find . -name "$1" -print ;} | |
export -f list | |
#Search text in files, recursive, ignore case, with file and line number: | |
grep -Hirn term *.txt |
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
#Decrypt the file enigma.txt | |
enc -d -aes128 -base64 -in enigma.txt -pass pass:**** | |
#Converts p12 to pem | |
openssl pkcs12 -in mypass.p12 -out mypass.pem -clcerts |
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
import scala.xml._ | |
import scala.xml.transform._ | |
import java.io.File | |
import scala.util.matching.Regex | |
import scala.util.matching.Regex.Match | |
/** | |
Creator: 2013, Olivier Huin (https://github.com/olih) | |
License: Eclipse Public License - v 1.0 | |
Contributors: | |
*/ |
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
import scala.xml._ | |
import scala.xml.transform._ | |
import java.io._ | |
import xml._ | |
/** | |
Creator: 2013, Olivier Huin (https://github.com/olih) | |
License: Eclipse Public License - v 1.0 | |
Contributors: | |
*/ |
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
/* GLOBAL STYLES | |
-------------------------------------------------- */ | |
/* Padding below the footer and lighter body text */ | |
body { | |
padding-bottom: 40px; | |
color: #5a5a5a; | |
} | |
OlderNewer