Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam carneeki

View GitHub Profile
@carneeki
carneeki / README.md
Last active Dec 29, 2021
deluge-gtk-graceful-kill service
View README.md

Files found from an AUR source that appears to be dead. This is my attempt to keep it going if the original author has abandoned it.

Two files to be installed:

  • /usr/lib/systemd/deluge-gtk-graceful-kill.service
  • /usr/bin/delugepkill.sh
@carneeki
carneeki / ufw-rejectatron.fish
Created Aug 29, 2021
Fish shell function to reject a host using UFW and conntrack to purge state table entries
View ufw-rejectatron.fish
function reject
touch ~/rejected.txt
for host in $argv
if grep $host ~/rejected.txt
echo "$host already rejected!"
sudo conntrack -D --src $host
sudo conntrack -D --dst $host
continue
end
echo "rejecting $host"
@carneeki
carneeki / sample.md
Last active Apr 6, 2021
Sample markdown
View sample.md

Sample Markdown

This is a piece of sample markdown

Heading For A table
1 thing here

Sample codeblock in java:

public void chooch() {
@carneeki
carneeki / Russian-Pronouns.md
Created Apr 5, 2021
Russian Pronouns Table
View Russian-Pronouns.md
Pronoun Male Female Neutral Plural
My Мой Моя Мое Мои
Your (singular/informal) Твой Твоя Твое Твои
Your (plural/formal) Ваш Ваша Ваше Ваши
Our Наш Наша Наше Наши
His Его Его Его Его
Her Ее Ее Ее Ее
Their Их Их Их Их
Its Его Его Его Его
@carneeki
carneeki / David Bike Controller.ino
Created Jan 18, 2020
David Bike Controller.ino
View David Bike Controller.ino
/* Send an RC-style PWM signal to motor controller
* given analog input. 2 inputs to permit joystick
*
* Designed for use on ATTiny85 w/ Arduino
*/
#include <Servo.h>
#define PIN_PWM 0 // motor controller pin
#define PIN_IN A1 // analog input pin
@carneeki
carneeki / vmware-relicenser.service
Created Nov 29, 2019
VMWare Workstation Relicenser
View vmware-relicenser.service
# Install .service file (executed by timer)
# cp vmware-relicenser.service /etc/systemd/system/
[Unit]
Description=VMWare-Relicenser
[Service]
Type=oneshot
ExecStart=/usr/bin/rm /etc/vmware/license-ws-150-e1-201804
View Pi FUCAN Setup.md

Get browser, java, maven, and a few other bits

sudo apt install firefox-esr openjdk-11-jdk-headless mvn build-essentials zsh

install opensnap

mkdir ~/src
cd ~/src
git clone https://github.com/lawl/opensnap.git
cd opensnap
make
@carneeki
carneeki / Boney.ino
Created Oct 28, 2019
Arduino sketch to move a servo given some kind of trigger
View Boney.ino
/*
* Boney.ino
* Arduino sketch to move a servo given some kind of trigger
* (falling edge)
*
* Author: Adam Carmichael <carneeki@carneeki.net>
* License: Unlicensed.
* Warranties: None. This hasn't been tested yet. Don't poke your eye
* out.
*/
View Pulsinator.ino
/*
* Arduino Pulsinator for Andre by Adam
* Direction pin is controlled directly by a switch, no code needed
*/
#define A_IN A0 // 10K linear pot wiper
#define P_OUT 5 // pulse output pin (digital 5)
bool pulseState = false; // pulse pin will be one of high or low
unsigned long nextUpdate = 0; // schedule variable to track when tasks
View keybase.md

Keybase proof

I hereby claim:

  • I am carneeki on github.
  • I am carneeki (https://keybase.io/carneeki) on keybase.
  • I have a public key ASDGVc4Km2ihWRPJjbZzfPCouwDrRQ58UCgYVcL6KF3Z9Ao

To claim this, I am signing this object: