Skip to content

Instantly share code, notes, and snippets.

View rafaelmartins's full-sized avatar
🎹

Rafael G. Martins rafaelmartins

🎹
View GitHub Profile
pi@raspberrypi:~ $ sudo lsusb -v
Bus 001 Device 004: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
System Information
------------------
Raspberry Pi 3 Model B Plus Rev 1.3
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Raspberry Pi reference 2019-09-26
#!/bin/sh
#
# Add this to your .travis.yml:
#
# script: curl -sSf https://yatr.rgm.io/run.sh | bash
#
set -e
I() {
@rafaelmartins
rafaelmartins / Saitek X52 Pro Flight Control System - Windows.joy
Last active September 30, 2024 08:32
Saitek X52 Pro settings for X-Plane 11 (Windows) - Just download this file to 'X-Plane 11/Resources/joystick configs'
I
1100 version
JOY
OS: Windows
Name: Saitek X52 Pro Flight Control System
Display: Saitek X52 Pro
Assignments:
--------------------------------------------------------------
@rafaelmartins
rafaelmartins / Saitek X52 Pro Flight Control System - Linux.joy
Last active May 10, 2017 23:58
Saitek X52 Pro settings for X-Plane 11 (Linux) - Just download this file to 'X-Plane 11/Resources/joystick configs'
I
1100 version
JOY
OS: Linux
Name: Saitek Saitek X52 Pro Flight Control System
Display: Saitek X52 Pro
Assignments:
--------------------------------------------------------------
SLOC Directory SLOC-by-Language (Sorted)
11454 tests ansic=8934,sh=2520
7796 src ansic=7661,python=135
Totals grouped by language (dominant language first):
ansic: 16595 (86.21%)
sh: 2520 (13.09%)
python: 135 (0.70%)
@rafaelmartins
rafaelmartins / upload.c
Last active August 29, 2015 14:27
balde - image upload example
/*
* This is a simple (and naive) example of image upload using balde. It saves
* the image in a temporary directory with the SHA1 checksum as the file name.
* Also, it supports only JPEG files, and the validation is very weak. It's
* just an usage example. :)
*
* After uploading the image, the client will be redirected to a page with
* the image, from the 'picture' endpoint, that shows the last uploaded iamge.
*
* To build it:
@rafaelmartins
rafaelmartins / pybr9pybr9_app.py.py
Created March 18, 2015 20:27
pybr9/pybr9_app.py
# -*- coding: utf-8 -*-
import os, sys
sys.path.insert(0, '/srv/apps/pybr9/src')
from pybr9 import create_app
import logging
stream_handler = logging.StreamHandler(sys.stderr)

Keybase proof

I hereby claim:

  • I am rafaelmartins on github.
  • I am rafaelmartins (https://keybase.io/rafaelmartins) on keybase.
  • I have a public key whose fingerprint is 8D9C 25D7 0251 69DE 4C45 7A65 3EF7 4952 E894 ABDE

To claim this, I am signing this object:

@rafaelmartins
rafaelmartins / balde-album.c
Last active August 29, 2015 14:05
balde-album: Yet another web gallery.
/**
* balde-album: Yet another web gallery.
* Copyright (C) 2014 Rafael G. Martins <rafael@rafaelmartins.eng.br>
*
* This program can be distributed under the terms of the LGPL-2 License.
*/
/**
* TGV 9713 - PARIS GARE LYON -> BARCELONA SANTS - August 12, 2014 - 10:07
*