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 / en.txt
Last active Oct 14, 2022
All English strings as of Homebrew App Store 2.3. If you'd like to contribute a translation for the upcoming localization support, please edit this file and make sure the 115 lines in the new language's file match up with the number of lines here. Then post the file to gist and link to it in a comment below-- and thank you!
View en.txt
Go Back
Leave Feedback
Homebrew App Store
by fortheusers.org
Licensed under the GPLv3 license. This app is free and open source because the users (like you!) deserve it.
Let's support homebrew and the right to control what software we run on our own devices!
Repo Maintenance and Development
These are the primary people responsible for actively maintaining and developing the Homebrew App Store. If there's a problem, these are the ones to get in touch with!
Library Development and Support
Without the contributions to open-source libraries and projects by these people, much of the functionality within this program wouldn't be possible.
@vgmoose
vgmoose / a_readme.md
Last active Sep 29, 2022
Yet another How to Create a Windows 11 Install USB from Ubuntu Linux or Mac
View a_readme.md

Creating a Windows 11 Install USB in 2022

I have been installing Windows for a long time. Does it get easier? I want to say it gets easier, but it seems like there's always some new wrinkle! These instructions are as much a note to my future self as they may be useful to anyone else.

For me, I was not able to get any exfat-based installs, or even any of the GUI helpers to make this process any more straightforward. Maybe on your target Windows / host OS those helpers will work, but the below process (as of current year) is consistent, and not overly complicated.

Overview:

  1. Downloading an official ISO image from MS:
  2. Formatting the drive (at least 8GB) as GPT, and one FAT-format partition (aka MS-DOS)
@vgmoose
vgmoose / parse_id3.cpp
Last active Sep 7, 2022
Parsing id3 title, album, artist info using mpg123
View parse_id3.cpp
// returns a size-3 vector of: (title, artist, album)
std::vector<std::string> CST_GetMusicInfo(Mix_Music* music) {
std::vector<std::string> info;
// these three methods require a recent (late 2019) sdl_mixer verison
// info.push_back(Mix_GetMusicTitle(music));
// info.push_back(Mix_GetMusicArtistTag(music));
// info.push_back(Mix_GetMusicAlbumTag(music));
// adapted from https://gist.github.com/deepakjois/988032/640b7a41b0e62a394515697c142777ad3a1b8905
auto m = mpg123_new(NULL, NULL);
@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": [
{