Skip to content

Instantly share code, notes, and snippets.

View bemaru's full-sized avatar
🐢
slow and steady wins the race

Jihoon Kwak bemaru

🐢
slow and steady wins the race
View GitHub Profile
@bemaru
bemaru / system-info.ps1
Created February 1, 2026 10:25
Windows System Info Script
# System Performance Check Script
# Run: powershell -ExecutionPolicy Bypass -File system-info.ps1
Write-Host "`n=== SYSTEM INFO ===" -ForegroundColor Cyan
# OS
$os = Get-CimInstance Win32_OperatingSystem
Write-Host "`n[OS]" -ForegroundColor Yellow
Write-Host " $($os.Caption) $($os.OSArchitecture)"
Write-Host " Build: $($os.BuildNumber)"
@bemaru
bemaru / .wezterm.lua
Last active February 1, 2026 10:28
WezTerm config
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
-- 1. WSL Ubuntu 자동 접속
config.default_domain = 'WSL:Ubuntu'
-- 2. GPU 가속 및 렌더링 최적화
config.front_end = "WebGpu"
config.max_fps = 144 -- 모니터 주사율이 높다면 부드럽게 출력
@bemaru
bemaru / tasklist_example.cmd
Created February 28, 2018 00:25
tasklist_example
tasklist /fi "imagename eq outlook.exe" /m
@bemaru
bemaru / windows_version_check.cmd
Last active January 26, 2018 00:29
check windows version using cmd batch
@echo off
setlocal
for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j
echo %version%
if "%version%" == "10.0" echo Windows 10
if "%version%" == "6.3" echo Windows 8.1
if "%version%" == "6.2" echo Windows 8
if "%version%" == "6.1" echo Windows 7
if "%version%" == "6.0" echo Windows Vista
rem etc etc
@bemaru
bemaru / tags.sh
Created January 18, 2018 09:29 — forked from edsilv/tags.sh
git tags
#push tag
git push origin <tag_name>
#delete all remote tags
git tag -l | xargs -n 1 git push --delete origin
#delete all local tags
git tag | xargs git tag -d
@bemaru
bemaru / gist:c60ad6c8c0050e929611c6b52f2efd98
Created January 15, 2018 04:37
git clone all remote branches locally
#!/bin/bash
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done
@bemaru
bemaru / _menu.bat
Last active December 13, 2017 07:09
menu.bat display menu(like switch), run another bat
:LOOP
@ECHO OFF
echo.
echo 1: sub1
echo 2: sub2
echo.
SET /P mode="choose mode :"
echo.
@bemaru
bemaru / LoadAppInit_DLLs_enable.bat
Last active December 13, 2017 07:02
LoadAppInit_DLLs enable(0) or disable(1)
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" /v "LoadAppInit_DLLs" /t REG_DWORD /d 1 /f
@bemaru
bemaru / wanna_cry_clean.cmd
Created December 13, 2017 06:03
wanna_cry_clean
taskkill /f /im @Wa*
taskkill /f /im wan*
taskkill /f /im taskhsvc.exe
::runas /user:Administrator cmd
pause
@bemaru
bemaru / ARRAYSIZE.h
Created December 13, 2017 00:39
c/c++ calculate array size
#ifndef ARRAYSIZE
// There is a better way, but this is good enough for our purpose.
# define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))
#endif