Skip to content

Instantly share code, notes, and snippets.

View connectthefuture's full-sized avatar

justthefracts connectthefuture

  • Midwest usa
View GitHub Profile
@caruccio
caruccio / Kubernetes-Stuck-Resources.md
Last active February 11, 2025 22:45
How to identify and remove resources stuck in Terminating state

Namespaces

List all resources within a namespace

NS=some-namespace

kubectl api-resources --verbs=list --namespaced -o name \
  | xargs -n 1 kubectl get --show-kind --ignore-not-found -n $NS
#!/bin/bash
if [ -z "$KRSYNC_STARTED" ]; then
export KRSYNC_STARTED=true
exec rsync --blocking-io --rsh "$0" $@
fi
# Running as --rsh
namespace=''
pod=$1
cards:
- artwork: cover
entity: media_player.justin_s_echo_show
hide_power: true
tts:
entity_id: media_player.justin_s_echo_show
platform: alexa
type: 'custom:mini-media-player'
- cards:
- entity: media_player.justin_s_echo_show
[user]
name = Florian Roeser
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[web]
browser = google-chrome
[instaweb]
@deoxykev
deoxykev / gist-update-ddns.sh
Created February 2, 2020 01:40
DDNS client for namecheap with systemd init script
#!/bin/bash
# update namecheap ddns from unraid
# 2020-01-06
# systemd init script:
# [Unit]
# Description=Updates internal DDNS for meowth.kanto.blue
# After=network.target
#
@lordmorgul
lordmorgul / com.userdomain.mountpoint.plist
Last active November 19, 2020 04:38
OSX mount user smb or nfs mountpoint when wifi present, avoid OSX Catalina automount repeated mountpoints issues
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Enabled</key>
<true/>
<key>Label</key>
<string>com.userdomain.mountpoint</string>
<key>ProgramArguments</key>
<array>
#!/bin/sh
mkdir pdfs
cd pdfs
curl -LO https://developer.salesforce.com/resource/pdfs/Lightning_Components_Cheatsheet.pdf
curl -LO https://resources.docs.salesforce.com/sfdc/pdf/actions_impl_guide.pdf
curl -LO https://resources.docs.salesforce.com/sfdc/pdf/analytics.pdf
curl -LO https://resources.docs.salesforce.com/sfdc/pdf/apex_ajax.pdf
curl -LO https://resources.docs.salesforce.com/sfdc/pdf/apex_api.pdf
@cliss
cliss / Brewfile
Last active January 23, 2025 11:25
Casey Liss's Brewfile, as of 31 October 2021
cask_args appdir: "/Applications"
tap "homebrew/cask-fonts"
brew "mas"
#### LAPTOPS ####
#cask "tripmode"
#### LAPTOPS ####
mas "Boop", id: 1518425043
@brakkum
brakkum / recursive_image_duplication.py
Last active November 12, 2019 06:33
A Python script that is supplied a directory, and recursively goes through said directory and compresses all photos/videos it finds of types specified in file.
from moviepy.editor import VideoFileClip, vfx
from PIL import Image
import imageio
import shutil
import imghdr
import numpy
import rawpy
import time
import sys
import os
@ednisley
ednisley / GRBL - as-shipped config.txt
Created August 20, 2019 19:20
CNC 3018-Pro GRBL configuration files
$0=10
$1=25
$2=0
$3=5
$4=0
$5=0
$6=0
$10=1
$11=0.010
$12=0.002