Skip to content

Instantly share code, notes, and snippets.

View vlaminck's full-sized avatar

Steve Vlaminck vlaminck

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vlaminck on github.
  • I am mikedave ( on keybase.
  • I have a public key whose fingerprint is F518 8B20 4464 186B 932B 54D6 90C2 251D D405 445B

To claim this, I am signing this object:

vlaminck /
Last active April 24, 2018 20:57
How to backup save files with Dropbox.

How to backup save files with Dropbox.

Huge thanks to andreafabrizi for his work on Dropbox-Uploader.

I wrote these scripts for backing up my save files (.srm and .state) on my RetroPie. To do this, I created a few scripts and placed them in ~/RetroPie/retropiemenu/. I then copied the gamelist.xml that I found in /opt/retropie/configs/all/emulationstation/gamelists/retropie/, and added entries for my scripts, and added icons to ~/RetroPie/retropiemenu/icons. All of this was done on RetroPie 4.0.RC1 so you may want to copy your own gamelist file and add the entries from partial-gamelist.xml to it.

vlaminck / firstOfType.swift
Created July 7, 2016 19:51
A playground that tests variations of a CollectionType extension for finding elements by type
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
class Base {
var number: Int?
vlaminck /
Created February 7, 2016 15:13 — forked from rorymcdaniel/
Dropbox rom syncing script for retropie console
#!/usb/bin/env python
import os
import dropbox
import shutil
import zipfile
# Create a dropbox app and obtain App Key and Secret Key. Specify a folder
# Create a folder called romsync in your specified Dropbox app folder
# Store Dropbox App Key and Secret Key in system environment variables
vlaminck / Swift.gitignore
Last active November 7, 2015 14:18
The .gitignore file that I use for Swift projects. Requires Github's Swift.gitignore file to be added to the top.
# Everything above should be copy/pasted from
# Everything else should be added below
# Eclipse
# Intellij
vlaminck / rom-cleanup.swift
Last active January 31, 2016 14:25
A Swift script that recursively checks all directories under the current directory for `.nes` ROMs that have `" (U) [!]"` in the name, and copies them into a new `_copiedRoms` directory with a cleaner name.
#!/usr/bin/xcrun swift -i
import Foundation
enum RomType: String, CustomStringConvertible {
case NES = ".nes"
case SNES = ".smc"
case Genesis = ".gen"
case N64 = ".z64"
case GB = ".gb"
vlaminck / TEST page params
Created February 26, 2015 15:53
passing params via href element to a dynamic page
* TEST page params
* Copyright 2015 Steve Vlaminck
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
vlaminck / gist:6297536
Created August 21, 2013 17:40
First pass at doors preferences
* Doors Test
* Author: steve
* Date: 2013-08-19
preferences {
page(name:"label", title:"SmartAppLabel", nextPage:"smartApps") {
section("You don't have any doors, let's add one!"){
* Learning Lights
* Author: steve
* Date: 2013-08-20
preferences {
section("Setup") {
input "luminosity", "capability.illuminanceMeasurement", title:"Luminosity Sensor"