Skip to content

Instantly share code, notes, and snippets.

View wombat's full-sized avatar
😃
Working

Daniel Sachse wombat

😃
Working
View GitHub Profile
@wombat
wombat / QRAndLogo.java
Last active December 5, 2023 12:07
QR-Code with embedded logo
// 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 / README.MD
Last active August 13, 2023 02:28
Nighthawk M1 AT commands

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
kind: CustomResourceDefinition
apiVersion: apiextensions.k8s.io/v1
metadata:
name: subscriptions.operators.coreos.com
uid: cd1bffb3-9469-4e6d-8ab6-5f8aa892244e
resourceVersion: '122992397'
generation: 2
creationTimestamp: '2022-02-21T16:26:32Z'
annotations:
controller-gen.kubebuilder.io/version: v0.6.2
Pipeline:
Triggered via:
- change base image
- gitlab changes
Steps:
- Linter
- Build docker image
- Tests
Umgebungen
dev:
/24 cidr - 255 IPs
build server
docker image analysis
vault dev
terraform beschreibt dev, staging und prod
staging:

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

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
kubectl get rs --all-namespaces | awk {' if ($3 == 0 && $4 == 0) system("kubectl delete rs "$2" --namespace="$1)'}
@wombat
wombat / CameraConfigurationManager.java
Last active January 4, 2016 11:19
Initialize ZXing for Google Glass
...
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
@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");
}