Skip to content

Instantly share code, notes, and snippets.

View minimum-necessary-change's full-sized avatar

minimum-necessary-change

View GitHub Profile
@minimum-necessary-change
minimum-necessary-change / howto-build-avrdude.txt
Created June 23, 2019 09:06
Build avrdude from truck (latest)
How to build avrdude from SVN:
1. svn co svn://svn.savannah.nongnu.org/avrdude/trunk
2. cd trunk/avrdude
3. ./bootstrap
4. ./configure
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <sys/resource.h>
#include <sys/types.h>
typedef struct s_block* t_block;
struct s_block {
size_t size;
@minimum-necessary-change
minimum-necessary-change / gpioblnk.ino
Created July 24, 2019 07:33 — forked from RickKimball/gpioblnk.ino
c++ template blink using register level gpio access
// more fun with c++ classes and templates
// http://www.stm32duino.com/viewtopic.php?f=18&t=303
class GPIOPort :
public gpio_reg_map {
public:
void high(const uint32_t pin) {
BSRR = 1 << pin;
}
void low(const uint32_t pin) {
BRR = 1 << pin;
@minimum-necessary-change
minimum-necessary-change / dict.c
Created July 25, 2019 13:53 — forked from kylef/dict.c
A key/value dictionary system in C
/* A key/value dict system in C */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TEST TRUE /* Comment this line out to compile without a main function (used when including into another application). */
typedef struct dict_t_struct {
char *key;
void *value;
@minimum-necessary-change
minimum-necessary-change / fand.c
Created August 2, 2019 18:22 — forked from andreacioni/fand.c
Simple utility program for GNU/Linux systems to control a fan motor of your miniPC (UDOO,Raspberry Pi,Orange Pi,etc) through a PWM signal
/*
A Project of Andrea Cioni
Title: Fan Daemon (FanD)
Author: Andrea Cioni (andreacioni)
cioni95@gmail.com
Copyright:
Copyright (c) 2017 Andrea Cioni <cioni95@gmail.com>
/*
Toaster Oven SMT soldering control
Adrian Bowyer
2 November 2011
Licence: GPL
@minimum-necessary-change
minimum-necessary-change / gist:460e0b0cc40c289b38d2b85f4ce294f4
Created September 24, 2019 06:41 — forked from bhumphrey/gist:3764983
Cherry-picking from another fork
git checkout <branch>
git fetch <other-fork-alias>
git cherry-pick <commit-hash>
git push <your-fork-alias>
@minimum-necessary-change
minimum-necessary-change / install_sis_graphics_on_linux.sh
Created May 1, 2020 15:25 — forked from fevangelou/install_sis_graphics_on_linux.sh
Bash script to install SiS Mirage 3+ graphics drivers on Linux
#!/bin/bash
# Bash script to install SiS Mirage 3+ graphics drivers on Linux
# Supports 671/672MX graphics cards
#
# Created in March 2019
#
# Tested on:
# - Lubuntu 18.04 (32-bit) with X.Org v1.19
# - Xubuntu 18.04 (64-bit) with X.Org v1.20
@minimum-necessary-change
minimum-necessary-change / stretch2buster.txt
Created December 16, 2020 17:20
Armbian - Upgrade Stretch to Buster
cp /etc/apt/sources.list /etc/apt/sources.list.backup
sed -i 's|stretch|buster|g' /etc/apt/sources.list
apt update && apt -y upgrade && apt -y dist-upgrade
$sudo add-apt-repository ppa:alessandro-strada/ppa
$sudo apt-get update
$sudo apt-get install google-drive-ocamlfuse
$google-drive-ocamlfuse
$mkdir -p ~/GoogleDrive
$google-drive-ocamlfuse ~/GoogleDrive