Skip to content

Instantly share code, notes, and snippets.

View gorlok's full-sized avatar

Pablo Lillia gorlok

View GitHub Profile
@cscorley
cscorley / gist:1410217
Created November 30, 2011 18:41
Convert directory of svn dumps to git repos
#!/bin/bash
# convert svn dumps located in ./svndumps/ into git repositories.
# assumes dump has basic svn top level structure of tags/, branches/, and trunk/,
# and authors.txt file of the svn committer id -> git committer id
# authors.txt example:
# csc = Christopher Corley <cscorley@ua.edu>
# inspired by/credit to: http://sebastian.formzoo.com/2010/11/04/3-steps-convert-svn-dump-to-git/
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@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