Skip to content

Instantly share code, notes, and snippets.

View growdigital's full-sized avatar
🏠
Working from home

Jake Rayson growdigital

🏠
Working from home
View GitHub Profile
@growdigital
growdigital / fix-homebrew-npm.md
Created October 23, 2016 20:48 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

@growdigital
growdigital / Open iterm tab here
Created January 24, 2016 11:40 — forked from eric-hu/Open iterm tab here
Apple script to open an iterm2 tab from right-clicking on a file or folder in Finder. To use: (1) Open Automator (2) Create a new service (3) Change "Service receives selected" drop downs to "Files or folders" in "Finder" (4) Select "Run applescript" from the sidebar, then paste this script in and save
-- Adapted from these sources:
-- http://peterdowns.com/posts/open-iterm-finder-service.html
-- https://gist.github.com/cowboy/905546
--
-- Modified to work with files as well, cd-ing to their container folder
on run {input, parameters}
tell application "Finder"
set my_file to first item of input
set filetype to (kind of (info for my_file))
-- Treats OS X applications as files. To treat them as folders, integrate this SO answer:
@growdigital
growdigital / installConfig.sh
Last active March 17, 2019 09:29
Install script for brew and cask for Mac OS X
#!/bin/sh
#
# Brew packages
#
brew install git
# brew install node - having npm install issues, so installed manually
brew install wget
brew install homebrew/php/php56
brew install homebrew/php/composer
# brew install task - didn't install with gnutls, had to make from source
@growdigital
growdigital / gist:92cc7d9dacb83b2ac2b4
Last active August 29, 2015 14:16
inthe.am dev env error
## Command line error
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:22:31 2012 from 10.0.2.2
/usr/bin/xauth: file /home/vagrant/.Xauthority does not exist
(twweb)vagrant@precise32:~$ cd /var/www/twweb
(twweb)vagrant@precise32:/var/www/twweb$ python manage.py run
Note: It will take a few seconds for both necessary
servers to start. Once you see the message
message 'Build Successful', both servers are up.
Config Variable Value
_forcecolor no
abbreviation.minimum 2
active.indicator *
alias.burndown burndown.weekly
alias.ghistory ghistory.monthly
alias.history history.monthly
alias.rm delete
alias.shell exec tasksh
allow.empty.filter yes
@growdigital
growdigital / sublime-packages.md
Last active August 29, 2015 14:13
Jake's Sublime Text Packages

Jake’s Packages. FTWIW.

  • Alignment
  • AdvancedNewFile
  • Color Highlighter
  • EditorConfig
  • emmet-sublime
  • Git
  • GitGutter
  • HTML-CSS-JS Prettify
@growdigital
growdigital / globalignore.txt
Created January 5, 2015 10:36
git global ignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
@growdigital
growdigital / gist:61f31cb641f1e24b551a
Last active August 29, 2015 14:10
ZSH with git icons via Remy Sharp and Tom Speak
# vim:ft=zsh ts=2 sw=2 sts=2
#
# Based on agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@growdigital
growdigital / IWC Code of Conduct
Created October 23, 2014 13:57
Indie Web Camp Code of Conduct
# Code of Conduct
[IndieWebCamp **code of conduct**](http://indiewebcamp.com/code-of-conduct) tl;dr:
> Be respectful of other people, respectfully ask people to stop if you are bothered, and if you can't resolve an issue contact staff. If you are being a problem, it will be apparent and you'll be asked to leave.
1. [Respect]
* [Resolve peacefully]
* [Apologize for mistakes]
* [Consequences]
@growdigital
growdigital / sublime.sublime-project
Created September 5, 2014 10:36
Sublime Text node project settings
{
"folders":
[
{
"folder_exclude_patterns": ["dist", "node_modules"],
"file_exclude_patterns": ["*.sublime-project"],
"follow_symlinks": true,
"path": "."
}
]