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' 키)를 통해 토글할 수 있다.
# 뷰 설정
#