Skip to content

Instantly share code, notes, and snippets.

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

Nate Clark n8io

💭
‾\_(ツ)_/‾
View GitHub Profile
@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 / 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 / heroku-deployment.md
Last active August 29, 2015 14:25
How to deploy code from git local repo to Heroku app

Heroku deployment via command line

Example app: ione-navigation

  1. Download and install heroku toolbelt (https://toolbelt.heroku.com)
  2. Create a Heroku account (https://signup.heroku.com/login)
  3. From the command line cd to your local repo's directory
  4. heroku login
  5. heroku git:remote -a ione-navigation # adds remote server to current git repo
  6. git push heroku master # to push master branch to heroku
  7. OR git push heroku my-other:master # to push my-other branch to heroku
@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,
@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 / .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 / .jshintrc
Created August 10, 2015 17:58
A sample config file for the JSHINT linter.
{
"laxbreak": true
}
@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 / 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

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