Skip to content

Instantly share code, notes, and snippets.


Lin, Yong Xiang r888800009

View GitHub Profile
sourcerebels /
Created Feb 20, 2012
Download all Phrack Magazine Issues
for i in {1..67}
tar xvzf ${FILE}
rm ${FILE}
shijinkui / basecommand_emacs
Created Mar 16, 2012
View basecommand_emacs
C-x C-f 打开/新建文件
C-x C-s 保存当前缓冲区
C-x C-w 当前缓冲区另存为
C-x C-v 关闭当前Buffer并打开新文件
C-x i 光标处插入文件
C-x b 切换Buffer
C-x C-b 显示Buffer列表
C-x k 关闭当前Buffer
sanchitgangwar /
Created Mar 22, 2012
Snakes Game using Python
# Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting
import curses
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN
from random import randint
win = curses.newwin(20, 60, 0, 0)
jexchan /
Created Apr 10, 2012
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C ""
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
suziewong /
Last active Dec 21, 2021
Git的多账号如何处理? 1.同一台电脑多个git(不同网站的)账号 2.同一台电脑多个git(同一个网站的比如github的)多个账号


首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at] 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)

host github
  Port 22
vjt /
Last active Sep 29, 2021
Copy data from a Time Machine volume mounted on a Linux box.
# Copy data from a Time Machine volume mounted on a Linux box.
# Usage: <source> <target>
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
mzabriskie /
Last active Jan 25, 2022
Check git status of multiple repos

If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.


git-status [directory]

This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.

branneman /
Last active Jan 26, 2022
Better local require() paths for Node.js

Better local require() paths for Node.js


When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

eelsivart /
Last active Jan 2, 2022 — forked from sh1n0b1/
Heartbleed (CVE-2014-0160) Test & Exploit Python Script
# Modified by Travis Lee
# Last Updated: 4/21/14
# Version 1.16
# -changed output to display text only instead of hexdump and made it easier to read
# -added option to specify number of times to connect to server (to get more data)
# -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc...
# -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port)