Skip to content

Instantly share code, notes, and snippets.

View VuokkoVuorinnen's full-sized avatar

Vuokko Vuorinnen VuokkoVuorinnen

View GitHub Profile
@VuokkoVuorinnen
VuokkoVuorinnen / soep.sh
Created December 19, 2023 07:44
soep.sh
#!/bin/bash
curl -s -H "Referer: https://partyline.be/_predefined_pages/prijslijst_NL.asp?M_LANGUAGE=NL&M_SITENAME=PARTYLINE" "https://partyline.be/_predefined_pages/prijslijst_NL.asp?M_CATEGORIE=25" | xmllint --format --html --xpath '//div[@class="row no-gutters mt-5"]' - | sed -e 's/<[^>]*>/ /g' | sed -e 's/&#13;//g' | sed '/^[[:space:]]*$/d' | sed -e 's/^[ \t]*//' | sed -e 's/ Koude suggestie.*//'
@VuokkoVuorinnen
VuokkoVuorinnen / gist:8280801
Created January 6, 2014 10:21
Network troubleshooting
Network Troubleshooting:
------------------------
1) Kabels checken!
2) IP adres -> ifconfig
3) Default gateway
-) netstat -rn
-) route -n
4) DNS
-) /etc/resolv.conf
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;
/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
@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
# 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
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 {
# 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 ],
# 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