create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/usr/bin/env sh | |
python -m smtpd -n -c DebuggingServer localhost:1025 |
stop(); | |
var velocity = 0; | |
var isMousePressed = false; | |
stage.addEventListener(Event.ENTER_FRAME, repeat); | |
stage.addEventListener(MouseEvent.MOUSE_DOWN, mousedown); | |
stage.addEventListener(MouseEvent.MOUSE_UP, mouseup); | |
function repeat (myevent:Event):void { |
#.bashrc | |
export PATH=$PATH:.:~/bin | |
# change password | |
passwd | |
# set locale | |
sudo locale-gen en_US.UTF-8 | |
sudo /usr/sbin/update-locale LANG=en_US.UTF-8 |
// Backbone Refactor Tutorial breakdown from: | |
// https://github.com/kjbekkelund/writings/blob/master/published/understanding-backbone.md | |
/////////////////////////////////////////////////////////////////////////// | |
//Step by step from jQuery to Backbone | |
// | |
// I've seen many struggle when they first meet Backbone.js. | |
// In this blog post I will gradually refactor a bit of code from how I | |
// used to write JavaScript before, into proper Backbone.js code using models, | |
// collections, views and events. Hopefully this process will give you a |
import datetime | |
import time | |
import random | |
import logging | |
from minimongo.model import Model, MongoCollection | |
from pyramid.interfaces import ISession | |
from zope.interface import implements | |
from pyramid.response import Response |
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
try: | |
import simplejson as json | |
except ImportError: | |
try: | |
import json | |
except ImportError: | |
raise ImportError | |
import datetime | |
from bson.objectid import ObjectId | |
from werkzeug import Response |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
var workerNum = 2 | |
var msgNum = 10 |