Skip to content

Instantly share code, notes, and snippets.

View jamesy0ung's full-sized avatar

James Young jamesy0ung

View GitHub Profile
#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 / Windows CE Product Keys
Created September 26, 2020 22:39
Windows CE Product Keys
Windows CE 4:
XVQBX-JJGYD-YJXGH-4TCMB-G6VVQ
Windows CE 5:
XVQBX-JJGYD-YJXGH-4TCMB-G6VVQ
Windows Embedded CE 6:
PYHYP-WXB3B-B2CCM-V9DX9-VDY8T
Windows Embedded Compact 7:
@jamesy0ung
jamesy0ung / ModelMaker-V4.215.hex
Created September 16, 2018 21:21
Official firmware for Cocoon Create ModelMaker 3D Printer
:100000000C94FB170C942C180C942C180C942C1892
:100010000C942C180C942C180C942C180C942C1850
:100020000C942C180C942C180C942C180C942C1840
:100030000C942C180C942C180C942C180C942C1830
:100040000C942C180C94F2860C942C180C942C18EC
:100050000C942C180C942C180C9460920C94DF4285
:100060000C942C180C9457610C942C180C942C188C
:100070000C942C180C942C180C942C180C942C18F0
:100080000C942C180C942C180C942C180C942C18E0
:100090000C942C180C942C180C942C180C942C18D0