Skip to content

Instantly share code, notes, and snippets.

@p4gs
p4gs / Get Cobalt Flux working on Windows 10 (using Cobalt Flux Control Box V5).md
Last active February 5, 2020 00:04
Get Cobalt Flux working on Windows 10 (using Cobalt Flux Control Box V5)

Get Cobalt Flux working on Windows 10 (using Cobalt Flux Control Box V5)

Note: these instructions were tested on Windows 10 v1709. They might also work for other gamepad controller issues on Windows 10.

Background

I was trying to get my old Cobalt Flux setup on a newer Win10 laptop. Windows 10 quickly recognizes the device when it first gets plugged in. It will use the default HID gamepad controller drivers for it. However, looking in the Device Manager details for the device reveals some device events that don't bode well ("migration failed"). Trying to map input in e.g. Stepmania fails miserably.

A quick Google of "cobalt flux Windows 10" reveals results like this: https://www.stepmania.com/forums/input-adapters-and-controllers/show/6511

After some messing around, though, I got it working!

@p4gs
p4gs / set_random_macos_root_pw.sh
Last active November 29, 2017 15:33
Change the macOS root account password to something random and never look back (mitigates this irresponsibly disclosed vuln: https://twitter.com/lemiorhan/status/935578694541770752)
#!/bin/bash
# Disallow exporting of new local shell variables
set +a
# Generate random password, 32 chars with mix of upper/lowercase alpha,
# numbers, symbols
pw=$(env LC_CTYPE=C tr -dc 'a-zA-Z0-9_\$\?' < /dev/urandom | head -c32)
# Set root user's password
dscl . passwd /Users/root "$pw"
@p4gs
p4gs / keybase.md
Created August 30, 2015 02:32
keybase.md

Keybase proof

I hereby claim:

  • I am p4gs on github.
  • I am p4gs (https://keybase.io/p4gs) on keybase.
  • I have a public key whose fingerprint is F3F3 0A41 9364 3E33 E2CF 37F4 7414 A2DB 6C68 7BF8

To claim this, I am signing this object: