This file contains 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
/* | |
Demonstration sketch for Adafruit LCD backpack | |
using MCP23008 I2C expander | |
Uses the ATTiny 85 (replaces Trinket below) | |
Also hooked up a rotary encoder with a button. | |
The circuit: | |
* 5V to Arduino 5V pin | |
* GND to Arduino GND pin | |
* Display i2c backpack CLK to Trinket GPIO #2 (Arduino pin 2/attiny85 pin 7) |
This file contains 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
# Reliable persistent SSH-Tunnel via systemd (not autossh) | |
# https://gist.github.com/guettli/31242c61f00e365bbf5ed08d09cdc006#file-ssh-tunnel-service | |
[Unit] | |
Description=Tunnel for %i | |
After=network.target | |
[Service] | |
User=tunnel | |
ExecStart=/usr/bin/ssh -o "ExitOnForwardFailure yes" -o "ServerAliveInterval 60" -N tunnel@%i |
This file contains 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
// **************** TimerShot for Timer 1A ********************* | |
// More info about this program is here... | |
// http://wp.josh.com/2015/03/05/the-perfect-pulse-some-tricks-for-generating-precise-one-shots-on-avr8/ | |
// Demo of a technique to generate various precise one shot pulses using | |
// timer 1 module on an AVR. This demo code version is writen for an Arduino Uno or Mega2560 for the | |
// the Timer1 moudule, but this technique should would on other 16-bit AVR timers on Mega2560. | |
// Original code by Josh Levine, hack by N2GX 8/30/2016. | |
// Long-pulse working solution for TIMER 1A One-Shot, edited from Josh's Timer2 code and a partial Timer3 solution |
This file contains 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
@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) |
This file contains 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
// ATtiny85 | |
// Hardware PWM, pins 0, 1 & 4 | |
int main() | |
{ | |
sei(); | |
DDRB = _BV(PORTB0); // OC0A | |
DDRB |= _BV(PORTB1); // OC0B | |
DDRB |= _BV(PORTB4); // OC1B |