Skip to content

Instantly share code, notes, and snippets.

View ferdinandhuebner's full-sized avatar

Ferdinand Hübner ferdinandhuebner

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ferdinandhuebner on github.
  • I am ferdi (https://keybase.io/ferdi) on keybase.
  • I have a public key whose fingerprint is 4A25 111B F318 768E 4027 7E98 55C5 8EDA A788 A51F

To claim this, I am signing this object:

#!/bin/bash
function is_integer {
test "$1" && printf '%f' "$1" >/dev/null 2>/dev/null;
}
function increment_fix_version_with_snapshot {
currentVersion="$1"
if [ $(echo "$currentVersion" | egrep "SNAPSHOT$") ]; then
echo "$currentVersion"
EclipseKeys.withSource := true
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource
// Get rid of java source directories in compile
unmanagedSourceDirectories in Compile <<= (scalaSource in Compile)(Seq(_))
// Get rid of java source directories in test
unmanagedSourceDirectories in Test <<= (scalaSource in Test)(Seq(_))
@ferdinandhuebner
ferdinandhuebner / procps-ng-red-text.md
Created August 4, 2015 19:33
make the red top from procps-ng display like the old top
@ferdinandhuebner
ferdinandhuebner / LogNexusRepoSize.groovy
Last active August 28, 2018 07:19
Logs the size of Repositories hosted by Sonatype Nexus 3
import org.sonatype.nexus.repository.storage.StorageFacet
import org.sonatype.nexus.repository.Repository
import org.sonatype.nexus.repository.storage.Asset
repository.repositoryManager.browse().each { Repository repo ->
StorageFacet storageFacet = repo.facet(StorageFacet)
def tx = storageFacet.txSupplier().get()
log.info("Processsing repository " + repo.getName())
def repoSize = 0