Skip to content

Commit

Permalink
speed-up, switch_wildcard, show tmux pane name
Browse files Browse the repository at this point in the history
  • Loading branch information
nonrational committed Mar 24, 2024
1 parent 9021d2e commit 318b542
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

ci = commit -v
co = checkout
col = "!. ~/.githelpers && checkout_first_matching"

df = "diff --name-only"
dfo = "df origin/master"
Expand Down Expand Up @@ -93,6 +92,7 @@

aww = "!. ~/.githelpers && add_wildcard"
uww = "!. ~/.githelpers && reset_wildcard"
sww = "!. ~/.githelpers && switch_wildcard"

yolo = !git commit --allow-empty -m \"$(curl -s https://whatthecommit.com/index.txt)\"
[status]
Expand Down
16 changes: 8 additions & 8 deletions .githelpers
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ reset_wildcard(){
git ls-files --deleted | grep -i $1 | xargs -I{} git checkout HEAD {}
}

switch_wildcard() {
if [ -z "$1" ]; then
echo "No pattern provided"
else
git branch -a | egrep "$1" | head -1 | xargs git switch
fi
}

delete_remoteless_branches_interactive(){
python3 $HOME/bin/git-broom.py
}
Expand All @@ -97,14 +105,6 @@ delete_all_my_branches_interactive(){
done
}

checkout_first_matching() {
if [ -z "$1" ]; then
echo "No pattern provided"
else
git branch | egrep "$1" | head -1 | xargs git checkout
fi
}

TIMESINCE="function timeSince(date) {\
var seconds = Math.floor((new Date() - date) / 1000);\
var interval = Math.floor(seconds / 31536000);\
Expand Down
6 changes: 6 additions & 0 deletions .profile
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# NONE

# TODO: Figure out why this makes VSCode happy.
if [ -f "$HOME/.asdf/asdf.sh" ]; then
echo "Sourcing asdf.sh via .profile"
source $HOME/.asdf/asdf.sh
fi
4 changes: 4 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
set -g prefix C-a
bind C-a send-prefix

# show status of each pane
set -g pane-border-format "#{pane_index} #{pane_title}"
set -g pane-border-status bottom

bind -n C-k clear-history

# force a reload of the config file
Expand Down
11 changes: 11 additions & 0 deletions bin.Darwin/speed-up
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

if [ -z "$1" ]; then
echo "Usage: speed-up <input-file>"
exit 1
fi

input_file="$1"
output_file="${input_file%.*}.faster.${input_file##*.}"

ffmpeg -i "$input_file" -filter_complex "[0:v]setpts=0.625*PTS[v];[0:a]atempo=1.6[a]" -map "[v]" -map "[a]" "$output_file"
Binary file modified etc/com.googlecode.iterm2.plist
Binary file not shown.
Binary file modified etc/com.if.Amphetamine.plist
Binary file not shown.
Binary file modified etc/com.manytricks.Moom.plist
Binary file not shown.

0 comments on commit 318b542

Please sign in to comment.