Skip to content

Instantly share code, notes, and snippets.

@jyek
jyek / Angular.md
Last active August 29, 2015 13:57

Angular Notes

DOM content ready -> Angular compile -> app.config -> app.run -> runtime digest

Use watches to communicate between directives.

Use services and events to communicate between controllers.

Azure CLI Notes

Installation

Install Azure-cli

npm install -g azure-cli
@jyek
jyek / orm.md
Created March 22, 2014 22:29
ORMs for Javascript

waterline, bookshelf, sequelize

Bash Script Syntax

Scripts Should Start With Shebang
#!/bin/sh
Arguments

#Ubuntu 12.04 LTS VM Setup Notes

Installing LAMP, Postfix and other stuff

For Wordpress installations. Apache is a synchronous server that does not perform well at scale, but in general is needed to work with Wordpress.

Steps

Install Nginx

Node

###Commands

###Useful Modules

  • node-inspector: allows you to debug server side code in a emulated chrome browser environment
@jyek
jyek / fabric-notes.md
Last active August 29, 2015 13:57 — forked from DavidWittman/notes.md

A Brief Introduction to Fabric

Fabric is a deployment management framework written in Python which makes remotely managing multiple servers incredibly easy. If you've ever had to issue a change to a group servers, this should look pretty familiar:

for s in $(cat servers.txt); do ssh $s service httpd graceful; done

Fabric improves on this process by providing a suite of functions to run commands on the servers, as well as a number of other features which just aren't possible in a simple for loop. While a working knowledge of Python is helpful when using Fabric, it certainly isn't necessary. This tutorial will cover the steps necessary to get started with the framework and introduce how it can be used to improve on administering groups of servers.

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file: