Skip to content

Instantly share code, notes, and snippets.

View Erisa's full-sized avatar
💕

Erisa A Erisa

💕
View GitHub Profile
@Erisa
Erisa / repeat.ts
Last active January 7, 2023 17:48
Repeat for clearing out Pages deployments (https://repeat.dev)
const config = [
{
project: "erisa",
days: 180
},
{
project: "super-secret-sauce",
days: 60
}
]
@Erisa
Erisa / fly.toml
Created October 10, 2022 22:58
thelounge on fly
# fly.toml file generated for lounge on 2022-10-10T20:05:47+01:00
app = "lounge"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[deploy]
strategy = "rolling"
@Erisa
Erisa / transfer_on_gameover.rb
Last active August 25, 2022 09:15
Seriel ~ Transfer Player on Gameover
if true #Set to false to disable script.
# Copyright Erisa A. (erisa.uk) 2018
###############################################################################
# Seriel ~ Transfer Player on Gameover ~ <3 #
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
# The code here can be reused for any purpose, with credit given. #
# This includes both Commercial and Non-Commercial use. #
# However, contact is appreciated before Commercial use. #
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
# Contact: | erisa@erisa.uk #
@Erisa
Erisa / move_event_id.rb
Last active April 12, 2022 18:31
[RMVXA] Transfer Player on Gameover
if true #Set to false to disable script.
# Copyright Erisa A (Seriel) 2018
###############################################################################
# Seriel ~ Transfer Player on Gameover ~ <3 #
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
# The code here can be reused for any purpose, with credit given. #
# This includes both Commercial and Non-Commercial use. #
# However, contact is appreciated before Commercial use. #
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
# Contact email | seriel@erisa.moe #
@Erisa
Erisa / ssh.bat
Last active October 26, 2021 20:56
WSL wrapper that runs commands in WSL context with paths converted. For PERSONAL use.
@echo off
REM change this files filename to the name of the program you want to launch.
REM for example if its called 'ssh.bat' it will run ssh in wsl when launched.
REM w.exe is w.js but built with 'npm i -g pkg' and 'pkg w.js -t host'
REM you could also just use node normally but i'm weird.
\path\w.exe %~n0 %*
@Erisa
Erisa / kr-termux.sh
Last active June 26, 2021 02:05
Install krypton's kr client on Termux
#!/bin/sh
echo "--upgrading packages" &&
pkg update -y &&
echo "-- installing dependancies: golang git debianutils make" &&
pkg install golang git debianutils make -y &&
echo "-- installing fake sudo binary (no root needed, just to appease kr's build script)" &&
echo '#!/bin/sh
@Erisa
Erisa / updown-proxy.js
Created April 25, 2021 16:39
updown.io status page proxy for cf workers
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
var whitelist = [
"/rik1",
// etc
]
@Erisa
Erisa / seafile_trash.rb
Last active March 22, 2021 01:54
Restore everything from trash in seafile
# frozen_string_literal: true
require 'json'
require 'net/http'
libs = [
"aa3ffa6f-61d3-4cda-bf7d-89a856068fc3",
"563aa837-4865-4e4e-b0aa-6333c2634c64",
"385275da-c656-4f2f-918a-d4190828ae20",
'c50d9d60-5478-4c27-89d5-b3c6d1708438',
@Erisa
Erisa / tunnel.cr
Last active December 24, 2020 02:08
A small wrapper around Cloudflared that creates a tunnel based on the given local and remote(optional) endpoints.
###########################################################################
# A small wrapper around Cloudflared that creates #
# a tunnel based on the given local and remote(optional) endpoints. #
# License: https://unlicense.org/ #
###########################################################################
## Config
# Under Windows+WSL you'll want to use .exe here.
# Since that's what I use personally it's the default.
@Erisa
Erisa / kr-alpine.sh
Created September 25, 2020 19:34
Install krypton's kr client on Alpine Linux
#!/bin/sh
if [ $(id -u) -ne 0 ]
then echo "-- This script only works when run as root. --"
exit
fi
echo "-- installing dependancies: go make sudo git"
apk add go make sudo git