Skip to content

Instantly share code, notes, and snippets.


0xADADA 0xadada

Block or report user

Report or block 0xadada

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
0xadada /
Last active Jun 16, 2016
Bash movement, keyboard commands and shortcuts

Bash Cheatsheet

Movement, keyboard commands and shortcuts for the GNU Bourne-Again SHell.


Command Keyboard Character
View app.js
var http = require('http');
var s = http.createServer( function( request, response ) {
response.writeHead(301, {
'Content-Type': 'text/plain; charset=utf8',
'Location': 'view-source://'
response.write( 'hello world\n' ); '[INFO]', 'user-agent', request.headers['user-agent'] );
} );
0xadada /
Last active Apr 1, 2016
Atom editor keyboard commands and shortcuts

Atom keyboard commands and shortcuts

Some commonly used keys using Atom editor.


Command Character
0xadada /
Created Oct 6, 2015
OpenSSL Certificate Signing Request Generation CSR

Certificate Signing Request generation with OpenSSL

The following command lines avoid specifying parameters as much as possible hoping that your version of OpenSSL will make the best choices for the current time and that it will allow this recipe to stay up-to-date as long as possible.

Private key

Generate a 4096 bits long key using the RSA algorithm using the SHA2 hash.

openssl req -nodes -newkey rsa:4096 -sha256 -keyout <domain.tld>.key -out <doman.tld>.csr
0xadada /
Last active Sep 30, 2015
# Generate release notes from last MINOR release tag, crediting each author per commit.
git log `git describe --abbrev=0 --tags`.. --pretty=format:"* %s - @%an"
# Generate release notes from last MINOR release tag, rollup commits to each author
git shortlog `git describe --abbrev=0 --tags`..
View Marx for

Marx for Millennials

November 18, 2013

By Andrew Seal

I saw the best minds of my generation recruited by McKinsey, Goldman Sachs, and Bridgewater. The rest of us became Marxists. There have now been quite a few attempts to account for a sudden "resurgence" of Marxism—or at least a new openness to anticapitalism—among people of my generation. (A representative example, an article in Tablet, was subtitled "For those too young to remember the cold war but old enough to be trapped by the Great Recession, Marxism holds new appeal.") Given the dire economic times, especially for twenty- and thirtysomethings, some leftward shift was expected. But this recursion to Marx seems inexplicable, anachronistic, even cavalier. Why Marx? Why Marx now? Common explanations go something like this: Those of us who reached intellectual maturity in the early and mid-2000s spent much of that time feeling adrift, politically torpid, uncompelled by the aging classics of the Theory Era, yet unable to generate anything d

0xadada /
Created Jul 8, 2015
Download latest GitHub project release
curl -LOk `curl --silent | /usr/bin/awk '/browser_download_url/ { print $2 }' | /usr/bin/sed 's/"//g'`
0xadada / base.css
Last active Dec 28, 2016
Pretty much the most important CSS you'll add to any website.
View base.css
select {
/* anti-aliasing
* Frankly, i don't know why anti-aliasing isn't enabled by default.
* It probably should be, but its nice that "good" developers
* can make their sites look nicer by opting-into antialiased type.
-webkit-font-smoothing: antialiased;
0xadada / FizzBuzz.js
Last active Nov 14, 2015
FizzBuzz Javascript Solution - Bodyless for loop
View FizzBuzz.js
// Concise
var f='Fizz', b='Buzz', i=0, d3, d5;
for (i; ++i <= 100; d3 = !(i % 3), d5 = !(i % 5), console.log(d3 ? d5 ? f+b : f : d5 ? b : i));
// Multi-line, commented
var /* Declare our variables outside the loop, a performance best-practice */
f='Fizz', /* Variable `f` so we don't repeat 'Fizz' twice - DRY */
b='Buzz', /* Variable `b` so we don't repeat 'Buzz' twice - DRY */
i=0, /* For-loop counter, start at 0 */
d3, /* setup a variable for checking divisibility by 3 */
You can’t perform that action at this time.