Skip to content

Instantly share code, notes, and snippets.

Chris Lee clee

Block or report user

Report or block clee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@clee
clee / printer-lulzbot-taz6-aerostruder-2020.cfg
Created Feb 17, 2020
lulzbot taz6 aerostruder klipper config
View printer-lulzbot-taz6-aerostruder-2020.cfg
# This file contains pin mappings for the Lulzbot TAZ 6 circa 2020. To
# use this config, the firmware should be compiled for the AVR
# atmega2560.
[stepper_x]
step_pin: PC0
dir_pin: PL1
enable_pin: !PA7
step_distance: .010000
endstop_pin: ^PB6
@clee
clee / prime-X470-pro.lsiommu.log
Last active Feb 4, 2020
Windows 10 guest on 3900X/Prime X470 Pro, with RTX 2080 VFIO PCIe passthrough
View prime-X470-pro.lsiommu.log
IOMMU Group 0:
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
IOMMU Group 1:
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
IOMMU Group 2:
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
IOMMU Group 3:
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
IOMMU Group 4:
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
@clee
clee / cpuinfo
Created Feb 13, 2019
Ryzen 1600X /proc/cpuinfo
View cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 23
model : 1
model name : AMD Ryzen 5 1600X Six-Core Processor
stepping : 1
microcode : 0x8001136
cpu MHz : 3570.951
cache size : 512 KB
physical id : 0
@clee
clee / YubiKey-GPG-SSH-guide.md
Last active Nov 26, 2018 — forked from ageis/YubiKey-GPG-SSH-guide.md
Technical guide for using YubiKey series 4 for GPG and SSH
View YubiKey-GPG-SSH-guide.md

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate).

@clee
clee / end.gcode
Created Dec 29, 2017
TAZ6 start/end gcode for klipper
View end.gcode
;
M400 ; wait for moves to finish
M104 S0 ; hotend off
M107 ; fans off
G91 ; relative positioning
G1 E-1 F300 ; retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+20 E-5 X-20 Y-20 F3000 ; move Z up a bit and retract filament even more
M117 Cooling please wait ; progress indicator message
G90 ; absolute positioning
G1 Y0 F3000 ; move to cooling position
@clee
clee / lscpu
Created Jul 21, 2017
R7 1800X lscpu output
View lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
@clee
clee / .vimrc
Created Apr 13, 2017
vim configuration
View .vimrc
" install with:
" mkdir -p ~/.vim/autoload ~/.vim/bundle && \
" curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
" `git clone` plugins into ~/.vim/bundle/
call pathogen#infect()
syntax on
set encoding=utf8
set noexpandtab tabstop=4 shiftwidth=4 smartindent
View scanmap_pic18f4550.h
#ifndef RUMPV3_1_PIC18F4550
#define RUMPV3_1_PIC18F4550
#if defined(SCANMAP_PIC18F4550)
// scanmap for PIC18F4550
#pragma udata
const unsigned rom char keymap[16][8] = { // IBM Model M keymap, 16 rows, 8 columns
{ 0, 0, MOD_LCTRL, 0, 0, 0, MOD_RCTRL, 0 }, // row 1 (RA0)
{ 0, MOD_LSHIFT, 0, 0, 0, 0, MOD_RSHIFT, 0 }, // row 2 (RA1)
{ KEY_esc, KEY_tab, KEY_grave, KEY_1, KEY_Q, KEY_A, KEY_Z, 0 }, // row 3 (RA2)
@clee
clee / iptables.go
Last active Apr 3, 2016
watchdog daemon for reconfiguring multihome routing setups
View iptables.go
package main
import (
"io"
"log"
"strconv"
"os/exec"
"bytes"
"github.com/moovweb/gokogiri"
"github.com/moovweb/gokogiri/xpath"
@clee
clee / parsejson.go
Last active Dec 9, 2015
parsing newznab results in go
View parsejson.go
package main
import (
"fmt"
"io/ioutil"
"encoding/json"
)
type NewznabAttr struct {
Name string
You can’t perform that action at this time.