Skip to content

Instantly share code, notes, and snippets.

@xSke
xSke / acnh_info.py
Created April 10, 2020 20:50
Script for obtaining AC:NH island/profile info by Nintendo account login
import base64
import datetime
import hashlib
import json
import random
import re
import requests
import secrets
import string
import sys
@xSke
xSke / generate-links.py
Created August 3, 2019 09:53
Monstercat Gold music dumper (aria2)
@xSke
xSke / gist:0d5c7f753029acbb19ea6cfb63dca6d1
Created August 2, 2019 20:34
Proxmox hot-plug USB script, requires `python3-pyudev`
#!/usr/bin/python3
import json
import pyudev
import socket
vm_id = 100
def send_monitor_command(command, **kwargs):
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock:
sock.connect("/var/run/qemu-server/{}.qmp".format(vm_id))
@xSke
xSke / SpringingContext1D.java
Created November 13, 2016 22:50
Numerical Springing in Java/libgdx
import com.badlogic.gdx.math.MathUtils;
public class SpringingContext1D {
public float value;
public float target;
public float velocity;
public float damping;
public float frequency;
@xSke
xSke / QuadTree.java
Created August 6, 2016 02:45
A fairly fast Java quad tree.
package pw.ske.quadtree;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.utils.Array;
import java.util.Iterator;
/**
* A basic quad tree.
* <p>