Skip to content

Instantly share code, notes, and snippets.

View etenzy's full-sized avatar

Michael Rödel etenzy

View GitHub Profile
@rsmitty
rsmitty / vsphere.sh
Created January 6, 2022 18:12
A little script to automate creation of talos clusters in vsphere
#!/bin/bash
set -e
## The following commented environment variables should be set
## before running this script
# export GOVC_USERNAME='[email protected]'
# export GOVC_PASSWORD='xxx'
# export GOVC_INSECURE=true
@Matheus-Garbelini
Matheus-Garbelini / esp8266_wpa2_enterprise_example.ino
Last active July 1, 2024 17:33
ESP8266 Wi-Fi WPA2 Enterprise example
#include <ESP8266WiFi.h>
extern "C" {
#include "user_interface.h"
#include "wpa2_enterprise.h"
#include "c_types.h"
}
// SSID to connect to
char ssid[] = "TEST_KRA";
@erikaheidi
erikaheidi / doin.php
Created May 15, 2019 09:30
Dynamically generates an Ansible inventory based on your DigitalOcean droplets
<?php
####################################
# Dynamic Inventory Build Script
# usage: php doin.php > inventory
####################################
$DO_API_TOKEN = 'YOUR_DIGITALOCEAN_API_TOKEN';
$GROUP_NAME = 'servers';
$endpoint = "https://api.digitalocean.com/v2/droplets";
@pscheid92
pscheid92 / snippet.tex
Created January 24, 2019 10:06
Skill Grading Dots code snippet for LaTeX
%
% As found on StackOverflow:
% https://tex.stackexchange.com/questions/238898/in-line-graphics-in-text-to-represent-a-loading-bar-for-language-skills-in-a-cv
%
\documentclass{report}
\usepackage{tikz}
\definecolor{frontColor}{rgb}{0.22,0.45,0.70} % light blue
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 12, 2025 15:45
Conventional Commits Cheatsheet
function horizon() {
dir=${PWD}
case "$1" in
"start")
if [[ $(ps aux | grep "php $dir/artisan horizon" | grep -v grep | awk '{print $2}') ]]; then
echo "horizon is already running"
else
nohup php $dir/artisan horizon </dev/null >/dev/null 2>&1 &
echo "horizon started with pid: $(ps aux | grep "php $dir/artisan horizon" | grep -v grep | awk '{print $2}')"
@mholt
mholt / macapp.go
Last active July 1, 2025 04:08
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@Mikulas
Mikulas / config.yaml
Created August 18, 2017 14:19
frp kubernetes config
apiVersion: v1
kind: Namespace
metadata:
name: frp
---
apiVersion: v1
kind: LimitRange
metadata:
@0xjac
0xjac / private_fork.md
Last active July 12, 2025 17:12
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@JeffreyWay
JeffreyWay / PjaxMiddleware.php
Last active November 6, 2024 14:26
Laravel middleware for working with pjax.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\DomCrawler\Crawler;
class PjaxMiddleware