Skip to content

Instantly share code, notes, and snippets.

View skurhse's full-sized avatar

Skurhse Rage ∅ skurhse

View GitHub Profile
@skurhse
skurhse / test.bash
Created March 15, 2023 01:11
Reset line endings in the working directory when *enabling* core.autocrlf
#!/usr/bin/env bash
set -x
git --version
git config --global core.autocrlf false
git config --global core.eol crlf
cd /tmp
rm -rf lua-filters/
git clone https://github.com/pandoc/lua-filters
@skurhse
skurhse / main.go
Created April 20, 2023 05:37
Monty Hall Problem
package main
import (
"bufio"
"bytes"
"fmt"
"math/rand"
"os"
"reflect"
"strconv"
@skurhse
skurhse / toolchain.md
Last active May 1, 2023 02:51
Xenia Discord Bot Platform Draft Toolchain
# Set the subscription you want to work with
az account set --subscription <subscription_name>
# Provide the name of your resource group and private endpoint network interface
resource_group="<resource_group_name>"
network_interface="<network_interface_name>"
# Get the private endpoints attached to the specified network interface
private_endpoints=$(az network private-endpoint list --resource-group $resource_group --query "[?networkInterfaces[?id=='$network_interface']].{Id:id}" --output tsv)