Skip to content

Instantly share code, notes, and snippets.

View nachbarshund's full-sized avatar
🤓
Coding

Christopher Zotter nachbarshund

🤓
Coding
View GitHub Profile
@nachbarshund
nachbarshund / Backbone.sub.coffee
Created December 9, 2016 07:55 — forked from mpneuried/Backbone.sub.coffee
Backbone collection extension to solve sub collections.The models withtin the (sub)collection-tree will be distributed within all involved collections under consideration of each filter.
###
EXAMPLE USAGE
parentColl = new Backbone.Collection.Extended()
# by Array
subCollA = parentColl.sub( [ 1, 2, 3 ] )
# or by Object
subCollO = parentColl.sub( { name: "Foo", age: 42 } )

Install certbot

sudo su
yum install wget -y
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto

Install certificate

@nachbarshund
nachbarshund / grunt-fontello-edit.coffee
Created January 28, 2016 08:38 — forked from mpneuried/grunt-fontello-edit.coffee
Fontello Grunt edit helper
###
USAGE:
1. Make sure you have a valid fontello config file
2. call "grunt edit-font" -> your browser will open with a session based on your config file
3. Edit your font within fontello and click "Save session"
4. call "grunt update-fonts". This will call the task "update-fonts-config" to download the session zip and replace the config. Then it's call the task `fontello:standard` based on your config.json.
###
# install a new Mac
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install services
brew install node memcached redis mysql caskroom/cask/brew-cask
# install tools
brew cask install dropbox vagrant vagrant-manager virtualbox gpgtools iterm2
brew tap caskroom/versions