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
@mokocchi
mokocchi / resumen_docker.md
Last active June 10, 2021 21:30
Guía básica de comandos de docker

Resumen Docker

Estructura:

docker [categoría] [comando] [parámetros]

Donde algunas categorías posibles son:

  • image
  • container
  • network
@mokocchi
mokocchi / sequencesInitScript.sql
Created March 8, 2017 06:23
postgres script for sequence intialization (CTF-AdminDesafios)
CREATE SEQUENCE category_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER TABLE category_id_seq
OWNER TO dsa;
--inserts here
ALTER SEQUENCE category_id_seq RESTART 1;