Skip to content

Instantly share code, notes, and snippets.

View mokocchi's full-sized avatar

Jose Arcidiacono mokocchi

View GitHub Profile
@mokocchi
mokocchi / gamepad-control.py
Last active April 2, 2023 14:22 — forked from isti115/gamepad-control.py
Proof of concept blender addon for controlling the viewport with a gamepad (evdev python module needed, only tested under linux)
bl_info = {
"name" : "Gamepad Control",
"author" : "Mokocchi",
"description" : "Control the blender viewport using a gamepad - based on István Donkó PoC",
"blender" : (3, 4, 1),
"category" : "Generic"
}
import evdev
@mokocchi
mokocchi / pomodoro_cli.sh
Last active January 31, 2023 18:12 — forked from bashbunni/.zshrc
CLI Pomodoro for Linux
# Requires https://github.com/caarlos0/timer and cowsay to be installed
declare -A pomo_options
pomo_options["work"]="45m"
pomo_options["break"]="10m"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
echo $val | cowsay