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
// Attempt to make a drop-and-forget bunch of scripts that mimick some missing html5 goodies automatically | |
// Example: | |
// $(document).ready(function() { | |
// ProvideHtml5.autofocus() | |
// ProvideHtml5.datepicker() | |
// ProvideHtml5.forcenumber() | |
// }) | |
var ProvideHtml5 = { | |
autofocus = function() { |
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
$(document).ready(function () { | |
$('a.new-window, a[rel=external]').live("click", function(){ | |
window.open(this.href); | |
return false; | |
}); | |
jQuery.fn.center = function (onTopOf) { | |
this.css("position","absolute"); |
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/sh | |
echo "recursively removing .svn folders from" | |
pwd | |
rm -rf `find . -type d -name .svn` | |
rm `find ./ -regex ".*~.*"` | |
rm `find ./ -regex ".*swp$"` |
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
if &term == 'Eterm' | |
:set t_Co=256 | |
endif | |
" Custom templates | |
command Copy :exec ":r ~/.vim/templates/alpine-copyright/copyright.inc" | |
" HTML Vars | |
:let g:do_xhtml_mappings = '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
find . -type f -name "*.inc" -exec awk 'NR==58 {print FILENAME ":" NR ": " $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
.DS_Store? | |
ehthumbs.db | |
Icon? | |
Thumbs.db | |
._* | |
.Trashes | |
.Spotlight-V100 | |
.svn/ | |
.*.sw[a-z] | |
*.un~ |
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
mailq | tail -1 | cut -d' ' -f5 |
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
apt-get install libpcre3-dev | |
pecl install apc |
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
\ | |
Code: | |
dpkg --get-selections > installed-software | |
And if you wanted to use the list to reinstall this software on a fresh ubuntu setup, | |
Code: | |
dpkg --set-selections < installed-software | |
followed by |
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
/** | |
* CSS BoxSpin | |
* Attempt to remake http://www.cesmes.fi/flash/boxSpin/ in CSS | |
*/ | |
body { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
} | |
.spinner { |
OlderNewer