brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
description "Mailcatcher" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
pre-start script | |
bash << "EOF" | |
mkdir -p /var/log/mailcatcher |
# Atom Cheatsheet. | |
# Project Key Bindings. | |
- 'cmd-shift-p': open the command palette. | |
- 'cmd-p' or 'cmd-t': open the fuzzy finder to find a file. | |
- 'cmd-b': look for a file that is already open. | |
- 'cmd-shift-b': search the list of files modified and untracked in your project repository. | |
- 'ctrl-0': open and focus the the tree view. |
var _ = require('lodash'), | |
fs = require('fs'), | |
path = require('path'), | |
csv = require('csv'), | |
Sequelize = require('sequelize'); | |
function addUser(db, filename, rolesByName, addresses) { | |
var parser = csv.parse({}, function (err, data) { | |
db.models.User.bulkCreate( | |
_.map(data, function (record, index) { |
<!DOCTYPE html> | |
<html data-ng-app="TestApp"> | |
<head> | |
<script src="http://code.angularjs.org/1.2.9/angular.js"></script> | |
<script> | |
angular.module('TestApp', []) | |
.factory('beforeUnload', function ($rootScope, $window) { | |
// Events are broadcast outside the Scope Lifecycle |
/* Polyfill indexOf. */ | |
var indexOf; | |
if (typeof Array.prototype.indexOf === 'function') { | |
indexOf = function (haystack, needle) { | |
return haystack.indexOf(needle); | |
}; | |
} else { | |
indexOf = function (haystack, needle) { | |
var i = 0, length = haystack.length, idx = -1, found = false; |
'use strict'; | |
var util = require('util'), | |
winston = require('winston'), | |
logger = new winston.Logger(), | |
production = (process.env.NODE_ENV || '').toLowerCase() === 'production'; | |
module.exports = { | |
middleware: function(req, res, next){ | |
console.info(req.method, req.url, res.statusCode); |
/*! | |
* SSSL: smallest, simpelst script loader | |
* version: 1.0.1 | |
* | |
* API: | |
* Normal usage | |
* sssl(source [,complete]); | |
* | |
* Example: | |
* sssl('jquery.js', function(){ |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
Primary differences between SSH and HTTPS. This post is specifically about accessing Git repositories on GitHub.
plain Git, aka git://github.com/
Does not add security beyond what Git itself provides. The server is not verified.
If you clone a repository over git://, you should check if the latest commit's hash is correct.