This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| How to build avrdude from SVN: | |
| 1. svn co svn://svn.savannah.nongnu.org/avrdude/trunk | |
| 2. cd trunk/avrdude | |
| 3. ./bootstrap | |
| 4. ./configure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Toaster Oven SMT soldering control | |
| Adrian Bowyer | |
| 2 November 2011 | |
| Licence: GPL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git checkout <branch> | |
| git fetch <other-fork-alias> | |
| git cherry-pick <commit-hash> | |
| git push <your-fork-alias> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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 |