View .zshrc
# Add this line to your .bashrc / .zshrc | |
# The 'o' script (cf below) must be in your $PATH | |
# 'fasd' (cf https://github.com/clvv/fasd) must be in your $PATH too | |
alias oo='fasd -a -e o' | |
# Now use 'oo criteria<TAB>' (iterate through matches) or simply 'oo' (list entries) | |
# Given that 'fasd' is a requirement, maybe have a look at the 'zz' alias |
View dl-twitter-video
#!/bin/bash | |
# Usage: $0 TWEET_URL <DEST_FILE> | |
# If the second parameter is omitted, the video is saved to a timestamped file | |
DLWD_URL=https://www.savetweetvid.com/fr/downloader | |
TWEET_URL=$1 | |
DEST_FILE=$2 | |
if [ "$TWEET_URL" = "--help" ] || [ "$TWEET_URL" = "-h" ] |
View pdf-grep
#!/bin/bash | |
# Three arguments: ROOT_DIR, PATTERN, OPTIONS | |
# Search below $ROOT_DIR for PDF files matching $PATTERN | |
# $OPTIONS is passed to pdfgrep (ex: grep-pdf . 'some words' -h -C5) | |
# ROOT_DIR | |
if [ -z "$1" ]; then | |
echo "! Argument ROOT_DIR is needed!" |