As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/usr/bin/env python | |
# coding: utf-8 | |
# You need PIL <http://www.pythonware.com/products/pil/> to run this script | |
# Download unifont.ttf from <http://unifoundry.com/unifont.html> (or use | |
# any TTF you have) | |
# Copyright 2011 Álvaro Justen [alvarojusten at gmail dot com] | |
# License: GPL <http://www.gnu.org/copyleft/gpl.html> | |
from image_utils import ImageText |
As configured in my dotfiles.
start new:
tmux
start new with session name:
package main | |
import "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
// Allocate two-dimensioanl array. | |
a := make([][]uint8, dy) | |
for i := 0; i < dy; i++ { | |
a[i] = make([]uint8, dx) | |
} |
#go to folder: | |
/Applications/Adobe Photoshop CS6/Locales/pt_BR/Support Files/tw10428.dat | |
#rename the file tw10428.dat for tw10428.bak |
#!/usr/bin/env python3 | |
from itertools import accumulate | |
from bisect import bisect | |
from random import randrange | |
from unicodedata import name as unicode_name | |
# Set the unicode version. | |
# Your system may not support Unicode 7.0 charecters just yet! So hipster. | |
UNICODE_VERSION = 6 |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
使用公钥私钥来登陆而不是账号密码,公钥私钥需要简单的在本地生成一下。Github 的生成 SSH 公钥私钥的教程:Generating SSH keys
可能需要使用 -i
参数选择一下本地的私钥,一个示例的 ssh 连接如下:
package example_test | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"hex" | |
"io" | |
) | |
// AES-GCM should be used because the operation is an authenticated encryption |