Skip to content

Instantly share code, notes, and snippets.

View fwilhe's full-sized avatar
🐧
Working on Project "Garden Linux"

Florian Wilhelm fwilhe

🐧
Working on Project "Garden Linux"
  • @SAP SE
  • Potsdam
  • 22:49 (UTC +02:00)
View GitHub Profile
@fwilhe
fwilhe / gist:29f9772508b77a2c1a3b3d8a046d5b1c
Created March 30, 2016 07:18
VirtualBox Kernel Fedora
sudo /usr/lib/virtualbox/vboxdrv.sh setup
@fwilhe
fwilhe / LinuxCheatSheet.adoc
Last active May 10, 2016 12:44
Linux Cheat Sheet

Linux Shell Cheatsheat

Development

git

  • Set Email Address per project: git config user.email "x@y.de"

Utils

@fwilhe
fwilhe / gist:a4c076686c733b1cc1af
Last active January 8, 2016 11:02
Changelog Casestudy
@fwilhe
fwilhe / Changelog.md
Created January 7, 2016 23:08
Changelog Example

Changelog

Unreleased

Features

  • Lorem

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

@fwilhe
fwilhe / set_gnome_shortcuts.sh
Last active May 10, 2016 17:55
GNOME Shortcuts Script
#!/bin/bash
set -o nounset
set -o errexit
set -o xtrace
# Tested using a default Fedora Workstation 23 with Gnome Shell
# Set Compose-Key to CapsLock, see:
# https://help.gnome.org/users/gnome-help/stable/tips-specialchars.html.en
gsettings set org.gnome.desktop.input-sources xkb-options "['compose:caps']"
= GitLab
GitLab ist eine webbasierte Software, die kollaboratives Arbeiten in Entwicklungsprojekten vereinfacht.
== Warum GitLab
* Es steht (in der Community Edition) unter einer freien Lizenz und kann daher selbst gehostet werden.
* Es orientiert sich stark an GitHub und ist daher einfach anzuwenden, wenn man GitHub kennt.
* Aktive weiterentwicklung, neue Versionen fast im Wochentakt
@fwilhe
fwilhe / cliBuilderExample.groovy
Created November 18, 2015 11:55 — forked from jpertino/cliBuilderExample.groovy
groovy CliBuilder usage
def cli = new CliBuilder().with {
usage = 'program [options] <arguments>'
header = 'Options:'
footer = '-' * width
s 'simplest boolean option'
b longOpt: 'both', 'boolean option with both longop and shortop'
_ longOpt: 'no-shortop-1', 'boolean option without short version 1'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.8'
}
}
#!/bin/sh
# based on https://raw.githubusercontent.com/fkling/esprima_ast_explorer/master/scripts/push-site.sh
# precondition: `gh-pages` branch does exist
TARGETPATH="../$(basename $(pwd))_gh_pages"
REMOTE=$(git remote -v | grep origin | grep "(push)" | cut -f 2 | cut -d ' ' -f 1)
if ! git diff --quiet && git diff --cached --quiet; then
echo >&2 "Cannot build, your index contains uncommitted changes."
def namespaces = ["org.osiam.resource-server", "org.osiam.auth-server", "org.osiam.self-administration"]
def properties = new Properties()
new File("../resource-server.properties").withInputStream {
properties.load(it)
}
private String propertyNameWithoutNamespace(String propertyName, String fullyQualifiedNamespace) {
propertyName.substring(fullyQualifiedNamespace.length() + 1, propertyName.length())
}