Skip to content

Instantly share code, notes, and snippets.

View SuperMarioBean's full-sized avatar
🏠
Working from home

David Fu SuperMarioBean

🏠
Working from home
View GitHub Profile
@SuperMarioBean
SuperMarioBean / .tigrc
Created March 2, 2019 10:12
tig custom setting
View .tigrc
set main-view = line-number:no,interval=5 id:yes date:default author:full commit-title:yes,graph,refs,overflow=no
set wrap-lines = yes # Wrap long lines in pager views?
bind main p ?git push %(branch)
bind main f !git fetch %(remote) %(branch)
bind main b !git rebase %(branch)
bind main B ?git rebase -i %(commit)
bind main ! !git revert %(commit)
bind main \ ?git format-patch -1 %(commit)
@SuperMarioBean
SuperMarioBean / History|-101b569e|4qyt.json
Last active March 5, 2023 14:54
Visual Studio Code Settings Sync Gist
View History|-101b569e|4qyt.json
{
"version": "2.0.0",
"tasks": [
{
"type": "docker-build",
"label": "docker-build",
"platform": "node",
"dockerBuild": {
"dockerfile": "${workspaceFolder}/Dockerfile",
"context": "${workspaceFolder}",
@SuperMarioBean
SuperMarioBean / start.bat
Last active September 17, 2017 02:26
set affinity for process memu
View start.bat
ping -n 30 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_1"
ping -n 20 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_2"
ping -n 20 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_3"
ping -n 20 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_4"
powershell.exe -Command "$cpu=16; Get-Process MEmu | ForEach-Object { $cpu = $cpu / 2; $_.ProcessorAffinity = $cpu }"