Skip to content

Instantly share code, notes, and snippets.

Zeno R.R. Davatz zdavatz

Block or report user

Report or block zdavatz

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
extremecoders-re /
Last active Feb 14, 2020
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

kuboon / dispatch.rb.cgi
Last active Oct 31, 2016
run Rails app as DRb server and access it from CGI process
View dispatch.rb.cgi
require 'drb/drb'
require 'logger'
require "rack"
require 'rack/rewindable_input'
module Dispatch
RAILS_ENV = 'staging'
DRUBY_URI = "druby://localhost:13141"
LOCKFILE = "../tmp/pids/"
gabrielemariotti / build.gradle
Last active Jan 1, 2020
Use file which controls which keystore to use to sign the APK with gradle.
View build.gradle
android {
signingConfigs {
buildTypes {
release {
signingConfig signingConfigs.release
johnsome / gist:873699
Created Mar 17, 2011
ruby version date parsing differences and options
View gist:873699
Key issue - format of entered dates:
date is displayed like: 31/3/2011
date is input like: 31-3-2011
This is works correctly in ruby 1.8 and 1.9
ruby-1.8.7-p302 > Time.parse '31-3-2011' # => Thu Mar 31 00:00:00 -1000 2011
ruby-1.9.2-p0 > Time.parse('31-3-2011') # => 2011-03-31 00:00:00 -1000
Changes in parsing dates for ruby 1.9:
* no longer has difference in parsing dates with dash or forward slash - they are always in euro format
You can’t perform that action at this time.