Skip to content

Instantly share code, notes, and snippets.

View foosel's full-sized avatar
🐙
Working full-time on OctoPrint!

Gina Häußge foosel

🐙
Working full-time on OctoPrint!
View GitHub Profile
@Mearman
Mearman / Steam Redeem.md
Last active February 15, 2023 09:51
Steam Redeem Bookmarklet

Steam Key Redemption Bookmarklets

These bookmarklets allow you to redeem Steam keys directly from your browser. They are available in three versions, each using a different method for inputting the key:

  • Prompt: Prompts the user to enter the key manually.
  • Selection: Attempts to automatically fill in the key using the current text selection.
  • Clipboard: Attempts to automatically fill in the key using the contents of the clipboard.

Usage

@neurocis
neurocis / 1_AllInOne-TailScale.md
Last active March 14, 2024 06:27 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Singular script

Which combines Install, setup & initialization and persists after reboot when stored as /config/scripts/post-config.d/tailscale.sh. Run sudo sh /config/scripts/post-config.d/tailscale.sh and follow the web link to initialize once script created.

#!/bin/sh
# /config/scripts/post-config.d/tailscale.sh

# check latest version against what's installed
@pamolloy
pamolloy / README.md
Last active January 23, 2024 07:28
Ubiquiti USG configuration for Wireguard

Download the latest ugw3 package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb.

cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
@pedrofracassi
pedrofracassi / quicksteamactivator.user.js
Last active November 25, 2023 17:06
Steam Key Quick Activator
// ==UserScript==
// @name Steam Key Quick Activator
// @namespace http://pedrofracassi.me/
// @version 1.2
// @description Activates Steam Keys Quickly!
// @author Pedro Fracassi (http://pedrofracassi.me)
// @match https://store.steampowered.com/account/registerkey?key=*
// @grant none
// @run-at document-end
// ==/UserScript==
import twitter
api = twitter.Api(consumer_key=consumer_key,
consumer_secret=consumer_secret,
access_token_key=access_token,
access_token_secret=access_secret)
u1 = api.GetFollowerIDs(screen_name='foosel')
u2=api.GetFollowerIDs(screen_name='OctoPrint3D')
print("@foosel follower count : {0}".format(len(u1)))
@aarroyoc
aarroyoc / apt-ftparchive.conf
Last active March 5, 2024 10:45
Debian/Ubuntu repo using apt-ftparchive
Dir {
ArchiveDir "./debian";
CacheDir "./cache";
};
Default {
Packages::Compress ". gzip bzip2";
Sources::Compress ". gzip bzip2";
Contents::Compress ". gzip bzip2";
};
TreeDefault {