Skip to content

Instantly share code, notes, and snippets.

View jamesy0ung's full-sized avatar

James Young jamesy0ung

View GitHub Profile
@jamesy0ung
jamesy0ung / boardmanagerurls.txt
Created July 15, 2024 04:14
Arduino Board Manager URLs
https://arduino.esp8266.com/stable/package_esp8266com_index.json, https://espressif.github.io/arduino-esp32/package_esp32_index.json, https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json, https://github.com/SpenceKonde/DxCore, http://drazzy.com/package_drazzy.com_index.json, https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <ncurses.h>
#define NUNCHUCK_ADDR 0x52 // Wii Nunchuck I2C address
@jamesy0ung
jamesy0ung / gist:cc1d1a233d6b97247c5627a75cc59c70
Created July 9, 2024 07:23
How to use Visual Studio Marketplace with code-server container
Add this line to your environment
- "EXTENSIONS_GALLERY={\"serviceUrl\": \"https://marketplace.visualstudio.com/_apis/public/gallery\", \"cacheUrl\": \"https://vscode.blob.core.windows.net/gallery/index\", \"itemUrl\": \"https://marketplace.visualstudio.com/items\"}"
Docker compose up and all of the official extensions will appear!
{
"bookmarks": {
"CB 1": {
"bandwidth": 12500,
"frequency": 476425000,
"mode": 2
},
"CB 2": {
"bandwidth": 12500,
"frequency": 476450000,
@jamesy0ung
jamesy0ung / gist:5e45e83927c8536cbb4936dc0c07fa6b
Created June 29, 2024 03:24
Bambu P1S 'fast' gcode (No L line)
;===== machine: P1S ========================
;===== date: 20231107 =====================
;===== turn on the HB fan & MC board fan =================
M104 S75 ;set extruder temp to turn on the HB fan and prevent filament oozing from nozzle
M710 A1 S255 ;turn on MC fan by default(P1S)
;===== reset machine status =================
M290 X40 Y40 Z2.6666666
G91
M17 Z0.4 ; lower the z-motor current
G380 S2 Z30 F300 ; G380 is same as G38; lower the hotbed , to prevent the nozzle is below the hotbed
@jamesy0ung
jamesy0ung / YSSY-SDR++.json
Created June 28, 2024 06:14
Sydney Airport Airband frequencies for SDR++
{
"bookmarks": {
"SYDNEY CENTRE 124.55": {
"bandwidth": 7025.76112412178,
"frequency": 124550000.0,
"mode": 2
},
"SYDNEY CENTRE 125.8": {
"bandwidth": 7025.76112412178,
"frequency": 125800000.0,
# Prerequisites
* Compaq C Compiler (http://osarchive.org/os/osf1-tru64/Development/Developers%27%20toolkit%20for%20Tru64%20UNIX/Compaq%20C%20V6.5-303.tar.lz)
## Licence Compaq C Compiler
Run lmfsetup
Enter the following details
Product Name: OSF-DEV
@jamesy0ung
jamesy0ung / smc_read.c
Created July 8, 2021 23:41
smc_read.c
// Use "gcc -Wall -o smc_read smc_read.c -framework IOKit" to compile
#include <stdio.h>
#include <IOKit/IOKitLib.h>
typedef struct {
uint32_t key;
uint8_t __d0[22];
uint32_t datasize;
@jamesy0ung
jamesy0ung / 3DS_Linux_build_instructions.md
Created February 23, 2021 22:54 — forked from marcotw2/3DS_Linux_build_instructions.md
3DS Linux build instructions