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
function htmlEncode(value){ | |
if (value) { | |
return jQuery('<div />').text(value).html(); | |
} else { | |
return ''; | |
} | |
} | |
function htmlDecode(value) { | |
if (value) { |
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
background: #40464e; | |
background-image: -khtml-gradient(linear, left top, left bottom, from(#40464e), to(#2d333b)); | |
background-image: -moz-linear-gradient(top, #40464e, #2d333b); | |
background-image: -ms-linear-gradient(top, #40464e, #2d333b); | |
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #40464e), color-stop(100%, #2d333b)); | |
background-image: -webkit-linear-gradient(top, #40464e, #2d333b); | |
background-image: -o-linear-gradient(top, #40464e, #2d333b); | |
background-image: linear-gradient(top, #40464e, #2d333b); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#40464e', endColorstr='#2d333b', GradientType=0); |
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
grep . htdocs/resources/img/migazine/*.png htdocs/resources/img/migazine/*.jpg htdocs/resources/img/migazine/*.gif | awk '{ print $3 }' |
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
uname -a |
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
extract () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjf $1 ;; | |
*.tar.gz) tar xzf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) unrar e $1 ;; | |
*.gz) gunzip $1 ;; | |
*.tar) tar xf $1 ;; | |
*.tbz2) tar xjf $1 ;; |
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
for i in ~/vagrant/webinabox/projects/*; | |
do | |
app=${i/\/Users\/ardydedase\/vagrant\/webinabox\/projects\/}; | |
echo $app; | |
ln -s $i $app; | |
done; |
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
h=12;for i in *_$h.png; do noext=${i/\.png}; cp $i $noext"x$h.png"; done; |
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
for i in *_12x12.png; do noext=${i/migPa}; noext=${noext/\.png}; echo $noext; echo $i; mv $i $noext".png"; done; |
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
cd `brew --prefix` | |
rm -rf Cellar | |
brew prune | |
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew | |
rm -rf ~/Library/Caches/Homebrew |
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
$(ps -C httpd -O rss | gawk '{ count ++; sum += $2 }; END {count --; print sum/1024 ;};') |
OlderNewer