Skip to content

Instantly share code, notes, and snippets.

Avatar
🌱
making my way downtown, walking fast

vgmoose vgmoose

🌱
making my way downtown, walking fast
View GitHub Profile
@vgmoose
vgmoose / roku_vol.py
Created Jul 18, 2022
Python script to relatively adjust the volume of a roku TV, can be used in combination with http://devtools.web.roku.com/RokuRemote/
View roku_vol.py
import os, sys
# You can hardcode the IP here if it does not change much
ip = "192.168.1.111"
args = sys.argv
del args[0]
if len(args) == 0:
print("Needs one or two arguments, eg:")
@vgmoose
vgmoose / thread_runner.py
Created Jun 24, 2022
Multiprocessing pool equivalent for python threading (use like: ThreadRunner(5).parallelize(func, [data]), similar to Pool(5).map(func, [data])
View thread_runner.py
# for multiple cores stuffs
import threading
from collections import deque
NUM_CORES = 7
# NUM_CORES = 62
class ThreadRunner:
def __init__(self, num_cores=NUM_CORES):
self.num_cores = num_cores
View j*m.py
s1 = "@Jam this campaign is actually made by gad, is he aware that's going out to all tempers?".lower()
s2 = "@jm it has a new logo is probably why you didn't recognize it!".lower()
x, y = 0, 0
out = ""
while x < len(s1) and y < len(s2):
print(out)
if s1[x] == s2[y]:
out += s1[x]
else:
View browserinfo.md

You are correct. This is an older thread, but I'm going to respond to some common stuff people have said here. Before I get into it, I want to lead with this change.org petition, which already has almost 14,000 signatures from other people who also want a standalone browser app on the Switch.

It's a lot of development work that they won't maintain

Actually, the development work is already done. The Switch already internally includes a webkit-based browser, and it is updated frequently. It can be accessed and used to browse other sites using custom DNS settings or through the social media applets. One such DNS server is 45.55.142.122 (Switchbru DNS).

View shasum.txt
3522558f03aebc2681ebe0e070401bd0947eaf341caed0bf52b1a7e8cb57c41c6b06fcfca8ad6a0f369d7d05b51e30efa501c23b10e0da1e332cb9f561462f6b to.txt
View kanjivg_願_2.json
{
"kanji": "",
"deps": [
{
"kanji": "",
"deps": [
{
"kanji": "",
"deps": [
{
View kanjivg_願.json
{
"kanji": "",
"deps": [
{
"kanji": "",
"deps": [
{
"kanji": "",
"deps": [
{
@vgmoose
vgmoose / brute.py
Created Jan 21, 2022
Multithreaded luks bruteforcing based on newline separated word list
View brute.py
import os, time, random
from collections import deque
import threading
words = deque([])
f1 = open("words.txt", "r")
for word in reversed(f1.readlines()):
word = word.strip()
words.append(word)
@vgmoose
vgmoose / scores.txt
Last active Aug 10, 2022
Wordle Scores
View scores.txt
Wordle 417 6/6*
⬛🟨⬛⬛⬛
⬛⬛⬛🟩⬛
🟨⬛🟩🟩⬛
⬛🟩🟩🟩🟩
⬛🟩🟩🟩🟩
🟩🟩🟩🟩🟩
Wordle 395 5/6*
@vgmoose
vgmoose / discordminesweeper.py
Created Jul 30, 2021
Discord minesweeper grid generator with emojis and spoiler tags
View discordminesweeper.py
#!/bin/python3
import sys, random
emojis = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "regional_indicator_x"]
mine = -1
def gen_grid(size, mines):
grid = [[0]*size for _ in range(size)]
half = size // 2