Skip to content

Instantly share code, notes, and snippets.


Lin, Yong Xiang r888800009

View GitHub Profile
rodneyrehm / gist:40e7946c0cff68a31cea
Last active Oct 22, 2021
Diagrams for Documentation
View gist:40e7946c0cff68a31cea

some tools for diagrams in software documentation

Diagrams For Documentation

Obvious Choices


leonjza /
Last active Sep 24, 2021
Python Netcat
import socket
class Netcat:
""" Python 'netcat like' module """
def __init__(self, ip, port):
self.buff = ""
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
phrawzty /
Last active Nov 26, 2021
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
ccwang002 /
Last active May 27, 2021
Lab Coding Instructions for Beginners


Lab Guide for Coding Beginners

亮亮(@ccwang002)| Mar, 2015 | CC 3.0 BY license

如果內容有誤,你可以用任何管道發訊息轟炸我,或用底下的 gist comment 留言。



crunchprank /
Created Dec 15, 2015
Cheat Sheet For Password Crackers

Cheat Sheet For Password Crackers

This list was posted over at Unix-Ninja. I take no credit for these. Posting these here for my own convenience.

Extracting Data

Extract md5 hashes

# egrep -oE '(^|[^a-fA-F0-9])[a-fA-F0-9]{32}([^a-fA-F0-9]|$)' *.txt | egrep -o '[a-fA-F0-9]{32}' > md5-hashes.txt
# egrep -oE '(^|[^a-fA-F0-9])[a-fA-F0-9]{32}([^a-fA-F0-9]|$)' *.txt | egrep -o '[a-fA-F0-9]{32}' > md5-hashes.txt
Barneybook /
Last active Dec 1, 2021
Telegram 資訊相關 群組清單
2xAA / iterm-colors-to-vscode.js
Last active Nov 4, 2021
Convert iTerm2 "itermcolors" file to VSCode terminal color scheme
View iterm-colors-to-vscode.js
/* Generate colors using */
const col = [] // run your .itermcolors file through the above parser and replace the array with the output
function componentToHex(c) {
const hex = c.toString(16)
return hex.length === 1 ? `0${hex}` : hex
const mapping = {
'terminal.background':'Background Color',
experimatt / iterm-colors-to-vscode.js
Last active Nov 7, 2021
A simple script to use your iTerm color profile in vscode's built-in terminal.
View iterm-colors-to-vscode.js
// This script takes an iTerm Color Profile as an argument and translates it for use with Visual Studio Code's built-in terminal.
// usage: `node iterm-colors-to-vscode.js [path-to-iterm-profile.json]
// To export an iTerm Color Profile:
// 1) Open iTerm
// 2) Go to Preferences -> Profiles -> Colors
// 3) Other Actions -> Save Profile as JSON
// To generate the applicable color settings and use them in VS Code:
niw /
Last active Nov 30, 2021
How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!

NOTE: that this is current, 10/1/2021 state.

Running Windows 10 on ARM

  1. Install Xcode from App Store or install Command Line Tools on your Mac