Skip to content

Instantly share code, notes, and snippets.

View eu81273's full-sized avatar
๐Ÿ’ญ
I may be slow to respond.

Jaeha Ahn (Aiden) eu81273

๐Ÿ’ญ
I may be slow to respond.
View GitHub Profile
@eu81273
eu81273 / sleepwatcher.sh
Last active November 16, 2022 21:38
sleepwatcher installation script for macOS
#!/bin/bash
# based on http://tyhoffman.com/blog/2013/09/sleepwatcher-power-event-driven-automation/
# acquire sudo at the beginning
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@eu81273
eu81273 / .bash-powerline.sh
Last active July 26, 2018 04:02
bash shell์—์„œ powerline ๊ณผ ๊ฐ™์€ ํšจ๊ณผ
#!/usr/bin/env bash
# Powerline
# https://github.com/powerline/powerline
# JS ๋ฒ„์ „
# https://github.com/ceejbot/powerline-js
# Python ๋ฒ„์ „
# https://github.com/banga/powerline-shell
# for c in {0..255}; do tput setaf $c; tput setaf $c | cat -v; echo =$c; done
@eu81273
eu81273 / .tigrc
Last active November 2, 2023 06:51
Tig ๋ชจ๋“  ๊ธฐ๋ณธ ์„ค์ • + ์ปค์Šคํ…€
# Tig ๊ธฐ๋ณธ ์„ค์ •
# 'man tigrc' ๋ฅผ ์ปค๋งจ๋“œ๋ผ์ธ์—์„œ ์ž…๋ ฅํ•˜๋ฉด ์ „์ฒด ๋งค๋‰ด์–ผ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.
# ๋งค๋‰ด์–ผ ํ•œ๊ธ€ ๋ฒˆ์—ญ http://ujuc.github.io/2016/02/10/tig-manual/
# ์„ค์ •
# --------
# ์—ฌ๊ธฐ์— ์žˆ๋Š” ๋Œ€๋ถ€๋ถ„์˜ ์„ค์ •๋“ค์€ toggle-* ์ด๋‚˜ ์˜ต์…˜ ๋ฉ”๋‰ด(๊ธฐ๋ณธ๊ฐ’์€ 'o' ํ‚ค)๋ฅผ ํ†ตํ•ด ํ† ๊ธ€ํ•  ์ˆ˜ ์žˆ๋‹ค.
# ๋ทฐ ์„ค์ •
#