tuxi,calc,translate,bluepill,ytfzf
parent
f523f8001e
commit
b558ad23be
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
|
||||
# https://www.youtube.com/user/gotbletu
|
||||
# DESC: open a cheatsheet to read notes
|
||||
# DEPEND: fzf findutils coreutils
|
||||
|
||||
selected="$(find ~/.config/bluepill/ -type f | sort | fzf -e -i --reverse --delimiter / --with-nth -1 --preview 'cat {}')"
|
||||
[ -z "$selected" ] && exit
|
||||
|
||||
# add to tmux and X11 clipboard
|
||||
xsel -b < "$selected"
|
||||
tmux load-buffer "$selected"
|
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env sh
|
||||
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
|
||||
# https://www.youtube.com/user/gotbletu
|
||||
|
||||
helpmsg() {
|
||||
printf "%s\n" "desc: commandline calculator (ctrl+d to exit)"
|
||||
printf "%s\n" "demo: http://www.youtube.com/watch?v=JkyodHenTuc"
|
||||
printf "%s\n" "depends: python2, python3 or bc"
|
||||
printf "\n"
|
||||
printf "%s\n" "usage: ${0##*/}"
|
||||
}
|
||||
if [ "$1" = -h ] || [ "$1" = --help ]; then
|
||||
helpmsg
|
||||
exit 0
|
||||
elif command -v python3 >/dev/null; then
|
||||
python3 -ic "from math import *; import cmath"
|
||||
elif command -v python2 >/dev/null; then
|
||||
python2 -ic "from __future__ import division; from math import *; from random import *"
|
||||
elif command -v bc >/dev/null; then
|
||||
bc -q -l
|
||||
else
|
||||
printf "%s\n" "missing python2, python3 or bc"
|
||||
exit 1
|
||||
fi
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
# youtube viewer not using API
|
||||
# youtube viewer not using youtube API
|
||||
# https://github.com/trizen/pipe-viewer
|
||||
pipe-viewer
|
||||
|
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
|
||||
# https://www.youtube.com/user/gotbletu
|
||||
# DESC: translate text
|
||||
# DEMO:
|
||||
# DEPEND: translate-shell
|
||||
|
||||
set -o vi
|
||||
while true
|
||||
do
|
||||
read -rep ">>> Translate English to Spanish: " INPUT
|
||||
history -s "$INPUT"
|
||||
trans en:es "$INPUT"
|
||||
printf "\n"
|
||||
done
|
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
|
||||
# https://www.youtube.com/user/gotbletu
|
||||
# DESC: translate text
|
||||
# DEMO:
|
||||
# DEPEND: translate-shell
|
||||
|
||||
set -o vi
|
||||
while true
|
||||
do
|
||||
read -rep ">>> Translate Text: " INPUT
|
||||
history -s "$INPUT"
|
||||
trans "$INPUT"
|
||||
printf "\n"
|
||||
done
|
||||
|
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
|
||||
# https://www.youtube.com/user/gotbletu
|
||||
# DESC: google top answers to your questions
|
||||
# DEMO: https://youtu.be/mWJBlkHwZy8
|
||||
# DEPEND: tuxi (https://github.com/Bugswriter/tuxi)
|
||||
# REFF: read with history https://unix.stackexchange.com/a/302923/430298
|
||||
|
||||
set -o vi
|
||||
while true
|
||||
do
|
||||
read -rep "Ask Google A Question: " INPUT
|
||||
history -s "$INPUT"
|
||||
tuxi -r "$INPUT"
|
||||
printf "\n"
|
||||
done
|
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
# A posix script that helps you find Youtube videos (with out API) and opens/downloads using mpv/youtube-dl.
|
||||
# https://github.com/pystardust/ytfzf
|
||||
|
||||
ytfzf -l
|
Loading…
Reference in New Issue