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 December 4, 2025 11:23
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";
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active January 30, 2026 07:30
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 January 15, 2026 08:43
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 January 26, 2026 02:06
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

The Laracasts PHPStorm theme - modified.

This is a slightly modified version of the great Laracasts PHPStorm theme. I've added some styles for Verions Control (add, modified, deleted line...) and fixed some missing things like warnings.

Download

image

Mac: Add to ~/Library/Preferences/WebIde80/colors