Skip to content

Instantly share code, notes, and snippets.

@pjobson
pjobson / compile_heimdall_mojave.md
Last active September 20, 2021 00:07
Compile Heimdall in Mojave & Catalina
@TomK
TomK / .bash_profile
Last active August 29, 2015 14:21
Bash aliases for PHP CLI XDebug remote debugging and profiling
alias phpx="php -d xdebug.remote_enable=1 -d xdebug.idekey=PHPSTORM -d xdebug.remote_autostart=1 -d xdebug.remote_connect_back=1"
alias phpp="php -d xdebug.profiler_enable=1"
@sunggun-yu
sunggun-yu / gist:4416430
Created December 31, 2012 00:42
Install NMON - CentOS 64bit
# Get Root
sudo su
# Download NMON archive
cd /tmp
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip
# Install unzip if you don't have
yum install unzip
@kares
kares / jquery.parseparams.js
Created May 5, 2011 11:28
jQuery.parseParams - parse query string paramaters into an object
/**
* $.parseParams - parse query string paramaters into an object.
*/
(function($) {
var re = /([^&=]+)=?([^&]*)/g;
var decodeRE = /\+/g; // Regex for replacing addition symbol with a space
var decode = function (str) {return decodeURIComponent( str.replace(decodeRE, " ") );};
$.parseParams = function(query) {
var params = {}, e;
while ( e = re.exec(query) ) {
@jeresig
jeresig / release.sh
Created January 24, 2011 22:09
Push a new jQuery release up to the CDN.
#!/bin/tcsh
# Create a new jQuery Relase
# Run like so:
# ./release.sh VERSION
# By John Resig
git pull
echo -n $1 > version.txt
git add version.txt