Skip to content

Instantly share code, notes, and snippets.

View tommytyc's full-sized avatar

Yu-Chien Tang tommytyc

View GitHub Profile
@tommytyc
tommytyc / .zshrc
Last active November 2, 2021 00:24
zsh shell setup
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export DOCKER_HOST=unix:///var/run/docker.sock
#export LESS_TERMCAP_mb=$'\E[01;34m'
#export LESS_TERMCAP_md=$'\E[01;34m'
#export LESS_TERMCAP_me=$'\E[0m'
@tommytyc
tommytyc / gd_download.sh
Last active April 1, 2021 06:06
download large file from GD in CLI
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
@tommytyc
tommytyc / .tmux.conf
Last active December 27, 2021 15:51
my tmux conf
set -g default-terminal "screen-256color"
set -g mouse on
set -g set-clipboard on
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'wfxr/tmux-power'
set -g @tmux_power_theme 'sky'
set -g @tmux_power_session_icon '🔑';
set -g @tmux_power_user_icon '🙂';
set -g @tmux_power_time_icon '🕒';