Skip to content

Instantly share code, notes, and snippets.

@Bluefissure
Bluefissure / fix.py
Last active February 9, 2024 05:44
Fix broken palworld save caused by existing guild & too many capture logs
# author: Bluefissure
# License: MIT License
# Description: Fixes Palworld brokwn save files corrupted by someone existing the guild
# Based on the work of https://github.com/cheahjs/palworld-save-tools/releases/tag/v0.13.0
import argparse
import codecs
import os
import json
from lib.gvas import GvasFile
@MWHunter
MWHunter / gist:0d01482be355a73c6b76ff66901a4969
Created October 18, 2021 20:49
Quick java program to wrap a minecraft server and run it anywhere java can be compiled an ran, such as repl.it
import java.io.*;
import java.lang.ProcessBuilder.Redirect;
import java.net.URL;
import java.util.Scanner;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
public class Main {
public static void main(String[] args) throws IOException, InterruptedException {
Scanner userInput = new Scanner(System.in);
@davestevens
davestevens / README.md
Created February 19, 2021 17:01
Fetching all comments from a Reddit post

Reddit API

I could not find a simple example showing how to consume the Reddit API to get the comments for a post. This shows step by step how to authenticate and the endpoints to request.

Setup

You need to create an app to get an app id and secret. Go to https://www.reddit.com/prefs/apps and at the bottom of the page under "developed applications" create a new app or view a current one.

If you click "edit" to open the app view you will be able to see the app id and secret, these are required for authentication.

// ==UserScript==
// @id iitc-plugin-highlight-resonator-L8-count@RTL
// @name IITC plugin: Highlight portals based on number of 8's
// @category Highlighter
// @version 1.0.0.20200705.1450
// @namespace https://github.com/
// @updateURL https://github.com/
// @downloadURL https://github.com/
// @description Highlight portals based on number of level 8 resonators.
// @include https://www.ingress.com/intel*
@ryantheleach
ryantheleach / iitc-player-tracker-names-alt.user.js
Created September 24, 2019 13:55 — forked from wene1067/iitc-player-tracker-names-alt.user.js
IITC Player Tracker Names leaflet label version
// ==UserScript==
// @id iitc-player-tracker-names-alt
// @name IITC Player Tracker Names alt
// @category Tweaks
// @version 1.0
// @description This plugin displays player names for player tracker
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
// @match http://*.ingress.com/intel*
// ==UserScript==
// @id experimental-geodesic-precision
// @name IITC plugin: Experimental geodesic precision
// @category Custom
// @version 0.2.0-alpha
// @description Increase latitude geodesic precision (experimental way)
// Instead of geodesic distance formula uses some Pyphagorean-like approximation,
// where latitude has less contribution than longitude.
// @namespace https://github.com/IITC-CE/ingress-intel-total-conversion
// @include https://intel.ingress.com/*
// ==UserScript==
// @id latitude-geodesic-precision
// @name IITC plugin: Latitude geodesic precision
// @category Custom
// @version 0.2.0
// @description Increase latitude geodesic precision
// @namespace https://github.com/IITC-CE/ingress-intel-total-conversion
// @include https://intel.ingress.com/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @id iitc-player-tracker-names
// @name IITC Player Tracker Names
// @category Tweaks
// @version 1.0
// @description This plugin displays player names for player tracker
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
// @match http://*.ingress.com/intel*
@wene1067
wene1067 / iitc-player-tracker-names-alt.user.js
Last active September 24, 2019 13:55 — forked from neon-ninja/iitc-player-tracker-names-alt.user.js
IITC Player Tracker Names leaflet label version
// ==UserScript==
// @id iitc-player-tracker-names-alt
// @name IITC Player Tracker Names
// @category Tweaks
// @version 1.0
// @description This plugin displays player names for player tracker
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
// @match http://*.ingress.com/intel*
// ==UserScript==
// @id iitc-plugin-control-history
// @name IITC plugin: History control
// @description Allows user to navigate back through previous extents
// @category Controls
// @version 0.1.0
// @author jd
// @namespace https://gist.github.com/johnd0e
// @homepageURL https://gist.github.com/johnd0e/cabe8d9a59f0ede60f7f6c184fa131e3
// @supportURL https://gist.github.com/johnd0e/cabe8d9a59f0ede60f7f6c184fa131e3#new_comment_field