Skip to content

Instantly share code, notes, and snippets.

Rafael Medina rmed

Block or report user

Report or block rmed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rmed /
Last active Aug 13, 2019
Dynamic Flask-WTF fields
# -*- coding: utf-8 -*-
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import Form, FieldList, FormField, IntegerField, StringField, \
rmed /
Last active Jun 15, 2019
RPi Zero keyboard test
sleep 15
# Create gadget
mkdir /sys/kernel/config/usb_gadget/mykeyboard
cd /sys/kernel/config/usb_gadget/mykeyboard
# Add basic information
echo 0x0100 > bcdDevice # Version 1.0.0
rmed / README
Created Apr 25, 2015
reveal.js slides with pandoc
How to use:
- Copy default.revealjs into ~/.pandoc/templates
- Place in the same directory as your slides (e.g.
- Download reveal.js from here:
- Place the reveal.js directory in the same directory where your compiled slides will be (can be different with Pandoc's flags)
- Modify the script to your likings
- Compile with ./
rmed / .vimrc
Last active Nov 16, 2015
vim configuration
View .vimrc
" Switch on syntax highlighting.
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
" Line numbers
set nu!
set mouse=a
rmed / .tmux.conf
Last active Mar 15, 2018
tmux configuration
View .tmux.conf
# Use C-a instead of C-b as the prefix
set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# set 256 colors
set -g default-terminal "screen-256color"
#set -g terminal-overrides "xterm:colors=256"
# vim compatibility
rmed / aria.config
Last active Aug 29, 2015
Kernel config file for my machine
View aria.config
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.17.4 Kernel Configuration
You can’t perform that action at this time.