Skip to content

Instantly share code, notes, and snippets.

View PatrickHuetter's full-sized avatar

Patrick Hütter PatrickHuetter

View GitHub Profile
@PatrickHuetter
PatrickHuetter / chrome-1920x1080
Created December 9, 2015 13:21
Bash script to start chrome on debian on a virtual display (via Xvfb)
#!/bin/bash
#
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# by patrick
export DISPLAY=:1920
# Let the wrapped binary know that it has been run through the wrapper.
@PatrickHuetter
PatrickHuetter / BotBuster.md
Created March 10, 2016 11:48 — forked from hsiboy/BotBuster.md
Bot-Buster™ - Tracks nefarious activity on website, and manages accordingly.

#Bot-Buster™

Tracks nefarious activity on website, and manages accordingly.

##It's probably a bot.

If the requesting entity:

  • declares its user-agent as being wget, curl, webcopier etc - it's probably a bot.
  • requests details -> details -> details -> details ad nauseum - it's probably a bot.
  • requests the html, but not .css, .js or site furniture - it's probably a bot.
@PatrickHuetter
PatrickHuetter / rancher-argocd.md
Created October 4, 2023 12:11 — forked from janeczku/rancher-argocd.md
How to register Rancher managed Kubernetes clusters in Argo CD

How to register Rancher managed Kubernetes clusters in Argo CD

Registering Rancher managed clusters in Argo CD doesn't work out of the box unless the Authorized Cluster Endpoint is used. Many users will prefer an integration of Argo CD via the central Rancher authentication proxy (which shares the network endpoint of the Rancher API/GUI). So let's find out why registering clusters via Rancher auth proxy fails and how to make it work.

Hint: If you are just looking for the solution scroll to the bottom of this page.

Why do i get an error when running argocd cluster add?

Service Account tokens and the Rancher authentication proxy

@PatrickHuetter
PatrickHuetter / rke2-commands.md
Created January 30, 2024 16:16 — forked from superseb/rke2-commands.md
RKE2 commands

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@PatrickHuetter
PatrickHuetter / MayanToPaperlessNGXMigration.java
Created December 19, 2024 18:46
A small java program to migrate Mayan-EDMS to paperless-ngx
/**
* This is a quick and dirty script for migrating documents from Mayan EDMS to Paperless-NGX.
* It was written rapidly, without any adherence to standards or best practices.
* There is no guarantee of correctness or completeness. Use it entirely at your own risk.
*
* DISCLAIMER:
* - No warranty or support is provided.
* - The code may be unstable, incomplete, or incorrect.
* - You are fully responsible for using it, and any damage or loss incurred.
*
@PatrickHuetter
PatrickHuetter / nanokvm-tips-tricks-hacks.md
Last active February 6, 2025 09:00
nanoKVM tips & tricks / hacks