Skip to content

Instantly share code, notes, and snippets.

View theoparis's full-sized avatar
🔥
Compiling LLVM with -fskibidi -Ohio -march=rizz

Theo Paris theoparis

🔥
Compiling LLVM with -fskibidi -Ohio -march=rizz
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 / nginx.conf
Last active August 12, 2020 03:49 — 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 August 15, 2020 22:10
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 / .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 / .gitlab-ci.yml
Last active October 2, 2020 04:33
gitlab ci - deploy to remote docker server and run image
image: docker:stable
stages:
- deploy
docker push latest:
stage: deploy
only:
- pushes
script:
@theoparis
theoparis / map.py
Created October 8, 2020 03:11
python map c;lass (utility)
class Map(dict):
"""
Example:
m = Map({'first_name': 'Eduardo'}, last_name='Pool', age=24, sports=['Soccer'])
"""
def __init__(self, *args, **kwargs):
super(Map, self).__init__(*args, **kwargs)
self.parse(args)