1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00

Add teleport/peek

This commit is contained in:
Starbeamrainbowlabs 2017-11-15 21:52:46 +00:00
parent 28551733da
commit ed2732b37e
4 changed files with 11 additions and 1 deletions

View file

@ -85,3 +85,11 @@ function _colorman() {
"$@" "$@"
} }
function man() { _colorman man "$@"; } function man() { _colorman man "$@"; }
# Quickly jump around places
function telepeek() {
find . -type d 2>/dev/null | grep -iP "$1" | less
}
function teleport() {
cd $(find . -type d 2>/dev/null | grep -iP "$1");
}

View file

@ -1,3 +1,4 @@
mogrify -format jpg *.png
find . -type f -exec grep -Hin testing "{}" ';' find . -type f -exec grep -Hin testing "{}" ';'
youtube-dl -f 'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo/bestaudio' "https://www.youtube.com/watch?v=Hp0cdTXv5Js&feature=youtu.be" youtube-dl -f 'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo/bestaudio' "https://www.youtube.com/watch?v=Hp0cdTXv5Js&feature=youtu.be"
youtube-dl -F "https://www.youtube.com/watch?v=Hp0cdTXv5Js&feature=youtu.be" youtube-dl -F "https://www.youtube.com/watch?v=Hp0cdTXv5Js&feature=youtu.be"
@ -18,7 +19,6 @@ sudo apt update && sudo apt full-upgrade
gifsicle -O3 -o /tmp/anim.o.gif /tmp/anim.gif gifsicle -O3 -o /tmp/anim.o.gif /tmp/anim.gif
find . -name "*.png" | xargs -I '{}' -P 4 mogrify -format gif '{}' find . -name "*.png" | xargs -I '{}' -P 4 mogrify -format gif '{}'
gifsicle --loopcount=0 --delay 150 -o /tmp/anim.gif *.gif gifsicle --loopcount=0 --delay 150 -o /tmp/anim.gif *.gif
mogrify -format jpg *.png
openssl pkcs12 -in sbrl@starbeamrainbowlabs.com.pkcs12 -out sbrl@starbeamrainbowlabs.com.pem -nodes openssl pkcs12 -in sbrl@starbeamrainbowlabs.com.pkcs12 -out sbrl@starbeamrainbowlabs.com.pem -nodes
tr '[:upper:]' '[:lower:]' tr '[:upper:]' '[:lower:]'
find . -name "*.jpeg" | xargs -I '{}' -P 4 mogrify -resize 1024x768 '{}' find . -name "*.jpeg" | xargs -I '{}' -P 4 mogrify -resize 1024x768 '{}'

View file

@ -56,6 +56,7 @@ Here's a list of the most interesting ones, along with what they do and where th
- nautilus-here - A quick command that opens nautilus in the current directory. For lazy people :P - nautilus-here - A quick command that opens nautilus in the current directory. For lazy people :P
- ssh-retry - I forget where it came from, but this command reepeatedly calls ssh until it succeeds in connecting. - ssh-retry - I forget where it came from, but this command reepeatedly calls ssh until it succeeds in connecting.
- quote-get - Displays a random quote from a remote file. The quote stays the same until the following day. The remote file is cached locally for convenience :smiley_cat: - quote-get - Displays a random quote from a remote file. The quote stays the same until the following day. The remote file is cached locally for convenience :smiley_cat:
- teleport / telepeek - A pair of quick functions in my `.bash_aliases` file for quickly jumping about. Works best if you've got a decent amount of free RAM for the cache.
## cloudsurfer.sh ## cloudsurfer.sh
`cloudsurfer.sh` is a new script I'm writing to bring some of the customisations I store here in this repository to terminals on shared machines - where I can't modify `.bashrc`, for example. `cloudsurfer.sh` is a new script I'm writing to bring some of the customisations I store here in this repository to terminals on shared machines - where I can't modify `.bashrc`, for example.

View file

@ -48,3 +48,4 @@ RANDOM=$(date +%Y%m%d);
quote_line=$((( $RANDOM % ${quote_count} ))); quote_line=$((( $RANDOM % ${quote_count} )));
sed -n ${quote_line}p "${quotes_cache_file}"; sed -n ${quote_line}p "${quotes_cache_file}";