Skip to content

Instantly share code, notes, and snippets.

View vgmoose's full-sized avatar
🌱
making my way downtown, walking fast

vgmoose vgmoose

🌱
making my way downtown, walking fast
View GitHub Profile
@shinyquagsire23
shinyquagsire23 / FPGBC_update.py
Last active January 30, 2024 01:48
FPGBC updater script for macOS (and maybe Linux) using Python
# pip3 install pyusb
# Requires root on macOS to kick the kernel driver off the device.
import usb.core
import usb.util
import struct
import time
import base64
import sys
@GaryOderNichts
GaryOderNichts / !vscode-wiiu-debugging.md
Last active October 20, 2024 22:55
Guide for Wii U remote GDB debugging with VS Code

Wii U remote GDB debugging with VS Code

This guide will set up VS Code to work with debugging Wii U apps using the GDB stub plugin for Aroma.

Choosing a GDB version

To debug you will need a compatible GDB version installed which supports the powerpc:750 archtitecture.
The one which is bundled with devkitPPC is not recommended, due to being several versions behind.
Edit: It has now been updated to the latest version and can be used without issues. Use /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gdb for the gdb path.
You also install a PowerPC specific version, or use gdb-multiarch which comes with several linux distributions.
Note down the path to the gdb executable, this is required for the next steps.

@Xpl0itU
Xpl0itU / vnc-to-existing-x11-session.md
Last active February 17, 2023 16:55
Connect to an existing X11 session over VNC without X11VNC on Debian

Install tigervnc-scraping-server

sudo apt-get install tigervnc-scraping-server

Add a password to the VNC server

vncpasswd
@vgmoose
vgmoose / en.txt
Last active December 10, 2022 23:32
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!
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.
import os
import sys
"""
This (pure!) python script streams a YUV4MPEG format video to stdout. It easily
runs at 1080p60fps on my machine.
Pipe it into a media player like this:
python3 swar_life.py | mpv -
@darwin
darwin / readme.md
Last active April 9, 2024 22:30
APFS Container cloning/replicating under Catalina (with a bootable system)

Today I wanted to move existing APFS-resident macOS Catalina installation to a new disk. I upgraded my late 2014 Mac Mini with a shiny new 1TB SSD. This took way too many hours of my life I will never get back. Hope this saves some time to you.

Good news:

  1. it is possible to create a DMG image from existing APFS container with macOS Catalina installation including metadata needed for complete restore (the DMG contains OS, OS Data, Preboot, Recovery and VM volumes)
  2. it is possible to restore this DMG image into empty APFS container and get a bootable copy of the original system

This information is relevant for Catalina (I'm currently running macOS 10.15.1).

@swarzesherz
swarzesherz / ExInjector.py
Last active April 26, 2016 02:52
ExInjector.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import os
import random
import string
import tempfile
import binascii
import sys
import subprocess
@Liryna
Liryna / ARMDebianUbuntu.md
Last active October 13, 2024 16:16
Emulating ARM on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

@justecorruptio
justecorruptio / 2048.c
Created April 4, 2014 03:49
Tiny 2048 in C!
M[16],X=16,W,k;main(){T(system("stty cbreak")
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<<
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k)
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X]
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4;
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4||
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2
@cciollaro
cciollaro / tree_builder.rb
Last active December 18, 2015 11:39
Tree Builder DSL
class Tree
attr_accessor :elements
def initialize(&block)
@elements = ''
instance_eval(&block)
end
def method_missing(method_name, *args, &block)
@elements << "<#{method_name}>"