Skip to content

Instantly share code, notes, and snippets.

View VuokkoVuorinnen's full-sized avatar

Vuokko Vuorinnen VuokkoVuorinnen

View GitHub Profile
<?php
/**
* Created by JetBrains PhpStorm.
* User: Vuokko
* Date: 12/06/13
* Time: 19:52
* To change this template use File | Settings | File Templates.
*/
// Turn off all error reporting, otherwise you get some fucked up DOMelement warnings :p
@VuokkoVuorinnen
VuokkoVuorinnen / gist:7040681
Created October 18, 2013 12:15
Error message bij het runnen van "vagrant up testapp" bij openminds/sneakers
Op een Ubuntu 13.04 systeem met ruby, git, vagrant & virtualbox:
----------------------------------------------------------------
vuokko@Nemesis:~/sneakers$ vagrant up testapp
/home/vuokko/sneakers/Vagrantfile:20:in `block (3 levels) in <top (required)>': undefined method `configure' for Vagrant:Module (NoMethodError)
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:83:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:83:in `block (2 levels) in load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:79:in `each'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:79:in `block in load'
from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:76:in `each'
# http://wiki.centos.org/HowTos/SetUpSamba
# http://micheljansen.org/blog/entry/182
# http://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable-enforcement.html
# installatie & opstarten & starten bij boot
sudo yum install samba
sudo chkconfig smb on
sudo service smb start
# Helium - DNS server
node helium inherits default {
# bind stuff
include bind
bind::server::conf { '/etc/named.conf':
listen_on_addr => [ $dns_listen_on_addr ],
listen_on_v6_addr => [ $dns_listen_on_addr ],
forwarders => [ $dns_forwarder ],
allow_query => [ $dns_allow_query ],
package Helpers;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public final class Database {
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
@VuokkoVuorinnen
VuokkoVuorinnen / gist:8024045
Created December 18, 2013 15:19
config.yml
# Dashing Dashboard
dashing:
app_directory: "/home/vuokko/netwerken/labo7/dashing/"
type: "ruby193"
http_port: 8080
memory: 512
@VuokkoVuorinnen
VuokkoVuorinnen / gist:8024061
Created December 18, 2013 15:20
output van vagrant up
vuokko@Nemesis:~/netwerken/labo7/sneakers$ vagrant up dashing
Bringing machine 'dashing' up with 'virtualbox' provider...
[dashing] Box 'sneakers-6.0.7-ruby193-20130911' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
/usr/lib/ruby/gems/1.8/gems/eventmachine-1.0.3/tests/test_unbind_reason.rb
Building native extensions. This could take a while...
/usr/bin/ruby extconf.rb
ERROR: Error installing dashing:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
package testapps;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;
public class DateClient {
private static MulticastSocket multicastSocket;
private static InetAddress group;