Skip to content

Instantly share code, notes, and snippets.

View Aergonus's full-sized avatar
🥂
/

Aergonus

🥂
/
View GitHub Profile
@Aergonus
Aergonus / go-url-interceptor.js
Last active February 20, 2025 17:48
Chrome Extension that implements http://go/link URL interceptor
const BASE_URL = "https://internal.redirectservice.com/golinks";
window.RedirectRulesConfig = [
{ path: "go", host: BASE_URL },
{ path: "docs", host: `${BASE_URL}/docs-` }, // establish a standard early
{ path: "pd", host: `${BASE_URL}/pd-` }, // pagerduty links for teams/services
{ path: "ldap", host: `https://internal.redirectservice.com/ldap/?q=` },
{ path: "people", host: `https://internal.redirectservice.com/people/` },
];
const MANIFEST_JSON = {
@Aergonus
Aergonus / cleanup-cert-manager-secrets.sh
Last active December 17, 2024 20:43 — forked from lisawolderiksen/secrets_without_certificates.sh
Script to detect "orphaned" TLS secrets when Cert manager (cainjector) complains about "unable to fetch certificate that owns the secret", because deleting a Certificate will not (default) delete the Secret. (Ref. https://cert-manager.io/docs/usage/certificate/#cleaning-up-secrets-when-certificates-are-deleted)
#!/bin/bash
# inspired by https://gist.github.com/lisawolderiksen/8c6026ef55f04e4f5d6a288b5e53214b
# Apache 2.0 License
usage() {
cat << EOF
This script detects TLS secrets which refer to certificates that don't exist (anymore).
This is the case when error "unable to fetch certificate that owns the secret" occurs in cert-manager (cainjector) logs.
@Aergonus
Aergonus / beep.sh
Created January 20, 2017 00:29
MAC Auto Talking Shell Script
while true; do for voice in `say -v '?' | awk '{print $1}'`; do tput bel; say -v $voice "Beep"; printf "\a"; done ; done
@Aergonus
Aergonus / concatCSV.ps1
Last active April 8, 2016 16:52
Powershell CSV Concatenator
#Simple executeable solution for CSVs (Does not include header)
#foreach ($file in Get-ChildItem -path ".\" -filter "*.csv") {gc $file | select -Skip 1 | UNICORNS.csv}
$path = Read-Host 'Enter the path to the folder containing the CSV files (Ex: ".\" is the current directory)'
if(!$path) {$path = ".\"}
$match = Read-Host 'Enter REGEX Match filter (Ex: *.csv)'
if(!$match) {$match = "*.csv"}
$name = Read-Host 'Enter Name of Outputfile (I would suggest naming it UNICORNS.csv)'
# Get all the files before creating output
@Aergonus
Aergonus / sublime-text-3.sh
Created August 30, 2015 19:37
Gist to install Sublime Text 3 on RHEL 6 + (Used for Centos 7)
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/opt/sublime_text_3/sublime_text
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"