Skip to content

Instantly share code, notes, and snippets.

View 0xadada's full-sized avatar
🦅

0xADADA 0xadada

🦅
View GitHub Profile
@0xadada
0xadada / corpus.txt
Last active November 5, 2020 21:21
every sentence i've published
Before Trump takes office, I want to create a picture of the high-water mark, something I can point to and say “That was how it was” without the fog of time, or the distortions of propaganda and ideology.
I was inspired by Sarah Kendzior: Fellow Americans, I have a favor to ask you.
Today is November 18, 2016.
I want you to write about who you are, what you have experienced, and what you have endured.
Write down what you value; what standards you hold for yourself and for others.
Write about your dreams for the future and your hopes for your children.
Write about the struggle of your ancestors and how the hardship they overcame shaped the person you are today.
Write your biography, write down your memories.
Because if you do not do it now, you may forget.
Write a list of things you would never do.
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>Placeholder</title>
<img data-size="150x300" alt="Asian" data-show-markup>
<img data-size="150x300" alt="Bengal">
<script src="placeholder.js"></script>
</html>
// LOL this is not production code, but "inspired" by production code
const FastBoot = require('fastboot');
const FastBootAppServer = require('fastboot-app-server');
const server = new FastBootAppServer({
gzip: true, // enable gzip compression
beforeMiddleware(app) {
app.use(async (request, response, next) => {
if (request.path === '/render') {
@0xadada
0xadada / brew-pin-readline.sh
Last active April 8, 2019 13:42
pin homebrew readline to version 7.0.5, permanantly
#!/usr/bin/env bash
# Uninstall this incompatible version
brew uninstall --ignore-dependencies readline
# Go to the local clone of homebrew-core
pushd "$(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core"
# Move to the homebrew-core revision that had 7.0.5, last version before 8
# see: https://raw.githubusercontent.com/Homebrew/homebrew-core/b1bd1c4a62e1336422de3614d1fc49ffbce589a8/Formula/readline.rb
@0xadada
0xadada / old-fashioned.package.json
Last active March 15, 2018 23:09
The Old Fashioned Cocktail Recipe, as specified as an NPM package (yes, these are real NPM dependencies)
{
"name": "Old Fashioned",
"version": "1.0.0",
"description": "The Old Fashioned Cocktail",
"scripts": {
"build": "dissolve && mix && stir && pour && serve",
"dissolve": "cat muddler bitters sugar > mixer && muddle",
"mix": "cat bourbon > mixer",
"stir": "cycle spoon --time 30s",
"pour": "pour mixer > tumbler",
@0xadada
0xadada / await-async.js
Last active December 3, 2017 22:34
The Promise of await / async
// async / await
/**
* Resolve a truthy value, reject a falsy value.
* @param {any} value Any Javascript primative type.
* @param {Number} timeout Time n milliseconds before function returns.
* @returns {Promise} a Promise.
*/
let isTruthy = function(value, timeout) {
return new Promise((resolve, reject) => {
@0xadada
0xadada / cloudSettings
Last active October 4, 2018 16:15
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-04T16:15:21.511Z","extensionVersion":"v3.1.2"}
@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 / bash-cheatsheet.md
Last active February 3, 2022 17:20
Bash movement, keyboard commands and shortcuts

Bash Cheatsheet

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

Legend

Command Keyboard Character
command
@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'] );
} );