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 Feb 18, 2020
VIM movement, keyboard commands and shortcuts
View placeholder.html
<!DOCTYPE html>
<meta charset="utf-8">
<img data-size="150x300" alt="Asian" data-show-markup>
<img data-size="150x300" alt="Bengal">
<script src="placeholder.js"></script>
View talk-using-ember-fastboot-in-weird-ways.server.js
// 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 /
Last active Apr 8, 2019
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:
0xadada / sum.js
Last active Oct 21, 2018
A chained invocable, n-argument, sum function in javascript
View sum.js
/* This discussion was started on Reddit about a job interview question:
* Question: How would you make this work?
* add(2, 5); // 7
* add(2)(5); // 7
* url:
* sum Returns the sums of N arguments.
0xadada / cloudSettings
Last active Oct 4, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
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 / old-fashioned.package.json
Last active Mar 15, 2018
The Old Fashioned Cocktail Recipe, as specified as an NPM package (yes, these are real NPM dependencies)
View old-fashioned.package.json
"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 /
Created Jan 24, 2018
Update FileVault password with user account password

Update FileVault password with user account password

sudo fdesetup remove -user username
sudo fdesetup add -usertoadd username
You can’t perform that action at this time.