cryptsetup open --type plain -d /dev/urandom /dev/sdX to-be-wiped
dd if=/dev/zero of=/dev/mapper/to-be-wiped status=progress bs=4M
cryptsetup close to-be-wiped
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
/** | |
* Simple UDP server that listens for packets on port 8125 and | |
* prints them. Intended for testing a StatsD client. | |
*/ | |
public class StatsdLogger | |
{ | |
public static void main(String args[]) throws Exception { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupid>com.timgroup</groupid> | |
<artifactid>java-statsd-client</artifactid> | |
<version>3.0.1</version> | |
</dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class MetricsConfig { | |
@Bean | |
public StatsDClient statsDClient( | |
@Value("${metrics.statsd.host:localhost}") String host, | |
@Value("${metrics.statsd.port:8125}") int port, | |
@Value("${metrics.prefix:example.app}") String prefix | |
) { | |
return new NonBlockingStatsDClient(prefix, host, port); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
statsd.incrementCounter("service.random"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
example.app.service.random:1|c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Aspect | |
public class MethodProfiler { | |
private final StatsDClient statsd; | |
public MethodProfiler(StatsDClient statsd) { | |
this.statsd = statsd; | |
} | |
@Pointcut("execution(* at.willhaben.examples.statsd.rest.RandomController.*(..))") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
statsd.recordExecutionTime(“example.stat”, 25, “cluster:foo”, “http.status:200”); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Disable detail view in Jira Rapid Board | |
// @namespace https://tampermonkey.benjaminhubert.at/ | |
// @version 1.7 | |
// @description Removes the detail view from Jira's Rapid Board which is an annoying feature in my eyes. | |
// @author Benjamin Hubert, Lukas Schneider, Florian Mautendorfer | |
// @match https://*/secure/RapidBoard.jspa* | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialize the new repository in an empty directory | |
git init | |
# Before we can do a merge, we need some initial commit. Create a file that's | |
# not part of any of the repos you want to merge, for example | |
touch delete-me-afterwards.txt | |
git add . | |
git commit -m "initial commit" | |
OlderNewer