create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
from collections import Iterable | |
def flatten(items): | |
for item in items: | |
if isinstance(item, Iterable): | |
yield from flatten(item) | |
else: | |
yield item | |
nested = [1, 3, [3, [4, 5, [6]]]] |
var _ = require('underscore'), | |
util = require('util'); | |
// intercept stdout, passes thru callback | |
// also pass console.error thru stdout so it goes to callback too | |
// (stdout.write and stderr.write are both refs to the same stream.write function) | |
// returns an unhook() function, call when done intercepting | |
module.exports = function interceptStdout(callback) { | |
var old_stdout_write = process.stdout.write, | |
old_console_error = console.error; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
# blog post: http://blog.slashpoundbang.com/post/2605632137/changing-from-utc-offset-to-time-zone-identifier-in | |
identifier = { | |
-11 => 'Samoa',#International Date Line West, Midway Island | |
-10 => 'Hawaii', | |
-9 => 'Alaska', | |
-8 => 'Pacific Time (US & Canada)',#Tijuana | |
-7 => 'Mountain Time (US & Canada)',#Arizona, Chihuahua, Mazatlan | |
-6 => 'Central Time (US & Canada)',#Central America, Guadalajara, Mexico City, Monterrey, Saskatchewan | |
-5 => 'Eastern Time (US & Canada)',#Bogota, Indiana (East), Lima, Quito |