Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
Working

Daniel Sachse wombat

😃
Working
View GitHub Profile
View gist:25e88d4fab4777ed65d7f0b93ea71972
Pipeline:
Triggered via:
- change base image
- gitlab changes
Steps:
- Linter
- Build docker image
- Tests
View gist:16f5231a80452c51d49ab1b8bf13901e
Umgebungen
dev:
/24 cidr - 255 IPs
build server
docker image analysis
vault dev
terraform beschreibt dev, staging und prod
staging:
@wombat
wombat / README.MD
Last active July 16, 2022 04:47
Nighthawk M1 AT commands
View README.MD

Connect Nighthawk M1 via USB to your computer. Open up a terminal and connect to the Nighthawk M1 via telnet (IP MAY VARY): telnet 192.168.1.1 5510.

You can check the current status of the LTE via the AT!gstatus? command.

To add more options to your cellular list in the Nighthawk M1 settings, copy/paste the following commands and paste them in the telnet session (you might need to hit ENTER one or two times - just as long until no "OK" comes back):

AT!BAND=3,"1800 Only (B3)",0,4
AT!BAND=4,"2600 Only (B7)",0,40
View keybase.md

Keybase proof

I hereby claim:

  • I am wombat on github.
  • I am wombat (https://keybase.io/wombat) on keybase.
  • I have a public key whose fingerprint is CC1B 65E3 5ABC 28A1 C9B1 CAD1 5F2A 41AC 933F 7C13

To claim this, I am signing this object:

@wombat
wombat / wiring.md
Created May 4, 2017 12:30
Wiring Embedded Artists 2,7" epaper Display to Raspberry Pi
View wiring.md

Wiring

EA RPi
1 6
2 1
3 23
4 19
5 21
6 24
@wombat
wombat / cleanup-replicasets.sh
Created October 25, 2016 13:48
Kubernetes - Old ReplicaSet cleanup
View cleanup-replicasets.sh
kubectl get rs --all-namespaces | awk {' if ($3 == 0 && $4 == 0) system("kubectl delete rs "$2" --namespace="$1)'}
View wildfly-install.sh
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :20140312
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.1.0.CR2
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
@wombat
wombat / QRAndLogo.java
Last active October 22, 2022 05:53
QR-Code with embedded logo
View QRAndLogo.java
// Create new configuration that specifies the error correction
Map<EncodeHintType, ErrorCorrectionLevel> hints = new HashMap<EncodeHintType, ErrorCorrectionLevel>();
hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);
QRCodeWriter writer = new QRCodeWriter();
BitMatrix bitMatrix = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
// Create a qr code with the url as content and a size of 250x250 px
@wombat
wombat / CameraConfigurationManager.java
Last active January 4, 2016 11:19
Initialize ZXing for Google Glass
View CameraConfigurationManager.java
...
public void googleGlassInit(Camera camera) {
Camera.Parameters params = camera.getParameters();
params.setPreviewFpsRange(30000, 30000);
params.setPreviewSize(640,360);
camera.setParameters(params);
}
...
@wombat
wombat / FoodResourceTest.java
Last active December 21, 2015 14:08
JAX-RS 2.0 Client + Arquillian = Dream Team
View FoodResourceTest.java
@RunWith(Arquillian.class)
public class FoodResourceTest {
@Deployment
public static WebArchive createDeployment() {
return ShrinkWrap.create(WebArchive.class, "test.war")
.addPackages(true, "eu.jugcologne.foodeys")
.addClass(RestApplication.class)
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
}