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
# Based on https://www.geeksforgeeks.org/create-stopwatch-using-python/ | |
import tkinter as Tkinter | |
from datetime import datetime | |
import serial | |
from serial.tools import list_ports | |
import time | |
import threading | |
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
#!/bin/sh | |
# This script uses Virtualbox Port Forwarding to make all Docker services | |
# available on Windows host under `localhost` | |
VBXMGMT=/c/Program\ Files/Oracle/VirtualBox/VBoxManage.exe | |
# List all the running container ids | |
docker ps -q | while read -r i; do | |
# List all the ports bound by this container<Paste> |
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
## Prefix like in screen | |
set -g prefix 'C-a' | |
## Use xterm keys (makes eg. Ctrl+Arrow navigate words) | |
set-window-option -g xterm-keys on | |
## List of plugins | |
# For this to work you need to install https://github.com/tmux-plugins/tpm | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' |
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
for i in *; do if exiv2 pr $i|grep 'Camera model.*EX-S5' >/dev/null; then exiv2 -O +6 -D +6 -a +16:30 ad $i; fi; done |
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 python | |
""" | |
Pandoc filter to pass all code blocks through pygments highlighter. | |
""" | |
from pandocfilters import toJSONFilter, RawBlock | |
from pygments import highlight | |
from pygments.lexers import (get_lexer_by_name, guess_lexer, TextLexer) | |
from pygments.formatters import get_formatter_by_name |
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
# Find every FLAC file beginning from current directory and print names of those with errors | |
find -name '*.flac' | while read i; do flac -t "$i" 2>/dev/null || echo $i; done |