Skip to content

Instantly share code, notes, and snippets.

View Yooooomi's full-sized avatar

Timothee Boussus Yooooomi

  • France
View GitHub Profile
@2E0PGS
2E0PGS / xbox-one-controller-bluetooth-ubuntu-fix.md
Last active July 14, 2024 20:04
Fix to pair Xbox One S Bluetooth controller on Ubuntu

First things first you need to have a new ish bluetooth adapter I have found in my testing.

It may need to be bluetooth 4 compatible I am not sure but my laptop and phone worked whereas my desktop using a £1 dongle did not.

Once you get a successful pair you may notice the controller still has a blinking light. If this is the case see below.

Install sysfsutils

sudo apt-get install sysfsutils

@agustinhaller
agustinhaller / makeId.js
Created August 8, 2013 03:06
makeId function
function makeid(length)
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for(var i=0; i < length; i++)
{
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
$months = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',