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/zsh | |
| for and_target in `print -l ${ANDROID_TARGET} `;do | |
| android update project -p . --subprojects -t ${and_target} -n GatekeeperAndroid | |
| ant debug | |
| done |
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
| ZKBD_FILE=${HOME}/.zkbd/$TERM-$VENDOR-$OSTYPE | |
| if [[ -e $ZKBD_FILE ]] | |
| then | |
| source $ZKBD_FILE | |
| else | |
| autoload zkbd | |
| zkbd | |
| source $ZKBD_FILE | |
| fi | |
| [[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-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
| setopt extendedglob | |
| typeset -a boto_web_envs | |
| for cfg in `echo ~/.botocfg/(*~*.aws.cfg)`;do | |
| boto_web_envs+="${cfg:t:r}" | |
| done | |
| benv(){ | |
| if [[ "$1" == "" ]]; | |
| then | |
| print "Usage: $0 env-name\n" >&2 |
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
| # From GCC 4.6.3 | |
| movl GLOBAL_TIME, %eax | |
| addl $1, %eax | |
| movl %eax, GLOBAL_TIME | |
| movl GLOBAL_TIME, %eax | |
| # From Clang 3.0-6ubuntu | |
| movl ALARM_TIME, %eax | |
| cmpl GLOBAL_TIME, %eax | |
| jne .LBB0_5 |
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/zsh | |
| # | |
| echo wget -O CentOS/initrd_6_32.img "http://mirrors.rit.edu/centos/6.2/os/i386/images/pxeboot/initrd.img" | |
| wget -O CentOS/initrd_6_32.img "http://mirrors.rit.edu/centos/6.2/os/i386/images/pxeboot/initrd.img" | |
| echo wget -O CentOS/initrd_6_64.img "http://mirrors.rit.edu/centos/6.2/os/x86_64/images/pxeboot/initrd.img" | |
| wget -O CentOS/initrd_6_64.img "http://mirrors.rit.edu/centos/6.2/os/x86_64/images/pxeboot/initrd.img" | |
| echo wget -O CentOS/vmlinuz_6_32 "http://mirrors.rit.edu/centos/6.2/os/i386/images/pxeboot/vmlinuz" | |
| wget -O CentOS/vmlinuz_6_32 "http://mirrors.rit.edu/centos/6.2/os/i386/images/pxeboot/vmlinuz" | |
| echo wget -O CentOS/vmlinuz_6_64 "http://mirrors.rit.edu/centos/6.2/os/x86_64/images/pxeboot/vmlinuz" | |
| wget -O CentOS/vmlinuz_6_64 "http://mirrors.rit.edu/centos/6.2/os/x86_64/images/pxeboot/vmlinuz" |
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
| question 1 | |
| question 2 |
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
| use 5.010; | |
| open(my $config, ">" "$configfile") or die $!; | |
| $output = $row->{value}; | |
| my @output = split(/\n/, $output); | |
| if ($wroteToFile) | |
| { | |
| foreach (@output) | |
| { |
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/zsh | |
| emulate -L zsh | |
| setopt err_exit | |
| if [[ $# -ne 1 ]]; then | |
| printf "Usage: %s session_name\n" "$0" >&2 | |
| exit 1 | |
| fi | |
| readonly SOCKDIR="/var/run/screen/S-${USER}" |
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/zsh | |
| # go to $HOME | |
| cd ~ | |
| # look for all .*rc files | |
| for rc in \.*rc; | |
| do; | |
| # $rc2 = filename without the leading . | |
| rc2=${rc:e} |
NewerOlder