Skip to content

Instantly share code, notes, and snippets.

Avatar

Ferdinand Hübner ferdinandhuebner

View GitHub Profile
@ferdinandhuebner
ferdinandhuebner / LogNexusRepoSize.groovy
Last active Aug 28, 2018
Logs the size of Repositories hosted by Sonatype Nexus 3
View LogNexusRepoSize.groovy
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
@ferdinandhuebner
ferdinandhuebner / procps-ng-red-text.md
Created Aug 4, 2015
make the red top from procps-ng display like the old top
View procps-ng-red-text.md
View keybase.md

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:

View sbt-with-eclipse-only-scala
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(_))
View increment fix version and append snapshot
#!/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"