Skip to content

Instantly share code, notes, and snippets.

View cbmeeks's full-sized avatar
🏠
Working from home

cbmeeks cbmeeks

🏠
Working from home
View GitHub Profile
@cbmeeks
cbmeeks / c64.asm
Created August 30, 2018 12:14
Commented C64 Kernal
;************************************************************************************
;************************************************************************************
; This file was included in the Project 64 Repository after all efforts to contact
; Lee Davison, the original author, were proven unsuccessful. The inclusion is meant
; to honour his sterling work on providing us with the very best document on every
; bit of the Commodore 64's firmware content. We want this to remain available to
; the public and allow other members to benefit from Lee's original, excellent job.
;************************************************************************************
; $VER:C64LD11.S, included on 2014-11-12
;************************************************************************************
@cbmeeks
cbmeeks / Yacht.txt
Created July 18, 2019 17:57
M68000 Cycle Counting
Yacht
(Yet Another Cycle Hunting Table)
-------------------------------------------------------------------------------
Forewords :
-------------------------------------------------------------------------------
This document is based on :
- 9th Edition of M68000 8-16-32-bit Microporcessor User's Manual
(Motorola, 1993) (laterly refered as M68000UM)
@cbmeeks
cbmeeks / sid.txt
Last active June 26, 2025 04:47
SID File Format
===========================
SID FILE FORMAT DESCRIPTION
===========================
AUTHORS:
Michael Schwendt (PSID v1 and v2)
Simon White (PSID v2NG, RSID)
Dag Lem (PSID v2NG)
Wilfred Bos (PSID v3, RSID v3, PSID v4, RSID v4)
@cbmeeks
cbmeeks / bb.md
Created March 14, 2025 20:23
Connect to Bitbucket with SSH

Step 1: Check if SSH is Installed

  1. Open a terminal.

  2. Run: ssh -v

    • If it shows a version (e.g., OpenSSH), SSH is installed. If not, install it with:
      sudo apt update
      sudo apt install openssh-client
@cbmeeks
cbmeeks / svn2git.md
Last active March 5, 2025 19:00
Instructions on how to convert SVN repos into git (Bitbucket)

How to Import SVN Repos into BitBucket

Create New Repopository in Bitbucket

NOTE, if you create an empty repo in Bitbucket, it will default to the "main" branch and create a .gitignore file. Normally, this would be OK. However, the .gitignore file will cause a conflict because the newly created repo will not be empty. You will need to pull then push.

It is recommended to NOT create a .gitignore file by default and make sure the new repo is completely empty.

@cbmeeks
cbmeeks / users.py
Created February 17, 2025 16:11
Add Cognito Users to a Group
# Before running, make sure you set your ~/.aws/credentials and ~/.aws/config properly.
# Just run: aws configure
# Then enter your access key, secret key and region.
import boto3
client = boto3.client('cognito-idp')
user_pool_id = '<<USER POOL ID>>' # Change to your user pool ID
group_name = 'MY_GROUP' # Change to whatever group you want. Make sure it exists first.
@cbmeeks
cbmeeks / custom.js
Created November 30, 2023 01:35
Simple Combo / Select Box
const autocomplete = (inputId, listId, dimensionCode) => {
const input = document.getElementById(inputId)
const list = document.getElementById(listId)
if (!input || !list) return false
list.innerHTML = ''
let items = []
let current = -1
const bg_default = 'bg-white'
const bg_select = 'bg-blue-500'
@cbmeeks
cbmeeks / odd.java
Created February 21, 2024 20:45
Convert Odd DateTime String
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
public class Main {
public static void main(String[] args) throws ParseException {
final String dateTime = "20240310 120600.000";
@cbmeeks
cbmeeks / usb_hid_keys.h
Created January 6, 2023 02:19 — forked from ekaitz-zarraga/usb_hid_keys.h
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@cbmeeks
cbmeeks / sprites.asm
Last active June 3, 2023 12:08
sprites.asm -- Commodore 64 Sprite Multiplexer
.importonce
//***************************************************************************
// VIC II
// BANK 0: $0000 - $3FFF
// BANK 1: $4000 - $7FFF
// BANK 2: $8000 - $BFFF
// BANK 3: $C000 - $FFFF
//***************************************************************************