Skip to content

Instantly share code, notes, and snippets.

View n8io's full-sized avatar
💭
‾\_(ツ)_/‾

Nate Clark n8io

💭
‾\_(ツ)_/‾
View GitHub Profile
@n8io
n8io / .babelrc
Last active December 15, 2017 19:40
Prettier setup (tested w/Atom and prettier-atom plugin)
{
"presets": [ "env" ]
}
@n8io
n8io / esnextbin.md
Last active June 1, 2017 20:55
esnextbin sketch
@n8io
n8io / processing-server.sh
Last active February 11, 2017 02:15
One script to rule them all!
#!/bin/bash
export \
GIST_BASE_URL="https://gist.githubusercontent.com" \
GIST_USER="n8io" \
GIST_ID="1774060420c77104fb56b121e28aed8b" \
HASH="2364996eb8b0137d40fb3e9ec74c409bb70b9df5"; \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/99.reset.sh) && \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/00.apt-get-update.sh) && \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/01.bashrc) && \
bash <(curl -s ${GIST_BASE_URL}/${GIST_USER}/${GIST_ID}/raw/${HASH}/02.mount-big-drive.sh) && \
ssh-copy-id -i ~/.ssh/[id_ras.pub] "[-p port] [user@][server]" # Setup ssh auth on remote server
scp [-P port] [local file path] [user@][server]:[server destination dir] # move file remotely via ssh
@n8io
n8io / docker-dev.md
Last active September 22, 2015 01:58

Local Docker deployment of a NodeJs Application

Running your nodejs app locally with Docker. A docker newbie's guide to docker tinkering.

Install Requirements

  1. Virtualbox
  2. Docker Toolbox
  3. A runnable nodejs project with a valid package.json (including an npm start script)

Getting started

TLDR; Resulting code here: docker-nodejs-example

@n8io
n8io / .stylintrc
Last active August 29, 2015 14:27
A sample config file for the Stylint (Stylus) linter
{
"blocks": false,
"brackets": {
"error": true,
"expect": "never"
},
"colons": {
"error": true,
"expect": "never"
},
@n8io
n8io / .jshintrc
Created August 10, 2015 17:58
A sample config file for the JSHINT linter.
{
"laxbreak": true
}
@n8io
n8io / .jscsrc
Created August 10, 2015 17:56
A sample config file for the JSCS linter
{
"disallowEmptyBlocks": true,
"disallowKeywords": [ "with" ],
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleVarDecl": true,
"disallowMixedSpacesAndTabs": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": [
"+",
@n8io
n8io / sublime-text-3-plugins.md
Last active September 17, 2015 13:24
A compiled list of Sublime Text plugins that make UX development easier.
@n8io
n8io / Preferences.sublime-settings
Created July 26, 2015 15:50
Sublime Text 3 - User Settings
{
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"caret_style": "phase",
"detect_indentation": true,
"ensure_newline_at_eof_on_save": false,