Skip to content

Instantly share code, notes, and snippets.

@kiliandangendorf
kiliandangendorf / generate_new_certs_menu.sh
Created September 28, 2023 08:53
Helper Script Creating and Signing Self-Signed TLS Certificates
#!/bin/bash
#
# This script should help you creating and signing self-signed TLS certificates.
#
# Edit values for you needs in $CN, $DURATION_IN_DAYS_<type> and $SUBJECT_BASE only!
#
# KD 2023-09-28
#
# Inspired by:
# - https://gist.github.com/suru-dissanaike/4344f572b14c108fc3312fc4fcc3d138
@kiliandangendorf
kiliandangendorf / lpr_label_print_brother_ql_500.md
Last active May 11, 2021 12:41
Print Internetmarke on 62mm (2-3/7") endless label roll on a Brother QL-500 from terminal.

Print Internetmarke on 62mm (2-3/7") endless label roll on a Brother QL-500 from terminal.

lpr -P Brother_QL_500 -o media=Custom.62x37mm TestPrint.pdf

List printers to find unique name:

lpstat -p -d
@kiliandangendorf
kiliandangendorf / ssh_hsh_proxy_jump.md
Created May 3, 2021 11:23
How to connect directly to a server only available within the HsH-network.

ssh HsH ProxyJump

This is how you connect to a server only available within the HsH-network using a ssh proxy you can reach from outside passwordless and in one step.

The long way to use ssh with a following password prompt:

ssh <hsh-user>@ssh.inform.hs-hannover.de
@kiliandangendorf
kiliandangendorf / qt_opengl_making_it_on_macOS.md
Created March 31, 2021 11:32
How I got VC project running using QT and OpenGL on macOS.

QT and OpenGL: Making it on macOS (VC-1)

How I got VC project running using QT and OpenGL on macOS.

Start from zero:

  • Install QT5:
     brew install qt@5
    
    If you don't have homebrew yet, it's high time.
#!/bin/bash
# This script opens a SOCKS ssh-tunnel and a Firefox window in another profile than default
# Now you can browse from the remote network
# ssh-tunnel will be closed after closing Firefox
# 2020-03-16
echo "open ssh-tunnel"
# -D for socks
# -q quit mode
# -C compression