Skip to content

Instantly share code, notes, and snippets.

@precurse
precurse / gist:af9907010ba597b5261f40fd5885660c
Last active May 7, 2024 14:43
FT2232H Mini Pinout (JTAG, SPI, UART, I2C)

I made this reference guide so I can easily look back on it quickly.

FT2232H IC FT2232H Mini JTAG SPI UART I2C
GND CN2-2, 4, 6 GND GND GND GND
VCC CN2-1, 3, 5 3.3VDC 3.3VDC 3.3VDC 3.3VDC
AD0 CN2-7 TCK SCLK TXD SK
AD1 CN2-10 TDI DO (MOSI) RXD DO
AD2 CN2-9 TDO DI (MISO) DI
@precurse
precurse / keybase.md
Created January 8, 2018 21:17
keybase.md

Keybase proof

I hereby claim:

  • I am precurse on github.
  • I am precurse (https://keybase.io/precurse) on keybase.
  • I have a public key ASDminrv9-IVDhiB_USodSjuExxIKLxsp3pElX2GKAidjAo

To claim this, I am signing this object:

10-19 01:03:35.340 24937 24937 I SyncthingService: Stopping syncthing according to current state and preferences
10-19 01:03:35.340 24937 24937 I SyncthingService: Shutting down background service
10-19 01:03:35.414 24937 25193 I SyncthingNativeCode: [I26RN] 07:03:35 INFO: Exiting
10-19 01:03:35.425 24937 25189 I SyncthingRunnable: Syncthing exited with code 0
10-19 01:03:36.434 24937 25239 I SyncthingRunnableKill: Killed Syncthing process 25192
10-19 01:03:41.444 24937 24937 I SyncthingService: Shutting down background service
10-19 01:03:41.587 24937 24937 I SyncthingService: Starting syncthing according to current state and preferences
10-19 01:03:41.625 24937 25360 I ConfigXml: Loaded Syncthing config file
10-19 01:03:41.646 24937 24937 I SyncthingService: Web GUI will be available at https://127.0.0.1:8384
10-19 01:03:41.759 24937 25377 I SyncthingNativeCode: [I26RN] 07:03:41 INFO: syncthing v0.14.39 "Dysprosium Dragonfly" (go1.8 linux-arm64) felix@p50 2017-09-25 06:05:21 UTC [noupgrade]
@precurse
precurse / Application.java.patch
Created May 12, 2017 19:58
Patches for OpenConext dashboard
diff --git a/selfservice/src/main/java/selfservice/Application.java b/selfservice/src/main/java/selfservice/Application.java
index 411a459..d330df8 100644
--- a/selfservice/src/main/java/selfservice/Application.java
+++ b/selfservice/src/main/java/selfservice/Application.java
@@ -86,7 +86,7 @@ public class Application extends SpringBootServletInitializer {
}
@Bean
- @Profile("!dev")
+ @Profile("dev")
- hosts: shell
gather_facts: no
tasks:
- block:
- setup:
rescue:
- raw: "pkgin update && pkgin in python27"
@precurse
precurse / adfs_SAML.ps1
Created December 9, 2016 18:47
PowerShell script to automate configuration of OpenConext
## Please Update this for your schacHomeOrganization
$homeorg = "school.example.ca"
$metadataurl = "https://engine.openconext.example.com/authentication/sp/metadata"
# Group that includes all users (Used as workaround for schacHomeOrganization)
$group_all = "Domain Users"
Add-AdfsClaimDescription -ClaimType "urn:oid:2.16.840.1.113730.3.1.241" -Name "oid - Display Name"
Add-AdfsClaimDescription -ClaimType "urn:oid:0.9.2342.19200300.100.1.3" -Name "oid - Email"
Add-AdfsClaimDescription -ClaimType "urn:oid:2.5.4.42" -Name "oid - givenName"
Add-AdfsClaimDescription -ClaimType "urn:oid:2.5.4.4" -Name "oid - surName"
configs:
- domain: blah.com
other_item: another item
- domain: blah2.com
other_item: yet another item
@precurse
precurse / arch-linux-install
Created July 14, 2016 06:05 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@precurse
precurse / gist:92ac44d945680643ffca458d88c4dce1
Last active June 25, 2016 05:28
Sickgear Ansible Playbook for Centos
- name: Install packags
package: name={{ item }} state=present
with_items:
- patch
- sqlite-devel
- bzip2-devel
- readline-devel
- zlib-devel
- openssl-devel
- git
@precurse
precurse / gist:348a7d04a1c1b09ddccf
Created March 20, 2016 19:55
SmartOS Images building OpenSSH with outdated OpenSSL library
[root@shell ~]# cat /etc/motd
__ . .
_| |_ | .-. . . .-. :--. |-
|_ _| ;| || |(.-' | | |
|__| `--' `-' `;-| `-' ' ' `-'
/ ; Instance (base-64-lts 15.4.1)
`-' https://docs.joyent.com/images/smartos/base
[root@shell ~]# openssl version
OpenSSL 1.0.2g 1 Mar 2016