Skip to content

Instantly share code, notes, and snippets.

View jameswood's full-sized avatar

James jameswood

View GitHub Profile
@jameswood
jameswood / Synology NVME.txt
Last active November 23, 2022 10:53
Use NVME drives on Synology
ls /dev/nvme* # Find NVMe drives
sudo -i # elevate permissions
fdisk -l /dev/nvme0n1 # List partitions on NVMe1
fdisk -l /dev/nvme1n1 # List partitions on NVMe2
synopartition --part /dev/nvme0n1 12 # Create Syno partitions on NVMe1
synopartition --part /dev/nvme1n1 12 # Create Syno partitions on NVMe2
fdisk -l /dev/nvme0n1 # List partitions on NVMe1
fdisk -l /dev/nvme1n1 # List partitions on NVMe2
cat /proc/mdstat # List RAID arrays/logical drives
# mdadm --create /dev/md4 --level=1 --raid-devices=2 --force /dev/nvme0n1p3 /dev/nvme1n1p3 # Create array
@jameswood
jameswood / RTL8188EUS-Fix.md
Last active April 11, 2022 02:12
Fix RTL8188EUS on RPi Bullseye

RPi source

sudo apt-get install --no-install-recommends build-essential git bc bison flex libssl-dev python2
sudo wget https://raw.githubusercontent.com/RPi-Distro/rpi-source/master/rpi-source -O /usr/local/bin/rpi-source && sudo chmod +x /usr/local/bin/rpi-source && /usr/local/bin/rpi-source -q --tag-update
rpi-source

RTL8188EU drivers

mkdir -p ~/src/drivers
cd ~/src/drivers/
@jameswood
jameswood / fdmprinter.def.json
Last active May 22, 2018 12:58
Remove most of Cura's auto temperature stuff
{
"name": "FDM Printer Base Description",
"version": 2,
"metadata":
{
"type": "machine",
"author": "Ultimaker",
"category": "Other",
"manufacturer": "Unknown",
"setting_version": 1,
echo -e "@ oldfilename\n@=newfilename" | zipnote -w test.zip
raspistill -nopreview -mode 2 -awb off -time-lapse 5000 -timeout 3600000 -ss 1000 -output timelapse-%04d.jpg
@jameswood
jameswood / Hubsan High.epr
Created February 1, 2016 21:44
Hubsan X4 H107D video processing with Adobe Media Encoder
<?xml version="1.0" encoding="UTF-8"?>
<PremiereData Version="3">
<StandardUserFilters ObjectRef="155"/>
<ExportXMPOptionKey>10</ExportXMPOptionKey>
<StandardFilters Version="1">
<CustomStartTime>-101606400000000000</CustomStartTime>
<UseFrameBlending>false</UseFrameBlending>
<UsePreview>false</UsePreview>
<UseMaximumRenderQuality>true</UseMaximumRenderQuality>
<DeinterlaceState>false</DeinterlaceState>
@jameswood
jameswood / Prawnbot.ino
Created March 29, 2015 10:07
Prawnbot
bool debug = FALSE;
bool disableMotor = FALSE;
bool motorJammed = FALSE;
int motorPin = D5;
int switchPin = D2;
int ledPin = D7;
int dispense(String command);
int dispenseTimeout = 2000;
int debounce = 50;