Skip to content

Instantly share code, notes, and snippets.


stagas stagas

Block or report user

Report or block stagas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?

rauchg /
Last active Oct 2, 2019
View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
LeCoupa / nodejs-cheatsheet.js
Last active Nov 17, 2019
Complete Node.js CheatSheet --> UPDATED VERSION -->
View nodejs-cheatsheet.js
/* *******************************************************************************************
* ******************************************************************************************* */
// 0. Synopsis.
speier / 1. on the server
Last active Dec 19, 2015
experimenting with git powered deployment
View 1. on the server
01. `apt-get install git`
02. `adduser git`
03. `visudo` add `git ALL=(ALL:ALL) NOPASSWD: ALL` to user privilege specification
04. `login git`
05. `ssh-keygen -t rsa`
06. `mkdir project`
07. `mkdir project.git`
08. `cd project.git`
09. `git init --bare`
10. `cd hooks`
niftylettuce /
Last active Dec 16, 2015
See below:

Linode vs EC2 Test

This is an Apache Benchmark ("ab") test between Linode and EC2 with a Node/Express stack and between multi-threaded cluster process vs single threaded process.


Linode crushes the competition. Linode wins with 3K+ requests per second vs. EC2's ~600 requests per second.

Feel free to sign up for an account with my [referral link][referral] or email thanks if you enjoyed this!

jaygooby /
Last active Jul 4, 2019
Git, you bloody git

Remove all local tracking branches to a remote & then delete the remote

git remote prune origin && git remote rm origin

Force checkout a branch to avoid the commit or stash your changes warning

Sometimes when you want to checkout a branch, even though your current branch is clean, you'll get a failed partial checkout, because a file in your current branch will be changed by the new branch (Looking at you .xcodeproj files). As long as you know your current branch is clean and up-to-date, -f force the checkout

git checkout -f the_branch
dougalcampbell / utfluv.js
Created Mar 12, 2012
Handle invalid JS character sequences
View utfluv.js
* encode to handle invalid UTF
* If Chrome tells you "Could not decode a text frame as UTF-8" when you try sending
* data from nodejs, try using these functions to encode/decode your JSON objects.
* see discussion here:
* see also, for browsers that don't have native JSON:
* Any time you need to send data between client and server (or vice versa), encode before sending,
graphnode / levenshtein.js
Created May 18, 2011
levenshtein function in javascript
View levenshtein.js
function levenshtein(s1, s2) {
// + original by: Carlos R. L. Rodrigues (
// + bugfixed by: Onno Marsman
// + revised by: Andrea Giammarchi (
// + reimplemented by: Brett Zamir (
// + reimplemented by: Alexander M Beedie
// * example 1: levenshtein('Kevin van Zonneveld', 'Kevin van Sommeveld');
// * returns 1: 3
tlrobinson / LICENSE.txt
Created May 17, 2011 — forked from 140bytes/LICENSE.txt
a JavaScript hash-map kind of thing
View LICENSE.txt
Copyright (c) 2011 Tom Robinson,
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
You can’t perform that action at this time.