Skip to content

Instantly share code, notes, and snippets.

Avatar

Bruno Furtado bmfurtado

  • Dublin, Ireland
View GitHub Profile
@bmfurtado
bmfurtado / instructions.md
Last active Nov 7, 2021
Instructions to setup a simple custom RPi boot splash screen
View instructions.md

Setup splash screen

  • Create a PNG of the appropriate size (check with fbset), put it in /home/pi/splash.png
  • /boot/config.txt
    • add disable_splash=1
  • /boot/cmdline.txt
    • add logo.nologo consoleblank=0 loglevel=1 quiet to the end of the cmdline
  • sudo systemctl disable getty@tty3
  • sudo apt install fbi
  • sudo vi /etc/systemd/system/splashscreen.service - fill with contents:
@bmfurtado
bmfurtado / map_codes.py
Created Aug 3, 2020
Map IR codes for smartir climate stuff
View map_codes.py
import base64
import broadlink
import click
import json
import pdb
def split_csv(ctx, param, value):
return [x.strip() for x in value.split(',')]
def generate_temps(min, max, step):
View generate-ubuntu-ami-mapping.py
#!/usr/bin/env python
import urllib2
import json
import itertools
import sys
import argparse
def groupby(data, key):
kf = lambda x: x[key]
result = itertools.groupby(sorted(data,None,kf), kf)
View keybase.md

Keybase proof

I hereby claim:

  • I am bmfurtado on github.
  • I am bmfurtado (https://keybase.io/bmfurtado) on keybase.
  • I have a public key whose fingerprint is 0A2D 3FA4 400D 50E2 FA6F FBA0 9F8D B6C6 2F7A 84B8

To claim this, I am signing this object:

@bmfurtado
bmfurtado / cssh.applescript
Last active Jul 28, 2020
Create multiple SSH sessions in split panes on iTerm2 and enable key broadcasting.
View cssh.applescript
Moved to: https://github.com/bmfurtado/iterm2-cssh