Skip to content

Instantly share code, notes, and snippets.

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

Nate Clark n8io

💭
‾\_(ツ)_/‾
View GitHub Profile
@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 / sublime-text-3-plugins.md
Last active September 17, 2015 13:24
A compiled list of Sublime Text plugins that make UX development easier.
#!/bin/bash
BASH_PROFILE=http://git.io/vntan
echo Downloading .bash_profile ...
curl -sL $BASH_PROFILE -o ~/.bash_profile
echo ...done.
@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 / .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 / 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
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 / 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

@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 / 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) && \