You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Nemo cf09f66b60 improve cleanup for pacman 3 weeks ago
.gitignore fix name 3 years ago
LICENSE Adds audible-strip-drm 1 year ago
README.md Update README 1 month ago
alsa-info.sh Updates composer, youtube-dl and other scripts 6 years ago
ansi2html.sh Update ansi2html 3 years ago
archive-repo general updates 2 years ago
audible-strip-drm podman FTW! 3 weeks ago
audiobook2video Adds new customs script for converting books to videos 6 months ago
aur.sh Adds some more random scripts 4 years ago
avi2gif . 4 years ago
backlight Adds keyboard backlight command 4 years ago
blacklist2hosts.php general updates 2 years ago
bluetooth-pan.sh Initial commit 10 years ago
brightness.sh WIP scripts 6 years ago
byzanz-record-region.sh Record to gif 7 years ago
byzanz-record-window.sh Record to gif 7 years ago
calibre_cleanup.php Initial commit 10 years ago
cbr2pdf Bash strict mode is super-important 1 year ago
cbz-convertor.sh resilio doesn't sync symlinks, so copy and sync 3 years ago
cbz.sh Remove dead code from cbz.sh 10 months ago
cbz2pdf comic conversions 5 years ago
ccg cleanup 2020 1 year ago
changed.sh Initial commit 10 years ago
composite_office_lockscreen.png i3lock update 5 years ago
convertSTL.rb Converts STL files from/to binary <-> ascii formats 6 years ago
cpw Better file copy program with queues 9 years ago
cwdterm.sh cleanup 2020 1 year ago
djvu2pdf remove git stats, add i3-pomodor and djvu2pdf 1 year ago
do-common.sh Adds S3/DO spaces methods 4 years ago
do-get Adds S3/DO spaces methods 4 years ago
dydns.sh Bash strict mode is super-important 1 year ago
ec Adds README with descriptions 11 months ago
emojify Emojify script from https://github.com/mrowa44/emojify 6 years ago
epub2mobi.sh Adds some more random scripts 4 years ago
extract_uimage.sh cleanup 2020 1 year ago
flac2mp3 x2y should be everywhere 5 years ago
frak Adds some more random scripts 4 years ago
get-current-track.sh Updating the music display in statusbar 4 years ago
get-nav Simple script to get NAV of a mutual fund 1 month ago
get_current_track.py lastfm support 🤘 4 years ago
gett Fixes to gett it working 4 months ago
ghissues2csv markdown/github shit 2 years ago
git-find-blob git commands 2 years ago
git-grab WIP scripts 6 years ago
git-pushall-branches git commands 2 years ago
git-sync Adds git-sync 2 years ago
github-init-repo cleanup 2020 1 year ago
github-team-ssh-keys.sh Some more scripts 4 years ago
gitlistobjectbysize.sh git commands 2 years ago
graphpath Adds graphpath 3 years ago
hda-analyzer Adds some more random scripts 4 years ago
hosts general updates 2 years ago
housekeeping improve cleanup for pacman 3 weeks ago
hsmarkdown.php Use markdown in php in case pandoc isn't installed 9 years ago
i3-get-window-criteria i3 scripts 6 years ago
i3-pomodoro remove git stats, add i3-pomodor and djvu2pdf 1 year ago
i3lock-fancy Adds i3lock-fancy 3 years ago
i3lock.sh remove fancy options for now 1 year ago
imguralbum.py Adds audible-strip-drm 1 year ago
iphone.mount doesn't work sadly 5 months ago
json.sh Initial commit 10 years ago
lock-icon.png i3lock update 5 years ago
lock.sh Run betterlockscreen 2 years ago
lockscreen.png [i3] Better lock. 6 years ago
lockscreen_office.png i3lock update 5 years ago
lowbatterycron.sh changes from CLX-10 on Tue Aug 20 16:08:34 IST 2019 2 years ago
mdtable2csv markdown/github shit 2 years ago
mobile-pass-sync Housekeeping improvements 3 years ago
offline_filter.pl Initial commit 10 years ago
parallel Installed parallel and other utils from the package 6 years ago
pass-show for scripts which just need one line passwords 11 months ago
pdf-parser.py More cleanup, update pdf-parser.py 1 year ago
pip2arch.py Generate PKGBUILD from pip packages 8 months ago
plutil.pl A few more utilities 9 years ago
port_block_check.sh Initial commit 10 years ago
prettyping Updated composer and installed prettyping. 8 years ago
pulse-recorder.py Add pulse-recorder 8 months ago
resty A few more utilities 9 years ago
reverse_video.sh Reverses a video 6 years ago
rip-git.pl Adds some more random scripts 4 years ago
s3-common.sh Adds S3/DO spaces methods 4 years ago
s3-delete Adds S3/DO spaces methods 4 years ago
s3-get Adds S3/DO spaces methods 4 years ago
s3-head Adds S3/DO spaces methods 4 years ago
s3-put Adds S3/DO spaces methods 4 years ago
screen-darken.sh Minor indent fix 4 years ago
screen-off New scripts 8 years ago
screencast screencast to gif script 5 years ago
seagate Haven't run these in a while 4 years ago
sem Installed parallel and other utils from the package 6 years ago
shrinkpdf Adds shrinkpdf command to compress pdf files 7 years ago
signcerts.sh Put titles on each file, because the big file title won't work well 1 year ago
sleepsize.sh Initial commit 10 years ago
snippy.sh snippy changes to use i3 for focusing back after dmenu 5 years ago
split-audio-by-chapters cleanup 2020 1 year ago
split-by-audible Add error handling for audible-split 8 months ago
split-by-silence Keep stuff in README 8 months ago
sql Installed parallel and other utils from the package 6 years ago
ssl-cipher-test.sh Adds some more random scripts 4 years ago
stream-audio.sh Allow user to copy the rtsp path, instead of relying on xclip 6 years ago
swaks More cleanup, update pdf-parser.py 1 year ago
synaptic-tweaks.sh Adds synaptic fixes 4 years ago
syncMedia Haven't run these in a while 4 years ago
syncrepos sync main branch also 5 months ago
undelete general updates 2 years ago
unimatrix scripts 3 years ago
update.koreader Fix koreader Update script 3 weeks ago
vimeo_downloader.sh New version of vimeo downloader 9 years ago
vtt2srt changes from the PR review 3 years ago
whoisplaying More cleanup, update pdf-parser.py 1 year ago
xsetup Got a brand new mouse. scroll works! 7 years ago
yadisk Adds yadisk - A script to download stuff from Yandex Disk 1 year ago
yubi-insert.sh Fix yubi-unlock 4 years ago
yubilock.sh Shifts to using systemd for calling i3lock from udev 4 years ago

README.md

scripts

This lives in my ~/projects/scripts directory and is added to my $PATH. Not a lot of this is used, but I leave them in here, just in case they are helpful to someone. Scripts are in various languages, including Bash, PHP, Python, Ruby, and Perl. This also collects helper scripts I've found on the Internet (Labelled third-party)

Filename what it does
alsa-info.sh Third-party. Dump your alsa configuration for easier debugging.
ansi2html.sh Third-party. pipe your colored shell output and get HTML out
archive-repo helper script to archive a repo on GitHub by pushing it to an orphan branch
audible-strip-drm Strip Audible DRM from all Audible-MP4 files in the current directory
aur.sh dumb AUR helper, for when you don't have yay installed yet
avi2gif convert an AVI file to a GIF at 10FPS. High quality
backlight change keyboard brightness for laptops.
blacklist2hosts.php convert a blacklist file (list of hosts) to a /etc/hosts format file with 0.0.0.0 prepended
bluetooth-pan.sh Run PAN on a specific bluetooth device.
brightness.sh change display brightness. Works primarily on laptops
byzanz-record-region.sh Third-party. Select a screen region and record it using byzanz
byzanz-record-window.sh Third-party. Select a window and record it using byzanz
calibre_cleanup.php Old cleanup script for fixing namespace in EPUBs that won't open on my iPad
cbr2pdf Change a CBR(Comic Book RAR archive) to a PDF
cbz2pdf Change a CBZ(Comic Book ZIP archive) to a PDF
cbz-convertor.sh Same as cbz.sh but also syncs them somewhere
cbz.sh Zips given directories into .cbz (Comic Book ZIP) archives of the smame name (eg "folder name.cbz").
ccg Third-party. Generate a control graph from a PHP codebase
changed.sh Search whole filesystem for changed files in the last $1 minutes
convertSTL.rb Third-party. STL files support binary and ascii encodings. This helps convert b/w them
cpw Third-party. build an array of all cpw procs for this user that aren't this one.
cwdterm.sh Picks a sensible-terminal, used by i3. Currently forces alacritty.
djvu2pdf Third-party. Convert a DJVU file to PDF
do-common.sh Run S3 commands against Digital Ocean. Unfinished
do-get@ Run S3 commands against Digital Ocean. Symlink to do-common. Idea was to switch like how busybox does
dydns.sh I like my local system IP address (192.168.1.*) to be accessible over the network using https://me.captnemo.in. This updates the DNS server by making an API request to CloudFlare.
emojify Third-party. Substitutes emoji aliases (like 💖) to emoji raw characters.
epub2mobi.sh Convert all EPUB files in a directory recursively to MOBI using ebook-convert
extract_uimage.sh Third-party. Extract contents from a uImage, which is the compressed linux kernel format.
flac2mp3 Convert all flac files to mp3 in current directory in parallel using ffmpeg
frak Generates a regex from a given input file containing all possible matches using the frak NPM package.
get_current_track.py Gets my current playing track from /tmp/lastfm.html (which was updated with cron) or the cmus-now-playing status file, whichever existed. Unused now
get-current-track.sh Same, but in Bash
ghissues2csv Exports issues from a list of repositories to individual CSV files.
git-find-blob Given a blob ID, finds the relevant commit
git-grab Downloads a git directory from a webserver with an exposed .git directory
github-init-repo Initialize a repo with a first commit and create it on GitHub
github-team-ssh-keys.sh Get all SSH keys for a given team on GitHub
gitlistobjectbysize.sh Third-party. Find large Git objects to find out what is taking space in your repository
git-pushall-branches push all branches.
git-sync This scrips intends to sync via git near-automatically
graphpath Third-party. Graphpath generates an ASCII network diagram from the route table of a Unix/Linux
hda-analyzer Third-party. Alsa debugging helper script
hosts adblocking hosts file. I use this as fallback sometimes, since it committed
housekeeping A housekeeping script that clears up space, syncs a few repositories
hsmarkdown.php Third-party. PHP Markdown Extra with additional syntax for jsMath equations
i3-get-window-criteria Third-party. Get criteria for use with i3 config commands
i3lock-fancy Fancy i3lock
i3lock.sh Custom i3lock script
i3-pomodoro i3blocks pomodoro script
imguralbum.py Third-party. Download a whole imgur album in one go.
json.sh Third-party. Parse a JSON file using BASH.
LICENSE Licenses for third party scripts.
lock.sh Calls betterlockscreen
lowbatterycron.sh Cron I run using systemd that notifies me if I am on low battery and power isn't connected
mdtable2csv Third-party. Converts a markdown table in a file to CSV format
mobile-pass-sync@ Sync helper for syncing my mobile-passwords. Now I use housekeeping
offline_filter.pl Third-party. Simple liferea (and possibly for other things) conversion filter to download content for offline viewing during feed updates.
parallel Third-party. GNU parallel
pass-show Helper script to just output a one-line-password
pdf-parser.py Third-party script to parse a PDF
pip2arch.py Third-party script to generate PKGBUILD from pip packages
plutil.pl implementation of binary/UTF-8 (text) XML conversion of plist files
port_block_check.sh Run this behind a firewall to see if there are any outbound ports that are blocked
prettyping Third-party, runs a nice graphical ping
pulse-recorder.py Records a pulse audio stream easily.
resty Third-party. A tiny command line REST interface for bash and zsh.
reverse_video.sh Reverse a video
rip-git.pl Third-party. Brute force and download a publicly exposed .git directory
s3-common.sh Do S3 operations from Bash
s3-delete Do S3 operations from Bash
s3-get Do S3 operations from Bash
s3-head Do S3 operations from Bash
s3-put Do S3 operations from Bash
screencast Select a screen region and generate a nice GIF
screen-darken.sh Darken my laptop screen by running xrandr
screen-off Turn off the display by xset dpms. It will turn back on when on user-input
seagate Old sync script that I used to sync content to an external HDD regularly
sem GNU parallell (sem)
shrinkpdf Third-party. Shrinks a PDF by downsampling images (and a few other things)
signcerts.sh Runs dehydrated locally to update my certificates via LetsEncrypt. Sets my CloudFlare config and runs dehdyrated
sleepsize.sh Checks and reports the file size every 5 seconds. Helpful when you're copying large files, or waiting for something to complete.
snippy.sh Third-party. Helper script for i3 to let me create snippets and type them easily.
split-audio-by-chapters Splits a audiobook by its various chapters. I added support for providing a chapters.txt file with chapter names in case the M4B file doesn't have correct names
split-by-audible Similar to split-audio-by-chapters, but this one uses a different chapter-listing format, which is what you get when you copy the Audible tracklist from the Audible web player.
split-by-silence ffmpeg wrapper to use silence detection to split files. Source
sql Third-party. Runs SQL commands against different drivers based on DBURL. This is a GNU project
ssl-cipher-test.sh Runs a SSL Cipher test by testing all available ciphers against an upstream server
stream-audio.sh Streams pulseaudio to RTSP
swaks Third-party. Swaks is a swiss-knife toolkit for testing SMTP
synaptic-tweaks.sh Third-party. Minor configuration tweaks for synaptic touchpads
syncMedia Old script for syncing content
syncrepos Old script for syncing content. Now merged with housekeeping
undelete Attempt to find open file descriptors that are pointing to deleted files and try to recover them
unimatrix Third-party. Matrix animation on the terminal
update.koreader Updates KOReader on my Kindle.
vimeo_downloader.sh Third-party. Downloads a video fro Vimeo
vtt2srt Converts a VTT subtitle file to SRT (PHP)
whoisplaying Find out which process is playing audio.
xsetup Touchpad and other X configuration.
yadisk Download a file from Yandex Disk (like Dropbox) by using their API.
yubi-insert.sh Run when I insert a yubikey. Checks the Serial, and if they don't match, lock my screen
yubilock.sh Lock my screen when I remove my device. Runs using udev triggers
ec script to edit common configuration
get-nav Get NAV of a mutual fund from the Kuvera API
audiobook2video Generates a video for a music file, with a background