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
otfinfo -f /usr/share/fonts/truetype/Palatino\ Linotype.ttf |
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
brew install highlight | |
pbpaste | highlight --syntax=groovy -O rtf | pbcopy |
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/sh | |
# | |
# tomcat70 Startup script for Tomcat 7.0, the Apache Servlet Engine | |
# | |
# | |
# chkconfig: - 80 16 | |
# description: Tomcat 7.0 is the Apache Servlet Engine | |
# processname: tomcat70 | |
# config: /etc/tomcat/tomcat70.conf | |
# pidfile: /var/run/tomcat70.pid |
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 | |
function usage { | |
echo "USAGE: git merge-svn <from> [<to>]" | |
echo "" | |
echo " from The branch name to be merged FROM" | |
echo " to Optional branch name to be merged onto. Default: HEAD" | |
echo "" | |
} |
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/sh | |
branch_url=$1 | |
rev=`svn log --stop-on-copy $branch_url | tail -4 | awk '{print $1}' | cut -c 2-500 | head -n 1` | |
git svn fetch -r $rev | |
git svn fetch |
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 | |
set -e | |
#receipt http://stackoverflow.com/questions/14062895/bash-argument-case-for-args-in/14063511#14063511 | |
while [[ $# -gt 0 ]] && [[ ."$1" = .--* ]]; do | |
optname="$1"; | |
shift; #expose next argument | |
case "$optname" in |
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
ssh root@node02 'restorecon -R -v /root/.ssh' |
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/sh | |
sudo yum -y install js-devel | |
mkdir -p ~/bin | |
curl -L http://github.com/micha/jsawk/raw/master/jsawk > ~/bin/jsawk | |
chmod 755 ~/bin/jsawk |
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 StringTest { | |
public static void main(String[] args) { | |
String switchString = "StringTest"; | |
switch (switchString) { | |
case "FirstString": return; | |
case "SecondString": return; | |
case "StringTest": | |
System.out.println("Here it is"); | |
return; |
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
[ "cat", "dog", "bird" ] as String[] |
NewerOlder