Skip to content

Instantly share code, notes, and snippets.

@scheibling
scheibling / ProcessExport.json
Created September 16, 2024 09:49
Frends Process Example Bank Integration
{
"LinkedTasks": {
"2eb788eb-7827-46b4-aced-f7d17c32c91a": [
{
"Id": "1c83115e-956a-4fe7-b011-5fb3e1fa8c79",
"PackageId": "Frends.HIT.RemoteFS",
"PackageVersion": "1.2.5",
"Name": "Frends.HIT.RemoteFS.Main.ReadFile(ReadParams, ServerParams)",
"FrameworkIdentifier": ".NETCoreApp"
},
@scheibling
scheibling / configure.sh
Last active September 12, 2024 09:25
acme.sh and haproxy
# Install haproxy
apt-get -y update && apt-get -y install haproxy
# Add a user for acme.sh
sudo adduser \
--system \
--disabled-password \
--disabled-login \
--home /var/lib/acme \
--quiet \
@scheibling
scheibling / README.md
Created March 12, 2024 20:51
In-Cluster Authenticated Packagist

In-cluster Authenticated Packagist

To avoid having to specify COMPOSER_AUTH in all build/deployment containers, you CAN (not saying you should) set up a proxy with ingress-nginx and alias services to be able to pull packages without authentication from your cluster

Disclaimer

THIS IS NOT SAFE, OBVIOUSLY

Usage

You need to disable SSL in composer, then you can use the repo to pull content from your private packagist feed

@scheibling
scheibling / GetOutlookFolders.ps1
Created July 6, 2023 17:55
Get Outlook Folder Types
$Outlook = New-Object -comobject Outlook.Application
$ns = $Outlook.GetNameSpace("MAPI")
$PropName = "http://schemas.microsoft.com/mapi/proptag/0x3613001E"
$oFolder = ($Outlook.ActiveExplorer()).CurrentFolder
function ListFolders
{
param($Folders, $Indent)
ForEach($fld in $Folders) {
@scheibling
scheibling / gitlab-ci.yml
Created June 7, 2023 21:54
Gitlab Composer Artifacts
variables:
BUILD_FILE: "build.zip"
default:
tags:
- kubernetes
before_script:
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- mkdir -p /tmp/build-branch
@scheibling
scheibling / gitpod.yaml
Created November 11, 2022 14:23
Gitpod Daemonset
---
# apps/v1/DaemonSet registry-facade
apiVersion: apps/v1
kind: DaemonSet
metadata:
creationTimestamp: null
labels:
app: gitpod
component: registry-facade
name: registry-facade
@scheibling
scheibling / replicator.php
Created September 7, 2022 10:11
Local VSIX Caching Connector (Visual Studio/VS Code Extension Cache)
/*
* Private Nuget feed package replicator for VSCode Marketplace
*
* This will create an atom.xml package feed for VSIX packages (VSCode Extensions, etc.) hosted on Visual Studio Marketplace.
* Add the package identifiers to the "$packages" array and point ProGet or any other private feed provider towards the PHP file.
* You can also point VSCode directly to this file to only make the packages in this list available to the program.
*/
<?php
@scheibling
scheibling / README.md
Last active July 22, 2022 08:12
GitPod Installation (Install specific version, only listen on specific host)

GitPod Installation Snippets

If you want to customize your install of GitPod, there are some snippets below that might help you to customize the installation to fit your environment.

Contents

  • Install specific GitPod Version
  • Configure GitPod to only listen externally on single cluster node (or multiple) (but run workspaces on all nodes)

Preparations

The below scripts assume you are using the GitPod Installer method of installing. You can find more information on this link, but in short the steps are the following:

@scheibling
scheibling / sshproxy.py
Created July 19, 2022 15:04
Python3 Netcat(ish) OpenSSH ProxyCommand Forwarder
#!/usr/bin/python3
###################################################################################
## Python3 pseudo-netcat implementation for OpenSSH ProxyCommand
##
## Use cases:
## - Enables you to do additional checks, authentication, etc. via the normal SSH command
## - Can be modified to send traffic via HTTP(s) proxy, websockets or other protocols (e.g. https://github.com/Nike-Inc/piggyback)
## - Can be used to inspect (unencrypted) parts of OpenSSH traffic
##
## Usage:
@scheibling
scheibling / smtp2cloudflare.py
Last active July 7, 2022 05:18
SMTP2GO/Cloudflare Auto-configuration
"""
Python snippet to configure a domain with SMTP2GO (https://smtp2go.com) and Cloudflare automatically.
Usage:
python3 smtp2cloudflare.py example.com
Requirements:
- Python 3.6+
- pip3 install requests cloudflare cprint
Configuration: