Skip to content

Instantly share code, notes, and snippets.

View fabianofranz's full-sized avatar

Fabiano Franz fabianofranz

View GitHub Profile
@fabianofranz
fabianofranz / ask_for_password.rb
Created May 11, 2012 04:24
get password - Ruby - any platform - no gems needed
# --- Platform inspectors
def jruby? ; RUBY_PLATFORM =~ /java/i end
def windows? ; RUBY_PLATFORM =~ /win(32|dows|ce)|djgpp|(ms|cyg|bcc)win|mingw32/i end
def unix? ; !jruby? && !windows? end
# --- Lé code
def ask_for_password_on_unix(prompt = "Enter password: ")
def get_args
ARGV.shift
args = ""
ARGV.each do|a|
if ( a.to_s.strip.length == 0 || a.to_s.strip.match(/\s/) ); a = "'#{a}'" end
args += " #{a}"
end
args
end
@fabianofranz
fabianofranz / gist:7779248
Created December 3, 2013 23:04
build-couchdb rake.log
STDOUT Build CouchDB commit: 386709164263df752caabbad15c136dd908ce323
STDERR /var/lib/openshift/529d45154382eccdf500030a/build-couchdb/dependencies/autoconf-2.69/configure --prefix=/var/lib/openshift/529d45154382eccdf500030a/build-couchdb/build --program-suffix=2.69 --datarootdir=/var/lib/openshift/529d45154382eccdf500030a/build-couchdb/build/share/autoconf-2.69
STDOUT checking for a BSD-compatible install... /usr/bin/install -c
STDOUT checking whether build environment is sane... yes
STDOUT checking for a thread-safe mkdir -p... /bin/mkdir -p
STDOUT checking for gawk... gawk
STDOUT checking whether make sets $(MAKE)... yes
STDOUT checking build system type... x86_64-unknown-linux-gnu
STDOUT checking host system type... x86_64-unknown-linux-gnu
STDOUT configure: autobuild project... GNU Autoconf
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var form = $('#form'); // contact form
// form submit event

Using Atom on Fedora 20

This guide walks you through the steps of building and launching the Atom text editor on Fedora 20.

Building Atom

  1. Install prerequisite packages

Retropie + iPEGA 9025 Bluetooth Controller

/etc/udev/rules.d/99-bluetooth.rules

SUBSYSTEM=="input", ATTRS{name}=="ipega media gamepad controller", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"

/opt/retropie/configs/all/retroarch-joypads/ipega\ media\ gamepad\ controller.cfg

Keybase proof

I hereby claim:

  • I am fabianofranz on github.
  • I am fabianofranz (https://keybase.io/fabianofranz) on keybase.
  • I have a public key ASDWzKxIYZUSHpzLK2hYW0XLF8LQBbqt4P1-gwfc4veJsgo

To claim this, I am signing this object: