Skip to content

Instantly share code, notes, and snippets.

@nunogrl
nunogrl / Makefile
Created August 16, 2023 14:43
arduino CLI makefile
# Makefile for Arduino based scketches
#
# Copyright 2020 Valerio Di Giampietro http://va.ler.io v@ler.io
# MIT License - see License.txt file
#
# This Makefile uses the arduino-cli, the Arduino command line interface
# and has been designed and tested to run on Linux, not on Windows.
# Probably it will run on a Mac, but it has not been tested.
#
# Please note that:
@nunogrl
nunogrl / commit-msg.py
Last active February 9, 2023 17:17
gitconfig
#!/usr/bin/env python3
import os
import re
import subprocess
import sys
def clean(lines, strip_empty_line=False):
cleaned_lines = []
@nunogrl
nunogrl / create_debpackage.sh
Created April 18, 2020 22:29
create a deb file from an existing directory tree
#/bin/sh
# usage:
# version=123 sh create_debpackage.sh
package=bcwebsite
# version=234
if [ ! -d ${package} ]; then
mkdir -p ${package}/DEBIAN
@nunogrl
nunogrl / gist:f52e36b2dc01514c6321d9ff9206b66d
Created July 22, 2019 08:33
git-bash profile on Windows machines
#!/bin/bash
BASHCONFIGFILE="$HOME/.minttyrc"
GITCONFIGFILE="$HOME/.gitconfig"
echo "Ensure that Inconsolata is installed"
echo "adding terminal config file"
cat << EOFBASH > $BASHCONFIGFILE
Font=Inconsolata
FontHeight=12
BackgroundColour=106,106,106