git fsck --unreachable | grep commit | cut -d\ -f3 | xargs git log --merges --no-walk --grep=WIP
git cherry-pick -n -m1 <SHA-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
#!/bin/sh -x | |
#This script removes Mono from an OS X System. It must be run as root | |
rm -r /Library/Frameworks/Mono.framework | |
rm -r /Library/Receipts/MonoFramework-* | |
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do | |
(cd ${dir}; |
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 spderSubmit(formName, method, action, controllerResourceName, subsystemName) { | |
openLayer(); | |
var pathNames = (location.pathname + '/').split('/'); | |
if (method == undefined) { | |
method = 'get'; | |
} | |
if (subsystemName == undefined) { | |
subsystemName = pathNames[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
function formatMicrotime($time, $format = null){ | |
if (is_null($format)) { | |
$formated = sprintf('%0.5f', $time); | |
} else { | |
$sec = (int)$time; | |
$msec = (int)(($time - $sec) * 100000); | |
$formated = date($format, $sec) . '.' . $msec; | |
} | |
return $formated; | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
javascript:void(function() { var e = document.getElementsByClassName("post_permalink"); for (i = 0; i < e.length; i++) { var m = e[i].href.match(/^https?:\/\/.+\/post\/([0-9]+)/); if (m) { var p = "http://tumblr.com/dashboard/2/" + m[1]; var j = (i == e.length-1 ? i : i+1); e[j].href = p; e[j].target = "self"; } }})(); |
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
#container, #content { | |
width: 1640px !important; | |
margin-left: -10px; | |
} | |
#left_column { | |
width: 1280px !important; | |
} | |
.#right_column { |
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
sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n |
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
$ sqlplus | |
SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 7 20:22:46 2011 | |
Copyright (c) 1982, 2010, Oracle. All rights reserved. | |
Enter user-name: <your username here> | |
Enter password: <your password here> | |
Connected to: |
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 | |
/** ClassLoader | |
* | |
* Based on SplClassLoader by PHP Standards Working Grounp | |
* <http://groups.google.com/group/php-standards/web/final-proposal> | |
* | |
* @author Sotaro Karasawa <[email protected]> | |
* @date 2010-12-02 18:59:39 | |
*/ |
NewerOlder