As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| 阿爸 a1'ba4 18137 | |
| 阿昌族 a1'chang1'zu2 50849 | |
| 阿斗 a1'dou3 42632 | |
| 阿飞 a1'fei1 48603 | |
| 阿富汗 a1'fu4'han4 3461 | |
| 阿訇 a1'hong1 34432 | |
| 阿拉伯数字 a1'la1'bo2'shu4'zi4 35937 | |
| 阿拉伯语 a1'la1'bo2'yu3 30476 | |
| 阿妈 a1'ma1 16220 |
| """ | |
| Example of WebSocket receiving cookies from session. | |
| # Currently using tornado==4.0.2 | |
| pip install git+http://github.com/tornadoweb/tornado.git | |
| Run: | |
| python secure_websocket.python | |
| and access online: |
| import hashlib | |
| import hmac | |
| import base64 | |
| def make_digest(message, key): | |
| key = bytes(key, 'UTF-8') | |
| message = bytes(message, 'UTF-8') | |
| """Google spreadsheet related. | |
| Packages required: gspread, cryptography, oauth2client, google-api-python-client | |
| For OSX see | |
| * http://stackoverflow.com/a/33508676/315168 | |
| """ | |
| import logging |