Skip to content

Instantly share code, notes, and snippets.

View FERR1TE's full-sized avatar

FERR1TE

View GitHub Profile
@FERR1TE
FERR1TE / particle-thoughtexperiment.ipynb
Last active September 6, 2022 08:59
Particle thought experiment (based on frequency of player encounters in the game Rust)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh
# Resizes images with a bounding box that matches Telegram's sticker requirement without making them stretched or adding bars.
# Argument 1: input file (PNG)
# Argument 2: output file (PNG)
ffmpeg -i $1 -vf 'scale=if(gte(a\,512/512)\,min(512\,iw)\,-2):if(gte(a\,512/512)\,-2\,min(512\,ih))' $2
@FERR1TE
FERR1TE / add-furaffinity-buttons.js
Last active April 24, 2023 04:08
Custom buttons for FA's nav bar for frequent searches
// ==UserScript==
// @name Add FA Buttons
// @namespace http://tampermonkey.net/
// @version 1.4
// @description Puts custom buttons on FA's nav bar for frequent searches
// @author HazmatDrone
// @match https://www.furaffinity.net/*
// @run-at document-end
// @icon https://www.furaffinity.net/favicon.ico
// ==/UserScript==
@FERR1TE
FERR1TE / pipis
Last active December 22, 2021 21:24
Print some pipis in your terminal.
#!/bin/bash
# USAGE:
# $ pipis
# Print a single pipis
# $ pipis n
# Print n pipis
if [[ -z $1 ]];
then number=1
else number=$1
@FERR1TE
FERR1TE / gameserver@.service
Last active September 6, 2022 09:01 — forked from Krutonium/minecraft@.service
Minecraft service File
[Unit]
Description=%i Server
After=network.target
[Service]
WorkingDirectory=/opt/gameserver/instances/%i
User=gameserver
Group=gameserver

Keybase proof

I hereby claim:

  • I am HazmatDrone on github.
  • I am hazmatdrone (https://keybase.io/hazmatdrone) on keybase.
  • I have a public key whose fingerprint is E2C5 C4A5 4B8A F750 B625 772B BB2A A78D 85CB 742D

To claim this, I am signing this object:

@FERR1TE
FERR1TE / fanctl.ino
Created December 6, 2020 14:40
Dumb fan controller using Arduino
const int fanctl_pin = 1;
const int thermo_pin = 2;
void setup() {
// put your setup code here, to run once:
pinMode(fanctl_pin, OUTPUT);
pinMode(thermo_pin, INPUT);
}
@FERR1TE
FERR1TE / servo-controller.ino
Created December 6, 2020 14:40
TBH I completely forgot what this is supposed to do but
// Pin definitions (Temporary exmaple values)
const int Dout_servo_pin = 0;
const int Ain_controller_pin = 1;
const int Dout_USB_TX = 2;
const int Din_USB_RX = 3;
const int Dout_LED_pin = 4;
// Constants
const int agl_max = 0; //Deg
const int agl_min = 0; //Deg