Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 23, 2024 15:29
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active April 17, 2024 10:51
Backend Architectures Keywords and References
@firedfox
firedfox / parallel.js
Created June 28, 2012 12:03
parallel.js for phantomjs
const QUEUE_LENGTH = 1;
var numRunningJobs = 0;
var numWaitingJobs = 0;
var parrallelCallback = function() {
numRunningJobs --;
if (numRunningJobs === 0 && numWaitingJobs === 0) {
phantom.exit();
@jeremyis
jeremyis / gist:4009709
Created November 4, 2012 01:23
inject jquery into a page
var element1 = document.createElement("script");element1.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js";element1.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(element1);
// full disclosure: i found this through google and didn't write it
@fschell
fschell / injectJQ.js
Created March 4, 2014 10:10
inject jQuery into console
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();