Skip to content

Instantly share code, notes, and snippets.

@hitzhangjie
hitzhangjie / disassembler.go
Created September 6, 2020 19:27 — forked from grantseltzer/disassembler.go
Full disassembler
package main
import (
"debug/elf"
"fmt"
"log"
"os"
"github.com/bnagy/gapstone"
)
@hitzhangjie
hitzhangjie / remap_win_desktop_switcher.ahk
Created June 27, 2017 01:21 — forked from yiboyang/remap_win_desktop_switcher.ahk
Remap Windows10's virtual desktop switcher key combo to Unity's "Ctrl + Alt + Left/Right"
;
; AutoHotkey Version: 1.1
; Language: English
; Platform: Win9x/NT
; Author: Yibo Yang
;
; Script Function:
; Remap Windows10's virtual desktop switcher keyboard shortcut from the default "Ctrl + Win + Left/Right" to Unity's "Ctrl + Alt + Left/Right"
; Put into the startup folder so that it will run every time your computer starts (http://superuser.com/questions/948616/windows-10-change-shortcut-keys-to-switch-between-desktops)
@hitzhangjie
hitzhangjie / osx-brew-gnu-coreutils-man.sh
Created August 23, 2016 11:03 — forked from quickshiftin/osx-brew-gnu-coreutils-man.sh
Running GNU coreutils via Homebrew on your Mac? Here's a one-liner to get the manpages working!
# Short of learning how to actually configure OSX, here's a hacky way to use
# GNU manpages for programs that are GNU ones, and fallback to OSX manpages otherwise
alias man='_() { echo $1; man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $1 1>/dev/null 2>&1; if [ "$?" -eq 0 ]; then man -M $(brew --prefix)/opt/coreutils/libexec/gnuman $1; else man $1; fi }; _'