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
View placeholder.html
<!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>
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
0xadada / brew-pin-readline.sh
Last active Apr 8, 2019
pin homebrew readline to version 7.0.5, permanantly
View brew-pin-readline.sh
#!/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 / filevault-password-user-account.md
Created Jan 24, 2018
Update FileVault password with user account password
View filevault-password-user-account.md

Update FileVault password with user account password

sudo fdesetup remove -user username
sudo fdesetup add -usertoadd username
@0xadada
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
0xadada / await-async.js
Last active Dec 3, 2017
The Promise of await / async
View await-async.js
// 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 / laughing-man.svg
Created Nov 8, 2017 — forked from johan/laughing-man.svg
The Laughing Man (Ghost in the Shell), 1000 byte SVG :-)
View laughing-man.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0xadada
0xadada / cloudSettings
Last active Oct 4, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-10-04T16:15:21.511Z","extensionVersion":"v3.1.2"}
@0xadada
0xadada / GitHub-Forking.md
Created Oct 26, 2017 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow
View GitHub-Forking.md

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@0xadada
0xadada / meta-tags.md
Created Feb 12, 2017 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags
View meta-tags.md

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'>
You can’t perform that action at this time.