/scripts

Simple scripts in different langages to handle basic day to day functions.

Primary LanguageVim ScriptGNU General Public License v3.0GPL-3.0

Scripts

Simple scripts in different langages to handle basic day to day functions.


List of scripts

dtagsearch.sh

Search for specific docker image tags

$ dtagsearch.sh debian
bullseye-20200224
unstable-20200130-slim
unstable-20200130
testing-20200130-slim
testing-20200130
stretch-20200130-slim
...

dimgsize.sh

Returns a docker image size able of looking for specific tag

$ dimgsize.sh debian buster-20200224
49Mi

fix-str.sh

Fix subtitle files encoding problem -> convert to utf-8. Script contains commented usecase.

pkgs-from.sh

Creates a list of packages installed from a specific category

pkgs-from.sh universe

unmount.sh

Safely unmont and poweroff an external drive

  1. syncs everything on buffers

  2. Unmounts all partitions on selected device

  3. Then poweroff the block device

     $ unmount.sh
     start syncing...
     ------------------
     sda   SE600R 246G
     sdb   SW700L 485G
     ------------------
     Enter device name: (sd[b-z])
    

gjc.py

Converts Gregorian & Jalali

$ gjc.py 2020/04/10

now_playing_clementine.py

Shows the details of currently playing track in Clementine music player

# While nothing is playing
$ now_playing_clementine.py
.:: ♪♪♪ ::..

vimcat

vimcat from vim, to cat files in a colorful way

today.sh

Prints out the persian day of the week

tor-ip.py

Request a new IP address

toggle_wifi.sh

Softly blocks/unblocks wifi using nmcli

toggle_touchpad.sh

Softly enable/disable touchpad using xinput

chroot.sh

Run multiple mount command cause I'm too lazy to do it myself.


Mirrors

This repository is available both at github and gitlab: