- Shots - capture, annotate screenshots
- Green Screen Recorder
- Radiotray-NG
- Ulauncher
- Trojita
- Boostnote (Programmer's notes)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sys/time.h> | |
int main() | |
{ | |
struct timeval t1, t2; | |
double elapsedTime; | |
// start timer | |
gettimeofday(&t1, NULL); |
# BASH shell
boom()
{
find $@ -type f \( -iname "*.mp3" -o -iname "*.flac" -o -iname "*.webm" -o -iname "*.wma" \) | sort -R | head -n 100 | xargs -d "\n" smplayer > /dev/null 2>&1 &
Generate an App password for your Google account. Select the custom option from the drop-down menu. The password will work with any of the utilities below.
-
Install sendemail and dependencies
sudo apt install libio-socket-ssl-perl libnet-ssleay-perl libterm-readkey-perl sendemail
-
Apply patch1 to simplify the mailing experience
sudo patch /usr/bin/sendEmail < sendEmail-1.56-5.patch
-
Scroll linewise: Ins, Del [ref]
-
Quit without confirmation:
echo 'bind "main" "q" = "really-quit"' >>~/.elinks/elinks.conf
-
To copy text with mouse hold the Shift key down.
-
Settings on URL passing: http://edulinux.homeunix.org/elinks/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import stat | |
extns = ['.aac', '.avi', '.flac', '.m3u', '.m4a', '.mkv', '.mp3', '.mp4', '.smi', '.srt', '.sub', '.webm', '.wma'] | |
for root, dirs, files in os.walk('.'): | |
for entry in files: | |
fname, ext = os.path.splitext(entry) |
- Use Google Maps, save Goa offline for quick access. Jio works everywhere.
- Buy hats. Goa is hot and humid (between Feb to Dec).
- If you reach Madgaon by train and want to go to North Goa, take an auto to the Madgaon Bus stand (around Rs. 120). Book a ticket for the non-stop express bus to the Panjim Bus stand. At Panjim Bus stand, take a KTC prepaid taxi to North Goa.
- A nice place to homestay is Joe and Marietta's guesthouse, Calangute Goa. They have all amenities like AC, fridge, hot water, wifi... It's very near to KFC. They will provide numbers to cab and bike services too. But do NOT buy petrol from them even if the lady insists. They charged Rs. 80/ltr when the petrol price in Goa was Rs. 52/ltr on the day. There are petrol pumps everywhere. One can stay in North Goa and visit Old Goa + Panjim by bike.
- Autos and cabs will cost you dearly. Hire a bike for a few days (~Rs. 300/day for Honda Activa). No Uber or Ola, thanks to govt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Function to show error and exit | |
errexit() | |
{ | |
echo "process not found."; | |
exit 1; | |
} | |
## Check number of arguments passed |
Instead of waiting for long commands to finish one can easily get notifications when they are complete. The following procdure shows how to set his in fish shell.
Requirements: fish shell, notify-send, xdotool
- Add a new file
vi ~/.config/fish/functions/noti.fish
with the content below:
function fish_right_prompt
if test $CMD_DURATION
# Check if terminal window is hidden