Skip to content

Instantly share code, notes, and snippets.

View g4s's full-sized avatar

Gregor Segner g4s

  • Ferchau Engineering // Bundesdruckerei
  • Ludwigshafen am Rhein
  • X @g4s3
View GitHub Profile
@g4s
g4s / update-init.sh
Last active June 7, 2023 12:52
Simple script for initalize an system update on *nix machines.
#! /bin/bash
#
# @brief: simple script for initiate unattended update process
# @author: Gregor A. Segner
# @license: BSD-3-Clause https://opensource.org/license/bsd-3-clause/
# @copyright: 2023 - Gregor A. Segner
# @url: https://gist.github.com/g4s/556a61db427e1a6592934288728270dd
#
# last update: 2023-06-06
#
@g4s
g4s / nginx.conf
Last active March 5, 2021 12:26
nginx mit PHP auf example.com und als Reverse Proxy für Matrix auf matrix.example.com
# nginx Konfiguration für eine PHP Anwendung unter example.com, sowie als
# Reverse Proxy für einen matrix server unter matrix.example.com
#
# vgl hierzu auch die nginx Dokumentation, sowie ein Konfigurationsbeispiel
# unter: https://www.nginx.com/resources/wiki/start/topics/examples/full/
server {
# Konfiguration des Reverse Proxys für matrix mit der subdomain "matrix.example.com"
listen 80; # lausche auf Port 80 (HTTP) / IPv4
listen [::]:80; # lausche auf Port 80 (HTTP) / IPv6

Keybase proof

I hereby claim:

  • I am g4s on github.
  • I am g4s3 (https://keybase.io/g4s3) on keybase.
  • I have a public key ASBpF2ZTfGxPUZmTi3tuRzVTRiDcEq-pRHwWHasswoX-bAo

To claim this, I am signing this object:

@g4s
g4s / ea-smartnotebook-license.sh
Created October 5, 2016 09:34
JAMF Casper JSS Extension Attribute: SmartNotebook License state & SmartNotebook version
#! /bin/bash
SPU="Applications/SMART Technologies/SMART Tools/SMART Product Update.app/Contents/MacOS/SMART Product Update"
$SPU --query 2> /dev/null | egrep -i \<SMART Notebook\>' | cut -d ',' -f6