Skip to content

Instantly share code, notes, and snippets.

View tjoskar's full-sized avatar

Oskar Karlsson tjoskar

View GitHub Profile
@tjoskar
tjoskar / ssh_keys_osx.md
Last active December 18, 2015 13:18 — forked from trey/ssh_keys_osx.md

Distribute your ssh keys


If your remote username is different from your OS X username, edit your ~/.ssh/config file like so:

Host whathaveyou.com
    User remote_username

Generating your keys

Create a JS Object with Overwritable Settings

var Fancy = {
	settings: {
		something: 'one',
		somethingElse: 'two'
	},
	init: function(options){
 var s = $.extend({}, this.settings, options);

Basic MySQL Commands (that you should know)

Create a database.

$ mysqladmin -u[username] create [database name]

Alt.

$ CREATE DATABASE my_db;