Skip to content

Instantly share code, notes, and snippets.

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

Nate Clark n8io

💭
‾\_(ツ)_/‾
View GitHub Profile
@n8io
n8io / .bashrc
Last active January 8, 2018 22:28
A .bashrc file configuration for local dev.
clear
# Grunt aliases
alias g="grunt"
alias gr="grunt"
alias gw="grunt watcher"
alias gwb="grunt watcher | node_modules/.bin/bunyan" # Runs grunt watcher with pretty formatted bunyan output
alias gcb="grunt concurrent | ./node_modules/.bin/bunyan" # Runs grunt concurrent task (usually nodemon and watch tasks bundled)
echo "Grunt aliases loaded."
# Nodemon aliases
@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) && \
@n8io
n8io / terminal-setup.sh
Last active February 7, 2017 22:11
How to get your terminal 'a rockin'
bash <(curl -sL http://bit.ly/bash-setup) # Initializes bash shortcuts
bash <(curl -sL http://bit.ly/ssh-setup) # Registers your ssh keys
bash <(curl -sL http://bit.ly/bash-emoji) # Adds some flare to your default prompt
@n8io
n8io / README.md
Last active December 19, 2016 19:09
JavaScript for creating a screener ribboned image from a movie poster in Plex.

Screen ribbon howto Screener palette chooser Screener ribbon image

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 / fix-npm-directory-permissions.sh
Last active November 3, 2015 21:40
No more sudo npm install -g
sudo chown -R `whoami` /usr/local/bin/npm
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
@n8io
n8io / .bashrc.sh
Last active November 2, 2015 14:22
#!/bin/bash
BASHRC=http://git.io/vlaIW
echo Downloading .bashrc ...
curl -sL $BASHRC -o ~/.bashrc
echo ...done. Make sure to run "source ~/.bashrc" to add to this session.
@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