Skip to content

Instantly share code, notes, and snippets.

View keyvec's full-sized avatar
🔧
Learning RAG

S.Liang keyvec

🔧
Learning RAG
View GitHub Profile
@keyvec
keyvec / ffmpeg_nvidia_conda_install.sh
Created October 30, 2025 11:00 — forked from kiyoon/ffmpeg_nvidia_conda_install.sh
Install nvidia accelerated ffmpeg in a conda environment.
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers
vi Makefile # change the first line to PREFIX = ${CONDA_PREFIX}
make install
cd ..
git clone https://git.ffmpeg.org/ffmpeg.git
cd ffmpeg
git checkout n4.2.2
conda install nasm
@keyvec
keyvec / doss.sh
Created February 7, 2022 08:27 — forked from lexrus/doss.sh
A tiny script to initialize a new Shadowsocks server in DigitalOcean.
#!/bin/bash
#
# This macOS bash script helps you initialize a new Shadowsocks server with doctl in seconds.
# Original author: lexrus https://github.com/lexrus
#
# You can get $100 free credit for create VPS in DigitalOcean with my referral link:
# https://m.do.co/c/3eb5cf371fc9
#
# Please intall and authorize doctl before running this script.
# https://github.com/digitalocean/doctl
@keyvec
keyvec / mac-tips.md
Last active October 16, 2015 09:18
Mac Tips

To reset launchpad

defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
@keyvec
keyvec / install-homebrew.sh
Last active December 27, 2015 04:29
Mac dev
sudo chown -R `whoami` /usr/local
ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
@keyvec
keyvec / gist:5635217
Created May 23, 2013 10:44
zsh theme
# based on proze.zsh-theme
function repo_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
hg root >/dev/null 2>/dev/null && echo '☿' && return
echo '$'
}
local pwd="%{$fg[blue]%}%c%{$reset_color%}"