Skip to content

Instantly share code, notes, and snippets.

View 0xadada's full-sized avatar
🦅

0xADADA 0xadada

🦅
View GitHub Profile
@0xadada
0xadada / meta-tags.md
Created February 12, 2017 04:25 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@0xadada
0xadada / FizzBuzz.js
Last active November 14, 2015 23:15
FizzBuzz Javascript Solution - Bodyless for loop
// 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 */
@0xadada
0xadada / app.js
Created November 12, 2015 16:42
Node apps
var http = require('http');
var s = http.createServer( function( request, response ) {
response.writeHead(301, {
'Content-Type': 'text/plain; charset=utf8',
'Location': 'view-source://visual-assault.org/'
});
response.write( 'hello world\n' );
console.info( '[INFO]', 'user-agent', request.headers['user-agent'] );
} );
@0xadada
0xadada / screen_resolution_matrix.txt
Created December 5, 2012 21:28
iOS Mobile device resolution matrix
Device : Hardware : (-statusbar) : simulated (-statusbar)
iPhone : 320 x 480 : 320 x 460 : -
iPhone (Retina) : 640 x 960 : 640 x 920 : 320 x 460
iPhone 5 : 640 x 1136 : 640 x 1096 : 320 x 548
@0xadada
0xadada / console.log
Created November 14, 2012 15:27
javascript console logging protection
// Avoid 'console' errors in browsers that lack a console.
( function() {
var method;
var noop = function noop() {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeStamp', 'trace', 'warn'
];
@0xadada
0xadada / rn.sh
Last active September 30, 2015 15:33
release-notes
# 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`..

Keybase proof

I hereby claim:

  • I am 0xadada on github.
  • I am 0xadada (https://keybase.io/0xadada) on keybase.
  • I have a public key whose fingerprint is 6989 0464 9D36 B7B8 7E0C 5A48 6BBE 9BB1 1965 6CA4

To claim this, I am signing this object:

@0xadada
0xadada / gist:d222369f31f7af7b21f5
Last active August 29, 2015 14:12
Some important points from the "Fuck off Google" talk by The Invisible Committee at #31c3
http://media.ccc.de/browse/congress/2014/31c3_-_6459_-_en_-_saal_2_-_201412281900_-_the_invisible_committee_returns_with_fuck_off_google_-_anonymous_member_of_tarnac_solidarity_committee_-_tarnac_nine.html#video&t=2398
Cybernetics
an ideology of how the internet constructs a new reality.
claude shannon
von neumann
a world where all forms of politics are controlled by machines, in a
network of self-regulating systems.
an ontology where all life can be flattened as pure messages of
information.
@0xadada
0xadada / grep-sex.txt
Created March 11, 2014 14:24
Grep for string in files and replace with sed
grep -rli 'SignupLightbox' app/controller/website/ | xargs sed -i "" 's/SignupLightbox/SemLightbox/g'