mkdir dev
cd dev
cat > Dockerfile
FROM node:4.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ========================== | |
| How Software Companies Die | |
| ========================== | |
| - Orson Scott Card | |
| The environment that nurtures creative programmers kills management and | |
| marketing types - and vice versa. | |
| Programming is the Great Game. It consumes you, body and soul. When | |
| you're caught up in it, nothing else matters. When you emerge into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // FUNCTION-BASED ANIMATION SEQUENCES FOR WS2812 LED STRIPS | |
| // Using FastLED library | |
| // Author: Dave Morris: http://www.google.com/+DaveMorris128 | |
| // Version 1.0 (2014-07-31) | |
| // | |
| // | |
| // The following code includes "primitive animations" which are the base effect and | |
| // "aggregate animations" which are combinations of one or more primitive animations | |
| // Feel free to combine different primitives each loop for synergistic results but: | |
| // -If using an aggregate animation make sure your primatives don't clear the buffer each frame (FastLED.clear()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Deftdawg's Dyson API test script | |
| # Requires curl and jq | |
| DYSON_SERVER="appapi.cp.dyson.com" | |
| DYSON_EMAIL=${1} | |
| DYSON_PASSWORD=${2} | |
| if [ -z "${DYSON_EMAIL}" ] || [ -z "${DYSON_PASSWORD}" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| // Load plugins | |
| const autoprefixer = require("autoprefixer"); | |
| const browsersync = require("browser-sync").create(); | |
| const cp = require("child_process"); | |
| const cssnano = require("cssnano"); | |
| const del = require("del"); | |
| const eslint = require("gulp-eslint"); | |
| const gulp = require("gulp"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.getElementsByTagName('button')[0].onclick = function () { | |
| scrollTo(document.body, 0, 1250); | |
| } | |
| function scrollTo(element, to, duration) { | |
| var start = element.scrollTop, | |
| change = to - start, | |
| currentTime = 0, | |
| increment = 20; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function install() | |
| { | |
| echo "$1" | |
| package="$1" | |
| case `uname` in | |
| Linux ) | |
| LINUX=1 | |
| if type "yum" > /dev/null; then | |
| # install foobar here | |
| rpm -qa | grep -qw "$package" || yum install "$package" -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ${1:-.} | |
| find `pwd` -type l | while read l; do | |
| target="$(realpath "$l")" | |
| ln -fs "$(realpath --relative-to="$(dirname "$(realpath -s "$l")")" "$target")" "$l" | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add the following in .zshrc: | |
| ... | |
| plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
| ... | |
| ### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
| pasteinit() { | |
| OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
| zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |