Go to file
Nemo b16fe00f13 fix create torrent script 2022-01-26 21:08:53 +05:30
.gitignore fix name 2018-08-18 19:34:51 +05:30
LICENSE Adds audible-strip-drm 2020-02-03 13:30:41 +05:30
README.md new script to create torrents 2021-09-29 13:32:10 +05:30
alsa-info.sh Updates composer, youtube-dl and other scripts 2015-06-19 14:40:48 +05:30
ansi2html.sh Update ansi2html 2018-12-25 14:54:20 +05:30
archive-repo general updates 2019-03-28 12:10:18 +05:30
audible-strip-drm Make sure MP4 files are stream-able 2021-09-29 13:31:20 +05:30
audiobook2video Adds new customs script for converting books to videos 2021-01-02 15:03:01 +05:30
aur.sh Adds some more random scripts 2017-01-30 16:16:29 +05:30
avi2gif . 2017-12-30 22:55:25 +05:30
backlight Adds keyboard backlight command 2017-11-13 12:42:04 +05:30
blacklist2hosts.php general updates 2019-03-28 12:10:18 +05:30
bluetooth-pan.sh Initial commit 2012-01-28 12:44:33 +05:30
brightness.sh WIP scripts 2015-06-19 14:41:32 +05:30
byzanz-record-region.sh Record to gif 2014-02-20 17:57:32 +05:30
byzanz-record-window.sh Record to gif 2014-02-20 17:57:32 +05:30
calibre_cleanup.php Initial commit 2012-01-28 12:44:33 +05:30
cbr2pdf Bash strict mode is super-important 2020-05-16 01:03:49 +05:30
cbz-convertor.sh Adds a new housekeeping script 2018-08-02 08:22:06 +05:30
cbz.sh Remove dead code from cbz.sh 2020-09-03 17:44:31 +05:30
cbz2pdf comic conversions 2016-07-18 18:14:34 +05:30
ccg cleanup 2020 2020-05-02 19:08:46 +05:30
changed.sh Initial commit 2012-01-28 12:44:33 +05:30
composite_office_lockscreen.png i3lock update 2016-02-18 23:33:08 +05:30
convertSTL.rb Converts STL files from/to binary <-> ascii formats 2015-02-10 19:33:20 +05:30
cpw Better file copy program with queues 2012-10-26 21:52:09 +05:30
create-new-torrent fix create torrent script 2022-01-26 21:08:53 +05:30
cwdterm.sh cleanup 2020 2020-05-02 19:08:46 +05:30
djvu2pdf remove git stats, add i3-pomodor and djvu2pdf 2020-05-27 14:36:09 +05:30
do-common.sh Adds S3/DO spaces methods 2017-09-02 01:52:51 +05:30
do-get Adds S3/DO spaces methods 2017-09-02 01:52:51 +05:30
dydns.sh Bash strict mode is super-important 2020-05-16 01:03:49 +05:30
ec Fix audible m4a files 2021-07-21 15:00:48 +05:30
emojify Emojify script from https://github.com/mrowa44/emojify 2015-07-25 16:07:06 +05:30
epub2mobi.sh Adds some more random scripts 2017-01-30 16:16:29 +05:30
extract_uimage.sh cleanup 2020 2020-05-02 19:08:46 +05:30
fix-audible-m4a Make sure MP4 files are stream-able 2021-09-29 13:31:20 +05:30
flac2mp3 x2y should be everywhere 2016-05-22 23:39:04 +05:30
frak Adds some more random scripts 2017-01-30 16:16:29 +05:30
get-current-track.sh Updating the music display in statusbar 2017-01-30 16:15:11 +05:30
get-nav Simple script to get NAV of a mutual fund 2021-05-21 11:03:15 +05:30
get_current_track.py lastfm support 🤘 2017-02-02 13:29:05 +05:30
gett Fixes to gett it working 2021-02-16 14:11:46 +05:30
ghissues2csv markdown/github shit 2019-11-17 09:29:31 +05:30
git-find-blob git commands 2019-08-06 17:57:25 +05:30
git-grab WIP scripts 2015-06-19 14:41:32 +05:30
git-pushall-branches git commands 2019-08-06 17:57:25 +05:30
git-sync Adds git-sync 2019-04-12 01:47:10 +05:30
github-init-repo cleanup 2020 2020-05-02 19:08:46 +05:30
github-team-ssh-keys.sh Some more scripts 2017-01-30 16:16:50 +05:30
gitlistobjectbysize.sh git commands 2019-08-06 17:57:25 +05:30
graphpath Adds graphpath 2018-05-06 01:15:53 +05:30
hda-analyzer Adds some more random scripts 2017-01-30 16:16:29 +05:30
hosts general updates 2019-03-28 12:10:18 +05:30
housekeeping appimage housekeeping 2022-01-24 21:14:39 +05:30
hsmarkdown.php Use markdown in php in case pandoc isn't installed 2012-10-26 21:50:59 +05:30
i3-get-window-criteria i3 scripts 2015-06-25 19:16:48 +05:30
i3-pomodoro remove git stats, add i3-pomodor and djvu2pdf 2020-05-27 14:36:09 +05:30
i3lock-fancy Adds i3lock-fancy 2018-07-24 18:52:48 +05:30
i3lock.sh remove fancy options for now 2019-12-31 12:47:33 +05:30
imguralbum.py Adds audible-strip-drm 2020-02-03 13:30:41 +05:30
iphone.mount doesn't work sadly 2021-01-19 15:33:47 +05:30
json.sh Initial commit 2012-01-28 12:44:33 +05:30
lock-icon.png i3lock update 2016-02-18 23:33:08 +05:30
lock.sh Run betterlockscreen 2019-08-06 17:57:25 +05:30
lockscreen.png [i3] Better lock. 2015-11-30 18:12:00 +05:30
lockscreen_office.png i3lock update 2016-02-18 23:33:08 +05:30
lowbatterycron.sh changes from CLX-10 on Tue Aug 20 16:08:34 IST 2019 2019-08-20 16:08:41 +05:30
mdtable2csv markdown/github shit 2019-11-17 09:29:31 +05:30
mobile-pass-sync Housekeeping improvements 2018-10-21 18:10:17 +05:30
offline_filter.pl Initial commit 2012-01-28 12:44:33 +05:30
parallel Installed parallel and other utils from the package 2015-06-19 14:39:53 +05:30
pass-show for scripts which just need one line passwords 2020-07-17 18:31:29 +05:30
pdf-parser.py More cleanup, update pdf-parser.py 2020-05-03 18:17:01 +05:30
pip2arch.py Generate PKGBUILD from pip packages 2020-10-26 23:23:20 +05:30
plutil.pl A few more utilities 2012-02-18 21:44:10 +05:30
port_block_check.sh Initial commit 2012-01-28 12:44:33 +05:30
prettyping Updated composer and installed prettyping. 2013-10-18 20:19:40 +05:30
pulse-recorder.py Add pulse-recorder 2020-10-26 23:20:11 +05:30
resty A few more utilities 2012-02-18 21:44:10 +05:30
reverse_video.sh Reverses a video 2015-02-10 19:33:38 +05:30
rip-git.pl Adds some more random scripts 2017-01-30 16:16:29 +05:30
s3-common.sh Adds S3/DO spaces methods 2017-09-02 01:52:51 +05:30
s3-delete Adds S3/DO spaces methods 2017-09-02 01:52:51 +05:30
s3-get Adds S3/DO spaces methods 2017-09-02 01:52:51 +05:30
s3-head Adds S3/DO spaces methods 2017-09-02 01:52:51 +05:30
s3-put Adds S3/DO spaces methods 2017-09-02 01:52:51 +05:30
screen-darken.sh Minor indent fix 2017-01-30 16:23:09 +05:30
screen-off New scripts 2013-08-25 12:48:21 +05:30
screencast screencast to gif script 2016-06-21 14:26:07 +05:30
seagate Haven't run these in a while 2017-07-01 00:00:07 +05:30
sem Installed parallel and other utils from the package 2015-06-19 14:39:53 +05:30
setup.test Add a setup.test file 2021-06-09 23:18:06 +05:30
shrinkpdf Adds shrinkpdf command to compress pdf files 2014-06-21 20:16:33 +05:30
signcerts.sh Put titles on each file, because the big file title won't work well 2020-04-08 03:36:09 +05:30
sleepsize.sh Initial commit 2012-01-28 12:44:33 +05:30
snippy.sh snippy changes to use i3 for focusing back after dmenu 2016-06-21 14:24:44 +05:30
split-audio-by-chapters Make sure MP4 files are stream-able 2021-09-29 13:31:20 +05:30
split-by-audible Add error handling for audible-split 2020-10-26 23:20:02 +05:30
split-by-silence Keep stuff in README 2020-10-26 23:22:24 +05:30
sql Installed parallel and other utils from the package 2015-06-19 14:39:53 +05:30
ssl-cipher-test.sh Adds some more random scripts 2017-01-30 16:16:29 +05:30
stream-audio.sh Allow user to copy the rtsp path, instead of relying on xclip 2015-03-15 17:22:36 +05:30
swaks More cleanup, update pdf-parser.py 2020-05-03 18:17:01 +05:30
synaptic-tweaks.sh Adds synaptic fixes 2017-09-06 14:47:59 +05:30
syncMedia Haven't run these in a while 2017-07-01 00:00:07 +05:30
syncrepos sync main branch also 2021-01-19 14:57:20 +05:30
undelete general updates 2019-03-28 12:10:18 +05:30
unimatrix scripts 2018-02-09 14:35:08 +05:30
update.koreader Fix koreader Update script 2021-05-29 14:46:49 +05:30
vimeo_downloader.sh New version of vimeo downloader 2012-12-30 13:24:13 +05:30
vtt2srt changes from the PR review 2018-03-29 06:20:25 +05:30
whoisplaying More cleanup, update pdf-parser.py 2020-05-03 18:17:01 +05:30
xsetup Got a brand new mouse. scroll works! 2015-01-21 10:05:48 +05:30
yadisk Adds yadisk - A script to download stuff from Yandex Disk 2020-04-13 16:49:55 +05:30
yubi-insert.sh Fix yubi-unlock 2017-06-30 23:57:52 +05:30
yubilock.sh Shifts to using systemd for calling i3lock from udev 2017-01-30 16:08:34 +05:30

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
fix-audible-m4a Third-party. Fixes audible m4a fiels with incorrect Audio Object Type Specific Config bit. Source: https://rentry.co/n4ost
create-new-torrent Creates a new torrent file with sensible defaults using mktorrent