Skip to content

Instantly share code, notes, and snippets.

View theoparis's full-sized avatar

Theo Paris theoparis

View GitHub Profile
@theoparis
theoparis / dev_online_resources.md
Last active May 6, 2019 14:35 — forked from devils-ey3/webdev_online_resources.md
Online Resources For Developers (No Downloading)
@theoparis
theoparis / AnvilGUI.java
Last active August 14, 2019 23:29
Spigot Minecraft Anvil GUI Helper Classes (Currently only works in Spigot/Minecraft 1.14.4)
package me.creepinson.plugin.util.gui;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
@theoparis
theoparis / Keybinds.java
Created September 10, 2019 01:02
custom keybind help
package me.creepinson.mod.client;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.InputEvent;
import org.lwjgl.input.Keyboard;
@theoparis
theoparis / .gitignore
Created May 10, 2020 20:16
Git ignore for minecraft forge mods
/*
!/src/
!.gitignore
!gradlew*
!/gradle/
!LICENSE
!/LICENSE.txt
!/README.md
!build.gradle
!.travis.yml
@theoparis
theoparis / .sharenix.json
Last active September 7, 2020 04:06
sharenix/sharex custom uploader
{
"DefaultFileUploader": "example.com",
"DefaultImageUploader": "example.com",
"DefaultUrlShortener": "waa.ai",
"Services": [
{
"Name": "example.com",
"DestinationType": "ImageUploader, FileUploader",
"RequestType": "GET",
@theoparis
theoparis / nginx.conf
Last active August 19, 2024 07:51 — forked from nishantmodak/nginx.conf.default
Nginx Conf Template
#user nobody;
#Defines which Linux system user will own and run the Nginx server
worker_processes 1;
events {
worker_connections 1024;
# worker_processes and worker_connections allows you to calculate maxclients value:
# max_clients = worker_processes * worker_connections
@theoparis
theoparis / README.md
Last active September 28, 2024 21:07
install script for tsb

You will need docker-compose and git for this to work. Now run the following command to install it for the first time:

curl https://gist.github.com/creepinson/7b02be76fc570eee992e2cef457819a4/raw/4ffa2be9c1b7cfcdba1c3894174a6660931a9b33/install.sh | sh

If it's already installed, use the following commands:

cd tsb
docker-compose up -d
@theoparis
theoparis / backup.sh
Last active August 20, 2020 19:39
backup scripts
#!/bin/bash
####################################
#
# Backup to NFS mount script.
#
####################################
# What to backup.
backup_files="/srv/homelab/data /etc/nginx/sites-enabled"
@theoparis
theoparis / README.md
Last active February 22, 2022 15:20
install magic-wormhole on alpine linux

Install Magic Wormhole On Alpine Linux

Installation

First, run apk add --no-cache curl to install curl. Then run:

curl -L https://gist.githubusercontent.com/creepinson/fcd2dc09f614bf11c2aef6d3843d3b76/raw/318b451c5c350b7e159983cea435966770667c75/install.sh | bash

To install magic-wormhole.

Just The Dependencies

@theoparis
theoparis / README.md
Last active November 28, 2021 04:10
install docker

Docker Quick Install Script

Run the following command to get started:

# use paru -S docker on arch linux
curl -fsSL https://get.docker.com | sh

curl -L https://gist.github.com/creepinson/2363097a783246de0635c737c1545de7/raw/3eadcae7a5a441f3e1141f3e5a0a81ea6418b3f3/docker.sh | sudo sh