Skip to content

Instantly share code, notes, and snippets.

View obcode's full-sized avatar

Oliver Braun obcode

  • Munich University of Applied Sciences
  • Germany
View GitHub Profile
@obcode
obcode / etc_vpnc.conf
Created July 16, 2011 07:23
etc_vpnc.conf
IPSec gateway 194.94.31.250
IPSec ID FHS
IPSec secret <sharedsecret>
Xauth username <yourfhsid>
Xauth password <yourpassword>
@obcode
obcode / vpnc_gentoo.sh
Created July 15, 2011 12:24
vpnc.sh für Gentoo User
#!/bin/bash
source /lib64/rc/sh/functions.sh
ebegin "Connecting to the VPN"
vpnc
eend
ebegin "Modifying the routing table"
echo "nameserver 127.0.0.1" > /etc/resolv.conf
@obcode
obcode / vpnc.sh
Created July 15, 2011 12:21
vpnc.sh
#!/bin/bash
echo "Connecting to the VPN"
vpnc
echo "Modifying the routing table"
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver 192.168.178.1" >> /etc/resolv.conf
route add default gw 192.168.178.1
route add -net 212.201.64.0 netmask 255.255.254.0 dev tun0
module Main where
import Network.HTTP.Enumerator
import Network.HTTP.Types
import qualified Data.ByteString.Lazy.UTF8 as BSLU
page = "http://www.invest-in-thuringia.de/service/firmendatenbank/?searchScope=firmen-detail&adrid=2660"
main = do
req0 <- parseUrl page