create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
| { | |
| "editor.fontSize": 14, | |
| "editor.renderLineHighlight": "none", | |
| "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", | |
| "editor.rulers": [ | |
| 80 | |
| ], | |
| "editor.renderWhitespace": "all", | |
| "vim.disableExtension": true, | |
| "vim.useSystemClipboard": true, |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func Sqrt(x float64) float64 { | |
| z := 1.0 | |
| var old float64 |
| On Xubuntu 13.10 (perhaps on Ubuntu 13.10 too) the same can be done as follows: | |
| Edit key mappings in /lib/udev/hwdb.d/60-keyboard.hwdb: | |
| ########################################################### | |
| # Microsoft | |
| ########################################################### | |
| # Microsoft Natural Ergonomic Keyboard 4000 | |
| keyboard:usb:v045Ep00DB* |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # store all solarized files in one place | |
| mkdir ~/.solarized | |
| cd ~/.solarized | |
| # http://www.webupd8.org/2011/04/solarized-must-have-color-paletter-for.html | |
| git clone https://github.com/seebi/dircolors-solarized.git | |
| eval `dircolors ~/.solarized/dircolors-solarized/dircolors.256dark` | |
| ln -s ~/.solarized/dircolors-solarized/dircolors.256dark ~/.dir_colors | |
| git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git |
##Google Interview Questions: Product Marketing Manager
| import re | |
| import shutil | |
| import argparse | |
| from os import path | |
| from sys import stderr | |
| # | |
| # Author: Daxda | |
| # Date: 02.04.2014 | |
| # WTF: This is a quick tool I've hacked together to easily remove the meta |
| // sloppy traceroute clone | |
| // inpired by https://blogs.oracle.com/ksplice/entry/learning_by_doing_writing_your | |
| // and made possible by https://www.npmjs.org/package/raw-socket | |
| var raw = require('raw-socket'); | |
| var dns = require('dns'); | |
| var target = process.argv[2] || '173.230.146.29'; | |
| var MAX_HOPS = 64; | |
| var TIME_LIMIT = 5000; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <openssl/evp.h> | |
| // compile with: gcc -lssl find.c |