Skip to content

Instantly share code, notes, and snippets.

@al177
al177 / arch_laptop_stand.scad
Created December 13, 2022 03:16
Arch laptop stand SCAD
// length of the slot for each laptop
slot_width = 220;
// how high the laptop slot is from the desk
slot_lift = 10;
// height of the slot support from the edge of the laptop
slot_height = 80;
// thickness of the slot support
slot_thickness = 15;
@al177
al177 / vax4000vlc_notes.txt
Last active August 8, 2023 02:50
VAXStation 4000 VLC notes
Notes on my VS4k motherboard
-----
Issues:
- No FB card
- lack of S3 switch needs workaround (see below) to use serial consone
- maybe why serial BREAK doesn't HALT
- maybe why DZ test fails
- Fails DZ interrupt test (0x50) most of the time. No explanation.
- Stinky and still a little dirty
- NVR/TOY clock module battery is dead
@al177
al177 / gist:d5601fa73fbe846a1df304fd175bce61
Last active May 13, 2022 15:36
Asus Q408UG Laptop Linux notes
- Keyboard doesn't work by default
- add "i8042.reset i8042.nomux" to KCL in grub on install and on first boot
- add above to
- GPU works with Prime...
- Install nVidia proprietary
- Try "sudo ubuntu-drivers autoinstall" - especially on Kubuntu which has a broken Software Manager proprietary drivers tab
- Set up Prime for ondemand
- When running a command that should use the GPU, prefix with:
"__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia"
- "Howdy" works for IR cam login
@al177
al177 / gist:530c4c159ccd31c7c4988b19cccec6be
Created December 31, 2020 04:08
Blinkencard project notes
GOALS
- To make a handheld emulator for the historic Altair 8800 that recreates the feel of having blinkenlights
- To learn about FPGA development
ARCHITECTURE
- Hardware:
- Business card size PCB
- All components except pushbuttons on the board top
- LEDs are backfiring and shine through holes in the PCB
- 4 pushbuttons, heavily multiplexed for front panel control
- PCB is to be made matte black to mimic panel-mount LED look
@al177
al177 / gist:46693930e8b123e8d82535167b5192fc
Last active December 18, 2017 20:46
Debug stuff from AmazonBasics USB 3.0 hub
***uhubctl:
Current status for hub 1-1, vendor 2109:2811, 4 ports
Port 1: 0503 highspeed power enable connect [0424:2412]
Port 2: 0103 power enable connect [0403:6001 ftdi usb serial converter ftZ0SHR5]
Port 3: 0100 power
Port 4: 0100 power
***lsusb -v -d 2109:
@al177
al177 / mini51.c
Created January 30, 2015 03:08
modified TheLastMutt's mini51 flash and startup scripts for openocd 0.9.x and stlink/v2
/***************************************************************************
* Copyright (C) 2013 Cosmin Gorgovan *
* cosmin [at] linux-geek [dot] org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *