Compare commits

...

2 commits

Author SHA1 Message Date
57caaf7544 add alias for making videos look old 2021-12-31 21:42:57 -05:00
deb3127d58 its 2022! 2021-12-31 21:42:02 -05:00
2 changed files with 2 additions and 3 deletions

View file

@ -1,6 +1,4 @@
MIT License
Copyright (c) 2021
Copyright (c) 2022
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

1
.zshrc
View file

@ -13,6 +13,7 @@ plot() { cat /dev/stdin > /tmp/plotuwu; gnuplot -p -e 'set object rectangle from
smoothplot() { cat /dev/stdin > /tmp/plotuwu; gnuplot -p -e 'set object rectangle from screen 0,0 to screen 1,1 behind fillcolor rgb "black" fillstyle solid noborder; set border lw 3 lc rgb "white"; set xtics textcolor rgb "white"; set xlabel "X" textcolor rgb "white"; set ylabel "Y" textcolor rgb "white"; set key textcolor rgb "white"; plot for [col=1:'$1'] "/tmp/plotuwu" using 0:col smooth cspline title "'$3'" with '$2' lw 2 pt 7' ; }
calcpi() { echo "scale=$1; 16*a(1/5)-4*a(1/239)" | bc -l ; }
vhsify() { ffmpeg -i "$1" -vf fps=24,convolution="-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2:-2 -1 0 -1 1 1 0 1 2",curves="0/0 0.5/0.58 1/1",rgbashift=rh=-2:gh=2 -c:a copy "$2" }
base58gen() { echo $(base64 /dev/urandom | tr -d "\n/+Il0O$2" | head -c ${$(($1/5.*8+1))%.*}) }