Skip to content

Instantly share code, notes, and snippets.

View laszlo462's full-sized avatar

Steve Szabo laszlo462

  • Philips
  • United States
View GitHub Profile
@laszlo462
laszlo462 / ombi.whatever.com.conf
Last active May 24, 2020 14:31
Ombi reverse proxy
server {
listen 443 ssl http2;
server_name ombi.whatever.com;
root /config/www;
# SSL
include /config/nginx/ssl.conf;
# reverse proxy
@laszlo462
laszlo462 / SLCM_uninstall.py
Created March 8, 2019 17:53
Scripted uninstall of the Citrix SecureLink Connection Manager, which always causes issues when connecting to a customer using a different version.
#! python3
# This script is intended to be run as a scheduled task to remove the Citrix SecureLink Connection Manager if currently present
# Version differences between accounts do not play well and require uninstallation and reinstallation for each customer connection
import os
import subprocess
def find_securelink(name, path):
@laszlo462
laszlo462 / regexCheatsheet.js
Created January 18, 2019 18:13 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"