Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| #include <SPI.h> | |
| #include "FS.h" | |
| #include "SPIFFS.h" | |
| #define CS 5 | |
| #define FORMAT false | |
| SPIClass * vspi = NULL; | |
| SPISettings settings(10000000, MSBFIRST, SPI_MODE0); | |
| //SPISettings settings(1000000, MSBFIRST, SPI_MODE0); |
| @echo off | |
| echo Uninstalling KB3075249 (telemetry for Win7/8.1) | |
| start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart | |
| echo Uninstalling KB3080149 (telemetry for Win7/8.1) | |
| start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart | |
| echo Uninstalling KB3021917 (telemetry for Win7) | |
| start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart | |
| echo Uninstalling KB3022345 (telemetry) | |
| start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart | |
| echo Uninstalling KB3068708 (telemetry) |
| #!/bin/bash | |
| # function Extract for common file formats | |
| function extract { | |
| if [ -z "$1" ]; then | |
| # display usage if no parameters given | |
| echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>" | |
| else | |
| if [ -f "$1" ] ; then | |
| NAME=${1%.*} |
| #include <fcntl.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/ioctl.h> | |
| #include <linux/types.h> | |
| #include <linux/spi/spidev.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <sys/errno.h> | |
| #include <assert.h> |
| #!/usr/bin/env bash | |
| cpstat () { | |
| tar c "$1" | pv | tar x -C "$2" | |
| } |
| [Unit] | |
| Description=Prints the IP of eth0 interface in OLED Display | |
| Requires=network.target | |
| After=syslog.target udhcpd.service | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/home/debian/System/printIP_oled.py |
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| import time | |
| import Adafruit_SSD1306 | |
| import Image | |
| import ImageFont | |
| import ImageDraw | |
| import sys |
| [[[HSRC]]] | |
| [[[STEP]]] | |
| [[[DEFINE routername="OpenWrt Barrier Breaker"/]]] | |
| [[[/STEP]]] | |
| [[[STEP]]] | |
| [[[REQUEST]]] | |
| POST /cgi-bin/luci HTTP/1.1 | |
| Host: %%%routerip%%% |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/