Skip to content

Commit

Permalink
aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed May 9, 2024
1 parent 7e95554 commit 310bcaf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fish/conf.d/rails.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
abbr -a rdm 'rails db:migrate'
abbr -a rgm 'rails generate migration'
18 changes: 18 additions & 0 deletions fish/conf.d/videos.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# First argument is the input file
# second argument is the speed up factor, default: 8 if not provided
function speed_up
if test (count $argv) -eq 0
echo "Usage: speed_up <input_file> [speed_up_factor:8]"
return 1
end

set input_file $argv[1]
set speed_up_factor $argv[2]
if test -z $speed_up_factor
set speed_up_factor 8
end

set output_file (echo $input_file | sed "s/\(.*\)\.\(.*\)/\1-fast.\2/")
echo "Speeding up $input_file by $speed_up_factor times and saving to $output_file..."
ffmpeg -i $input_file -filter:v "setpts=PTS/$speed_up_factor" -an $output_file
end

0 comments on commit 310bcaf

Please sign in to comment.