Some useful (or not) scripts
Go to file
2015-11-17 21:58:55 +01:00
dmenu Add some scripts for dmenu. To rewrite :) 2014-10-21 23:18:29 +02:00
greasemonkey Add some useful greasemonkey scripts. 2014-09-25 23:38:43 +02:00
update-motd.d firewall: set OUTPUT Policy to DROP and translate some comments. 2015-09-16 22:04:12 +02:00
.gitignore Add some other scripts from Ivan Tikhonov. 2014-09-26 00:42:26 +02:00
actions Add some scripts for dmenu. To rewrite :) 2014-10-21 23:18:29 +02:00
bash_quote bash_quote: correct shebang and check if lynx is available. 2015-09-08 02:14:15 +02:00
bepo_azerty.sh A script to switch my keyboard and WM configuration bépo <-> azerty 2014-10-20 15:26:16 +02:00
changeuser.sh Add a new script to rename the commit username of a git repo. 2014-12-09 14:03:22 +01:00
ecran Add script to manage xrandr 2014-09-25 23:37:13 +02:00
explorer.exe explorer.exe: LOL :D (… symlink to nemo ^^). 2015-11-12 03:45:01 +01:00
firewall Firewall: Add a rule for HP printers on port 9100 2015-10-10 01:42:21 +02:00
flac_to_mp3 Correct variables name in flac_to_mp3 script: error if the variable 2014-12-09 14:04:26 +01:00
git-loc Add some other scripts from Ivan Tikhonov. 2014-09-26 00:42:26 +02:00
make_win_usb make_win_usb: Should specify the USB key as 1st arg and iso file as the 2015-11-17 21:58:55 +01:00
manette360 Add scripts to manage Wii and Xbox 360 gamepad. 2014-09-26 00:27:42 +02:00
netboot.c Add some other scripts from Ivan Tikhonov. 2014-09-26 00:42:26 +02:00
pomodoro Pomodoro: set the right $BREAK_TIME 2015-10-27 13:27:42 +01:00
printscreen Tiny script to screen capture. 2015-05-11 23:41:56 +02:00
procstat.c Add a script to show informations of a process. 2014-09-26 00:33:44 +02:00
README.md Pomodoro: add documentation in the README.md 2015-10-27 13:27:16 +01:00
resize_img A script to resize images with convert. 2014-09-23 23:54:24 +02:00
shell_color.sh Add shell_color.sh a tiny script to show how to use color with a shell 2015-01-28 10:12:01 +01:00
sms.py An old script to send sms from a gmail account. Probably not working but 2014-09-26 00:54:30 +02:00
snapsend.sh Snapsend: 2014-11-20 14:30:29 +01:00
update_iso.sh Update link to download iso. 2015-04-20 16:19:59 +02:00
veille.sh veille.sh: also delete files can contains unwanted clear passords. 2015-09-21 17:14:53 +02:00
vimmanpager Add a "vim" pager (need a less.vim macro). 2015-01-30 12:00:39 +01:00
wiimote Add scripts to manage Wii and Xbox 360 gamepad. 2014-09-26 00:27:42 +02:00
wol Small script for wakeonlan. 2014-10-21 10:51:09 +02:00
zenity_generator.sh Add a script to generate windows with zenity and bash. 2014-10-21 23:21:09 +02:00
zfSnap.sh Add zfSnap script from the legacy branch of the github project: 2014-11-18 15:49:57 +01:00

Scripts

Description:

Some useful scripts (for me) that can be added to $PATH :)

List:

  • bash_quote: Get a random quote from http://danstonchat.com
  • firewall: A script shell to set some iptables rules.
  • update-dynmotd.d/: scripts to update the motd (via the /etc/update-motd.d directory).
  • flac_to_mp3: convert all flac files of a directory into mp3.
  • pomodoro: Print a task and a timer in a file. Try to apply Pomodoro Technique!
  • snapsend.sh: Send a ZFS snapshot to a remote host.
  • test_ssl3: Test if a website supportes the SSLV3 protocol.
  • veille.sh: Kill every sensitive process and files then lock the screen.
  • vimmanpager: Tiny script can be used as PAGER, it will call VIM!
  • wol: Send WakeOnLan/magic packets to remote host.
  • zenity_generator: Script to generate zenity window.
  • zfSnap.sh: Take snapshot of a ZFS pool.

Pomodoro

My implementation of the Pomodoro Technique (https://en.wikipedia.org/wiki/Pomodoro_Technique).

You can simply launch it with:

pomodoro "Work my french kiss"

Then the script will:

  • Create a ~/.pomodoro directory to store current task (current.task) and a summary of each week (eg week-42-2015.txt).
  • First, it's put task name and a timer (for $WORK_TIME) to the current task file.
  • Once the $WORK_TIME has been reached:
    1. Log task name and worked time to the weekly log file
    2. Toggle the sound to mark a pause
    3. It's put a pause/break message for 5/20 minutes as current task
    4. Delete the current task file

Disavantages

  • Must run the script every ~30 minutes
  • …?

Advantages

  • I can display my current task and it's timer wherever i want (tmux, herbstluftwm, …)
  • Written to work with /bin/sh