Skip to content

Instantly share code, notes, and snippets.

View rhpk's full-sized avatar

Cristiano Paris rhpk

View GitHub Profile
-*- mode: ruby -*-
# vi: set ft=ruby :
private_ips = {
:node001 => "192.168.123.2",
:node002 => "192.168.123.3",
:node003 => "192.168.123.4",
}
Vagrant.configure("2") do |config|
0xb4Bb05566DD05526390237532d18a19f61900397
@rhpk
rhpk / ttybug.c
Created January 21, 2015 15:35
Controlling tty stealing toy code
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <termios.h>
int main(int argc, char *argv[]) {