Skip to content

Instantly share code, notes, and snippets.

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

David FU davidfuzju

🏠
Working from home
View GitHub Profile
@davidfuzju
davidfuzju / .tigrc
Created March 2, 2019 10:12
tig custom setting
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)
@davidfuzju
davidfuzju / History|-101b569e|4qyt.json
Last active March 5, 2023 14:54
Visual Studio Code Settings Sync Gist
{
"version": "2.0.0",
"tasks": [
{
"type": "docker-build",
"label": "docker-build",
"platform": "node",
"dockerBuild": {
"dockerfile": "${workspaceFolder}/Dockerfile",
"context": "${workspaceFolder}",
@davidfuzju
davidfuzju / start.bat
Last active September 17, 2017 02:26
set affinity for process memu
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 }"