Skip to content

Instantly share code, notes, and snippets.

View dekarrin's full-sized avatar
🐟
i like fish - weekend offline time

Rebecca Nelson dekarrin

🐟
i like fish - weekend offline time
View GitHub Profile
@dekarrin
dekarrin / setup-terraria.sh
Last active May 29, 2021 01:20
garbage script cobbled together to setup a terraria server and provide systemd unit file
#!/bin/bash
# note: RUNNING THIS SCRIPT COULD DESTROY EXTANT SERVERS THAT ARE SAME VERSION
# stop script on first error
set -e
# sudo check
if [ "$(id -u)" -ne 0 ]
then
@dekarrin
dekarrin / enter-writing.sh
Created February 26, 2021 20:51
InfluxDB Writer Scripts
#!/bin/bash
set -e
is_int() {
local re='^[0-9]+$'
[[ "$1" =~ $re ]] || return 1
return 0
}
@dekarrin
dekarrin / extractrpa.py
Created January 27, 2021 00:09
renpy RPA v3 extractor
# opens RPA files created with renpy
# extracts contents of RPA files
# lists contents of RPA files
# https://github.com/renpy/renpy/blob/9c71146079cdc8ea20327ed7ce791325b287f54a/launcher/game/archiver.rpy
# "These files are really easy to reverse-engineer, but are probably better than nothing."
# well i mean. the source code for compressing is literally online under MIT license. so yes. it's trivial. -deka
# RPA EXTRACTOR
# RPA files are archives used by RenPy. They are often used to distribute assets for the game.
# parse args
PARAMS=""
while (( "$#" )); do
case "$1" in
-t|--telegraf-conf-dir)
telegraf_conf_install_dir="$2"
shift 2
;;
-h|--help)
echo "usage: $0 [<flags>]"
@dekarrin
dekarrin / chars.cql
Last active July 27, 2021 16:37
cassandra test data
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('olive','troll','Nepeta Leijon','Homestuck');
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('olive','troll','Boldir Lamati','Friendsim');
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('olive','troll','Charun Krojib','Friendsim');
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('lime','troll','Ellsee Raines','Vast Error');
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('olive','troll','Konyyl Okimaw','Friendsim');
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('olive','troll','Meulin Leijon','Homestuck');
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('olive','troll','Polypa Goezee','Friendsim');
INSERT INTO homestuck.chars (bloodcolor, species, name, introwork) VALUES ('olive','troll','The Disciple','Homestuck');
INSERT INTO homestuck.chars (bloodcolor, species, name, i
@dekarrin
dekarrin / requsd.json
Created December 15, 2017 23:32
Pulls price of request network and displays in usd
{
"BTTPresetName" : "Request Network (USD)",
"BTTPresetUUID" : "9C587C80-0B66-4F8C-9C4C-F016F389BB07",
"BTTPresetContent" : [
{
"BTTAppBundleIdentifier" : "BT.G",
"BTTAppName" : "Global",
"BTTAppSpecificSettings" : {
},
@dekarrin
dekarrin / req.json
Last active December 15, 2017 23:31
Preset for BetterTouchTool to show Request Network price in Satoshi (pull data from binance)
{
"BTTPresetName" : "Request Network",
"BTTPresetUUID" : "9C587C80-0B66-4F8C-9C4C-F016F389BB07",
"BTTPresetContent" : [
{
"BTTAppBundleIdentifier" : "BT.G",
"BTTAppName" : "Global",
"BTTAppSpecificSettings" : {
},

Keybase proof

I hereby claim:

  • I am dekarrin on github.
  • I am dekarrin (https://keybase.io/dekarrin) on keybase.
  • I have a public key ASAsvpuIhn95IaL9x13uFF-W__L53eYSFQPUs7RCev_rvAo

To claim this, I am signing this object:

@dekarrin
dekarrin / eclipse.ini
Created April 11, 2017 13:58
It's Eclipse's .ini from my work computer, which is set up to use the old interface (before it got crappy). Works at least on Mars.2
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417
--launcher.GTK_version
2
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
@dekarrin
dekarrin / prompt_functs.sh
Last active July 27, 2020 20:37
Various prompting tasks in bash
# This file is not intended to be executed.
# Source this script from other scripts.
# replacement for realpath on posix systems that lack it
findrealpath() {
[ "$#" = 1 ] || { echo "usage: findpath path" >&2 ; return 1 ; }
[ ! "$1" = "/" ] || { echo "/" ; return 0 ; }
canonpath="$(cd "$(dirname "$1")" && pwd -P)" || return 1
separator="/"
[ ! "$canonpath" = "/" ] || separator=