Skip to content

Instantly share code, notes, and snippets.

@Talon876
Talon876 / rs_world_ping.py
Last active August 23, 2023 11:57
OSRS World Ping Checker
#!/usr/bin/env python3
import os
import subprocess as sp
import multiprocessing as mp
from collections import OrderedDict
try:
import tabulate
except:
tabulate = None
@Talon876
Talon876 / Ciphers.java
Created January 23, 2017 19:53
Prints out all supported ciphers
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;
import javax.net.ssl.SSLServerSocketFactory;
//https://confluence.atlassian.com/stashkb/files/679609085/679772359/1/1414093373406/Ciphers.java
public class Ciphers
{
public static void main(String[] args)
throws Exception
@Talon876
Talon876 / dupefixer.js
Last active January 2, 2021 22:15
Mint Duplicate Transaction Fixer
/*
* This script is meant to be copy/pasted in to the Chrome javascript console while logged in to Mint.
* It can be used to find all of the transactions that you have checked "This is a duplicate" for.
* Once all of these transactions are found, you can then have the script add a 'Duplicate' tag to
* each of the transactions.
*
* This will then allow you to filter out duplicate transactions after exporting them to CSV as tags are included.
*
* You may need to replace the value of the duplicateTagId variable after this comment.
* To find the Duplicate tag id, edit a transaction and view the list of tags.
#!/usr/bin/env python
from flask import Flask, request, redirect, render_template, abort
import json
import random
RL_STATS = 'https://rocketleaguestats.com/profile/steam/{}'
RL_PROFILE = 'https://signature.rocketleaguestats.com/normal/steam/{}.png'
class Mapper:
def __init__(self):
@Talon876
Talon876 / dashy.py
Last active October 5, 2016 03:35
A simple script that monitors DHCP requests from specific MAC addresses and then performs an action. Used to add functionality to Amazon Dash buttons.
#!/usr/bin/env python
from scapy.all import *
import datetime
import door
import logging
logging.getLogger('scapy.runtime').setLevel(logging.ERROR)
# Enter your amazon dash button MACs here
macs = {
'xx:xx:xx:xx:xx:xx': 'some label'
@Talon876
Talon876 / persist-chart-settings-draft.js
Last active July 1, 2016 05:36
A rough draft implementation of persisting the zoom level and series visibility of a chart from https://rocketleaguestats.com
function createChartStatsGained(e, a) {
$.get("/api/profile/stats-gained/" + a, function(a) {
e.highcharts({
chart: {
zoomType: "x",
events: {
load: function() {
var zoomLevel = localStorage.getItem("zoom") || 0;
this.rangeSelector.clickButton(zoomLevel);
addCredits(this);
package time;
import java.util.HashMap;
import java.util.Map;
public class TimeConverter {
private HashMap<String, Integer> timeMappings = new HashMap<>();
public TimeConverter() {
@Talon876
Talon876 / MWO 3 UAC5 Macro.ahk
Created August 13, 2013 05:07
A macro for firing three Ultra AC/5's in MWO.
#InstallMouseHook ;This line is needed for the script to get input from the mouse
#InstallKeyBDHook ;This line is needed for the script to get keyboard input
;These next 2 lines make it so the script is only active within the mechlab and match window
#IfWinActive, ahk_class CryENGINE
#IfWinActive MechWarrior Online
F12::Suspend ;This makes the "F12" key turn the script on and off as needed.
IfWinActive MechWarrior Online ;The actual "macro" is below and only works when our MWO window is active
@Talon876
Talon876 / App.java
Created June 14, 2012 07:11
Extract /natives from root of jar to ~/.<appname>/natives/<version>
package org.sample.package;
import java.io.IOException;
import java.util.Properties;
import org.apache.log4j.Logger; //remove if you don't have the logger
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.SlickException;
public class App {