Skip to content

Instantly share code, notes, and snippets.

Yue Chen caimaoy

Block or report user

Report or block caimaoy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
async def main():
coroutine1 = do_some_work(1)
coroutine2 = do_some_work(2)
coroutine3 = do_some_work(4)
tasks = [
jorben / openssl_tool.txt
Last active Aug 6, 2018
View openssl_tool.txt
1) Generate RSA key:
$ openssl genrsa -out key.pem 1024
$ openssl rsa -in key.pem -text -noout
2) Save public key in pub.pem file:
$ openssl rsa -in key.pem -pubout -out pub.pem
$ openssl rsa -in pub.pem -pubin -text -noout
3) Encrypt some data:
Integralist / Python Asyncio Timing
Last active Nov 8, 2019
Python Asyncio Timing Decorator
View Python Asyncio Timing
import asyncio
import time
def timeit(func):
async def process(func, *args, **params):
if asyncio.iscoroutinefunction(func):
print('this function is a coroutine: {}'.format(func.__name__))
return await func(*args, **params)
justinbellamy /
Last active Jun 27, 2019 — forked from jellybeansoup/
Install Autoconf and Automake on OS X El Capitan
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
# This script is originally from
export build=~/devtools # or wherever you'd like to build
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
lucifr / gist:1208100
Created Sep 10, 2011
Sublime Text 2 - 实用快捷键 (Mac OS X)
View gist:1208100
You can’t perform that action at this time.