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
#!/bin/sh
git clone https://github.com/algdat/blatt-2-db07
git clone https://github.com/algdat/blatt-2-maze
git clone https://github.com/algdat/blatt-2-noobs-cpp
git clone https://github.com/algdat/blatt-2-you-are-a-star-1
git clone https://github.com/algdat/blatt-2-traveler
git clone https://github.com/algdat/blatt-2-sudoku07-1
git clone https://github.com/algdat/blatt-2-_vbbk_
git clone https://github.com/algdat/blatt-2-gitpub
@obcode
obcode / gist:cf65c4f3c464f7de886b
Created January 21, 2016 16:38
Konstruktor für Blatt 7
ChristmasTree(int height) {
if (height < 3) {
throw new RuntimeException();
}
this.height = height;
}
<?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">
@obcode
obcode / gist:ee44e6d4fbeadd99e2bb
Last active February 21, 2023 16:09
Jenkins - Copy all Jobs from a view into another view
import hudson.model.*
def oldview = "Braun-SwArch"
newview = new ListView("Braun-SwArch-Milestone1")
def view = Hudson.instance.getView(oldview)
//copy all projects of a view
for(item in view.getItems())
{
@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>
@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://[email protected]:8022/braun/14WS/compiler/md2html"
view = new ListView("braun-compiler")
noOfGroups = 12
// End Parameters
@obcode
obcode / gist:63d9ddd7a239c9f3b020
Last active June 21, 2022 04:11
Jenkins - Deletes all jobs in a view and the view
import hudson.model.ListView
import jenkins.model.*
// Begin Parameters
view_name = "braun-sweng";
// End Parameters
vc = Jenkins.instance.getView(view_name).getOwner();
v = vc.getView(view_name);
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: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
@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