Skip to content

Instantly share code, notes, and snippets.

View tingleshao's full-sized avatar

Chong Shao tingleshao

View GitHub Profile
@tingleshao
tingleshao / gist:cae2a764c60e3d002c68bb7f779489c4
Created November 14, 2016 16:01
ffmpeg compress with certain bitrate and resolution
ffmpeg -i jellyfish-120-mbps-4k-uhd-h264.mkv -c:v libx264 -profile:v main -vf scale=1920:1080 -b:v 50000k -an -tune fastdecode -coder 0 -flags -loop -g 30 -bf 0 -t 10 jellyfish-hd-50mbps_main_nosound_fast_short.mp4
# show gpu card model
lspci | grep VGA
# show nvidia driver version
nvidia-smi
@tingleshao
tingleshao / gist:6944967
Created October 12, 2013 02:21
a useful Gemfile
source 'http://rubygems.org'
gem 'rails', '3.1.1'
gem 'sqlite3'
group :development do
gem 'rspec-rails', '2.6.1'
end
@tingleshao
tingleshao / two projects
Last active December 23, 2015 13:59
two projects
1. nyaruko: ruby shoes video player that can read a list of pgm frames
can autodetect the x y dimensions
can control the shit of frame rate
2. neya: C++ program that can show the binary image differences.
for example: load several binary images, display the label with color on the side
@tingleshao
tingleshao / ruby shoes notes
Created January 20, 2013 02:02
ruby shoes notes
"app" changes where it refers to after a new window was initialized.