Skip to content

Instantly share code, notes, and snippets.

View eyedeekay's full-sized avatar

idk eyedeekay

  • http://nhmfjkbvpabqhrop7pqyi2pors4iaydlmsyvyy6npgymgobllyaq.b32.i2p/
View GitHub Profile
#! /usr/bin/env bash
# This is a gitlab anti-bot script for selfhosted instances.
# It was used on i2pgit.org after a bot attack.
# You **WILL** need to modify it for other instances.
# You **WILL** need to set up an API key with very dangerous perms to use it.
# It **WILL** break your shit in terrible, unfixable ways if you aren't very very careful.
# You **SHOULD NEVER RUN THIS SCRIPT WITHOUT READING IT TWICE FIRST**
# FOR REAL this is like a BIG RED BUTTON UNDER A BULLETPROOF GLASS CASE WITH TWO KEYS.
# IN CASE OF BOT ARMY consider NOT using this thing but maybe if you really have to, then ask for help, then use it.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@eyedeekay
eyedeekay / shellservice-docker.sh
Last active January 1, 2022 06:12
ShellService Docker Wrapper Script
#! /usr/bin/env sh
# this script acts as a sort of proxy to a ShellService for starting
# and stopping a docker container from the I2P UI. The loop will keep
# going as long as docker ps returns true, retaining the same PID.
# Check every 5 seconds
shellservice_wd=$(pwd)
shellservice_name=$(basename "$shellservice_wd")
@eyedeekay
eyedeekay / newsxml-script.sh
Last active November 23, 2021 01:03
Script to assist with updating news server while I am away from my desk
#! /usr/bin/env sh
#
# This script is peculiar to my newsxml setup.
# When I build my news, I build on my laptop first, then transfer the files over to the server using scp.
# This way, the keys which are used to sign the news never leave the device where I do the signing.
# They don't live on the server.
# The SSH tunel server on my news server is down right now and I can't access it, so I need to copy the files another way.
# I've asked someone with physical access to the server to run this script which will set up the newsfeed without the need me to use SSH.
#
# Copy-and-Paste the following line:
@eyedeekay
eyedeekay / forum.idk.i2p.txt
Created July 8, 2020 02:16
b32 of my forum in a text file, android test
bg7kaiqjcqqeuuwb5nyo3ptcp5dgza7mihtizwqtnz2itombg6da.b32.i2p
@eyedeekay
eyedeekay / release-deb
Last active April 19, 2020 06:08
Script to generate release builds of some of my Go packages
#! /usr/bin/env sh
PKG=$(basename $(pwd))
VERSION=$(head -n 1 debian/changelog | sed "s|$PKG (||g" | sed 's|).*||')
DEBIANS="stable testing unstable experimental wheezy jessie stretch buster bullseye bookworm sid"
debrepo="--mirror http://us.archive.ubuntu.com/ubuntu"

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@eyedeekay
eyedeekay / build.log
Last active May 7, 2019 01:06
build-err
> Configure project :android
signing.properties found but some entries are missing
> Task :core:compileJava UP-TO-DATE
> Task :core:processResources UP-TO-DATE
> Task :core:classes UP-TO-DATE
> Task :core:jar UP-TO-DATE
> Task :android:certificatesZip UP-TO-DATE
> Task :android:copyI2PResources
@eyedeekay
eyedeekay / SSL-certs-OSX.md
Created August 23, 2018 00:13 — forked from croxton/SSL-certs-OSX.md
Generate ssl certificates with Subject Alt Names

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

@eyedeekay
eyedeekay / mp3search
Created October 18, 2017 22:41
Fix up metadata for mp3s I downloaded from an open directory
#! /usr/bin/env bash
set -e
parent="$1"
url="$parent"
lynx_links(){
echo "$url" >&2
lynx -listonly -nonumbers -dump "$url" | sed 's| |_|g'