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 / gist:c3155b5e0b1cdf7e5080
Last active August 29, 2015 14:01
Haskell Client für Gruppe 1 Software-Architektur
module Main where
import Control.Concurrent
import Control.Monad
import Data.List
import Network.Socket
import System.Environment
-- a username is a string
type Username = String
name: md2html
version: 0.1.0.0
synopsis: A Markdown-To-HTML-Compiler
description: A Markdown-To-HTML-Compiler
homepage: http://ob.cs.hm.edu/lectures/compiler
license: BSD3
license-file: LICENSE
author: ...
maintainer: ...
-- copyright:
@obcode
obcode / gist:7072e2f047164dd73184
Last active August 29, 2015 14:15
Jenkins - clone a template project
import hudson.model.*
// Begin Parameters
template = "md2html"
newname = template //
repoprefix = "ssh://git@ob.cs.hm.edu:8022/braun/14WS/compiler/md2html"
view = new ListView("braun-compiler")
noOfGroups = 12
// End Parameters
@obcode
obcode / scalastyle-config.xml
Last active August 29, 2015 14:16
Scalastyle Config File for use on terraform.cs.hm.edu
<scalastyle>
<name>Scalastyle standard configuration</name>
<check level="warning" class="org.scalastyle.file.FileTabChecker" enabled="true"></check>
<check level="warning" class="org.scalastyle.file.FileLengthChecker" enabled="true">
<parameters>
<parameter name="maxFileLength"><![CDATA[800]]></parameter>
</parameters>
</check>
<check level="warning" class="org.scalastyle.scalariform.SpacesAfterPlusChecker" enabled="true"></check>
<check level="warning" class="org.scalastyle.file.WhitespaceEndOfLineChecker" enabled="true"></check>
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
@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
@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 / 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 / gist:1656450
Created January 22, 2012 10:06 — forked from cartazio/gist:1655271
simple directions to install gtk haskell libs on OS X lion so that Everything works
note that these directions probably can use some cleanup, but i'm choosing these steps so that rebuilding any haskell library doesn't require remembering ANYTHING :-)
(tested on ghc 7.2.2, assumes you have standard developer things installed on mac, like x11 and stuff)
1) cabal install gtk2hs-buildtools #(this should work with any haskell platform install)
2) brew install cairo gtk gettext fontconfig
3) brew link cairo gettext fontconfig # brew will complain, who cares, this makes your life easier (at least if you're living in a haskell world :p )
4) download libfreetype, heres a URL you can use http://sourceforge.net/projects/freetype/files/freetype2/2.4.8/freetype-2.4.8.tar.bz2/download?use_mirror=iweb
<?xml version="1.0" encoding="UTF-8"?>
<!--
Checkstyle-Configuration: Ullrich Hafner
Description: Ullrich Hafner's Checkstyle Rules.
-->
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<property name="severity" value="warning"/>
<module name="TreeWalker">