首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)
host github
hostname github.com
Port 22
host gitlab.zjut.com
/* ***** BEGIN LICENSE BLOCK ***** | |
* Distributed under the BSD license: | |
* | |
* Copyright (c) 2010, Ajax.org B.V. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. |
# Mousemode alias so the mouse works in WeeChat while running mosh: | |
alias mousemode="perl -E ' print \"\e[?1005h\e[?1002h\" '" | |
# Command function to enable mousemode, get the mosh key and port, lookup the ip for the hostname and set up the mosh-client connection | |
function mosher() { | |
mousemode | |
mosh_string=$(ssh $1 -t mosh-server|grep "MOSH CONNECT") | |
mosh_key=$(echo $mosh_string|cut -d " " -f4) | |
mosh_port=$(echo $mosh_string|cut -d " " -f3) | |
mosh_ip=$(ping -n 1 $1 | grep Pinging | cut -d '[' -f 2|cut -d ']' -f 1) |
#!/usr/bin/ruby | |
# | |
# encoding: utf-8 | |
# | |
# Make long url into short url from http://t.cn | |
# | |
require "uri" | |
require "net/http" | |
params = { |
namespace App.iOS | |
{ | |
public partial class PaperView : UIViewController | |
{ | |
// webView is a UIWebView | |
// toolbar is a UIToolbar | |
public override void ViewDidLoad () | |
{ | |
base.ViewDidLoad (); |
NOTE: You don't need to compile Mosh on Cygwin yourself anymore; just install the package with Cygwin's setup.exe
.
Download Cygwin.
Run setup.exe
and install the following packages in addition to the default ones: