Skip to content

Instantly share code, notes, and snippets.

View wagyourtail's full-sized avatar

William Gray wagyourtail

View GitHub Profile
package xyz.wagyourtail.jvmdg.j9.intl;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.math.BigInteger;
import java.util.*;
public class Json5Slurper {
@wagyourtail
wagyourtail / wallpaper.py
Created March 8, 2024 03:24
random wallpaper engine item from current playlist on linux
#!/usr/bin/python
import json
import os
import random
import sys
import vdf
import subprocess
from pathlib import Path
@wagyourtail
wagyourtail / windows-java.bat
Created January 6, 2024 08:15
archlinux-java but for windows
@echo off
rem run python script and capture output/error code
python windows-java.py %* > "%TEMP%\windows-java-output.txt"
if %ERRORLEVEL% == 1 (
goto Error
)
<"%TEMP%\windows-java-output.txt" (
@wagyourtail
wagyourtail / bypass-disable-devtool.js
Last active November 13, 2024 00:04
bypass disable-devtool
// ==UserScript==
// @name Bypass Detect-Devtool
// @namespace http://tampermonkey.net/
// @version 0.1
// @description bypass https://github.com/theajack/disable-devtool
// @author Wagyourtail
// @match {site}
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io
// @grant none
// ==/UserScript==
@wagyourtail
wagyourtail / companies.csv
Created January 1, 2023 13:18
CES Scraper
We can't make this file beautiful and searchable because it's too large.
booths,categories,companyLink,companyName,country,description,email,isFeatured,state
62201,,https://ces23.mapyourshow.com/7_0/exhibitor/exhibitor-details.cfm?ExhID=0014V00003Q1WcyQAF,1/AK inc.,Japan,,,False,Other
54239,Digital-Health Smart-Home-and-Appliances Wellness-Technologies,https://ces23.mapyourshow.com/7_0/exhibitor/exhibitor-details.cfm?ExhID=0013A00001TOUHQQA5,"10minds Co., Ltd.",South Korea,,,False,Other
10931,IoT/Sensors Smart-Cities-and-Resilience,https://ces23.mapyourshow.com/7_0/exhibitor/exhibitor-details.cfm?ExhID=0013A00001a1LD1QAM,1NCE Inc.,United States,,,False,FL
60253,Artificial-Intelligence Entertainment-and-Content Startups Streaming Video-Technologies,https://ces23.mapyourshow.com/7_0/exhibitor/exhibitor-details.cfm?ExhID=0014V00003Q4AOBQA3,"1PCITY Studio, Inc",United States,"1PCITY STUDIOS, INC is a film production and technology company focusing primarily on original content development, production and distribution using proprietary Artificial Intelligence Storytelling Technology fo
@wagyourtail
wagyourtail / MCServerScraper.py
Last active June 29, 2023 20:22
MCServerScraper.py
# MIT License
#
# Copyright (c) 2022 Wagyourtail
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@wagyourtail
wagyourtail / fanBoostToggle.c
Last active January 13, 2022 15:29
toggle fan boost for acer predator helios 300 2019 edition, tested on PH315-52-78VL
/**
* @author Wagyourtail
* @version 1.1
* @date 2022-01-13
* @license MIT
*
* Toggles the fan boost bit
*/
#include <fcntl.h>
#include <stdio.h>
@wagyourtail
wagyourtail / languages.md
Last active June 29, 2023 20:20
Scripting Language Cheat Sheet

Variables

JS
// higher scoping, not killed by exit from for/if and some other flow control stuff
var x = 1;
import copy
class reforge:
def __init__(self, name, cd=None, str=None):
if str is None:
str = [0, 0, 0, 0, 0, 0]
if cd is None:
cd = [0, 0, 0, 0, 0, 0]
self.name = name
@wagyourtail
wagyourtail / GraalTest.java
Created February 24, 2021 22:25
Graal concurrency test
package xyz.wagyourtail;
import org.graalvm.polyglot.Context;
import java.util.LinkedList;
import java.util.List;
import java.util.function.Function;
public class GraalTest {
static List<Thread> threads = new LinkedList<>();