Skip to content

Instantly share code, notes, and snippets.

View devtrillo's full-sized avatar

Esteban Trillo devtrillo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am devtrillo on github.
  • I am devtrillo (https://keybase.io/devtrillo) on keybase.
  • I have a public key ASDPiZCYRtkW6-D_GKB-ZY6Y4Kn46qTWxN2xnK_PKjDoxQo

To claim this, I am signing this object:

@devtrillo
devtrillo / keybase.md
Created December 30, 2019 02:46
keybase.md

Keybase proof

I hereby claim:

  • I am devtrillo on github.
  • I am devtrillo (https://keybase.io/devtrillo) on keybase.
  • I have a public key ASBewP_xIYo0mNEB0UeIGRMB_W-96qvyo8jsj3PewkFVGQo

To claim this, I am signing this object:

#!/bin/bash
#This version will provide internet when using the hotspot IF an ethernet cable is plugged in"
#This script is for Buster ONLY
#unblock wifi
#needed after buster 20200205
rfkill unblock all > /dev/null 2>&1
#update packages
@devtrillo
devtrillo / RPI-desk-controller.py
Last active September 7, 2020 18:35
This is a controller for two linear actuators to a desk
from gpiozero import LED
from time import sleep
import sys
relay_a = LED("GPIO4")
relay_b = LED("GPIO17")
ht_file = "height.txt"
max_height = 400
@devtrillo
devtrillo / machine.js
Last active April 20, 2021 23:07
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: "fetch",
initial: "submitConfig",
context: {
retries: 0,
},
states: {
submitConfig: {
on: {
noGridVoltage: "SAVE_CT_RATED_CURRENT_INIT",
@devtrillo
devtrillo / machine.js
Created April 28, 2021 15:13
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@devtrillo
devtrillo / prepare-commit-msg
Last active August 2, 2025 12:49
Custom git commit messages based on pivotal tracker
#!/bin/sh
COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
SHA1=$3
COMMIT_MSG=$(cat "$COMMIT_MSG_FILE")
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop main)