Skip to content

Instantly share code, notes, and snippets.

View gWOLF3's full-sized avatar
๐ŸŒŠ

glenn wolfe gWOLF3

๐ŸŒŠ
View GitHub Profile
FAIL FAST
----------------------------
ok, so lets do one thing. i know its well intentioned, but i want you to remove ALL "failsafes" from the code we just did. i want the code to HARD error if something isn't set properly.
bandaid fixes create ghost problems, and id rather jsut know someting is wrong.
for example we should never use the "||" to set a default size if it doesnt exist. we should error and crash if it doesnt exist as expected.
@gWOLF3
gWOLF3 / gist:8a273423ec2b044de37f132f14500e79
Created March 9, 2025 17:31
scat or "super cat" ; for providing LLMs folder file context
scat() {
local dir="${1:-.}"
find "$dir" \
-type d -exec echo -e "Directory: {}\n" \; -o \
-type f \
\( -name "*.js" -o -name "*.json" -o -name "*.html" -o -name "*.css" -o -name "*.md" -o -name "*.txt" \) \
-exec echo -e "\n=== File: {} ===\n" \; \
-exec cat {} \; \
-exec echo -e "\n--- End of File ---\n" \;
}
@gWOLF3
gWOLF3 / docker.md
Created October 21, 2021 19:31 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android ๐Ÿ‹๐Ÿ“ฑ

Edit ๐ŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@gWOLF3
gWOLF3 / create-release.sh
Last active November 26, 2020 20:39
create release from command line
#!/bin/bash
# script credit: github user @dodotree
version=$1
text=$2
branch=$(git rev-parse --abbrev-ref HEAD)
repo_full_name=$(git config --get remote.origin.url | sed 's/.*:\/\/github.com\///;s/.git$//')
token=$(git config --global github.token)
instead of copying in .npmrc template from repo, just create it in the Dockerfile to simplify things...
///
ARG NPM_TOKEN
RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc && \
npm i && \
rm -f .npmrc
///
@gWOLF3
gWOLF3 / email2text
Created May 20, 2020 04:34
list of all cellular service provider email endpoints for SMS and MMS
AT&T: [email protected] (SMS), [email protected] (MMS)
T-Mobile: [email protected] (SMS & MMS)
Verizon: [email protected] (SMS), [email protected] (MMS)
Sprint: [email protected] (SMS), [email protected] (MMS)
Xfinity Mobile: [email protected] (SMS), [email protected] (MMS)
Virgin Mobile: [email protected] (SMS), [email protected] (MMS)
Tracfone: [email protected] (MMS)
Simple Mobile: [email protected] (SMS)
Mint Mobile: [email protected] (SMS)
Red Pocket: [email protected] (SMS)
@gWOLF3
gWOLF3 / certbot-ez-dns
Created January 29, 2020 03:26
IMO easiest https certificate generation with certbot command line, using TXT record
1. certbot -d <domain> --manual --preferred-challenges dns certonly
2. add TXT record
3. check with `dig <my-domain>` TXT
4. wait. once you see the record, continue.
@gWOLF3
gWOLF3 / config.md
Created October 11, 2019 19:40 — forked from sykesm/config.md
Config Discussion

Fabric Configuration

Fabric configuration is currently implemented around a configuration library called [viper][viper]. Viper reads configuration from files, environment variables, and flags, and exposes an API that uses dot qualified keys to reference the configuration values (think System Properties on steroids).

When configuration is read from files, the segments of the configuration key are used to walk config file stanzas to the data. Values read from the configuration file can be overridden by setting an environment variable that

@gWOLF3
gWOLF3 / refreash_helm.sh
Created May 18, 2019 01:59 — forked from naotookuda/refreash_helm.sh
How to refresh "helm" cache ?
# !/bin/bash
# Remove all files in these directories.
rm -rf ~/.helm/cache/archive/*
rm -rf ~/.helm/repository/cache/*
# Refreash repository configurations
helm repo update
#That's all.
#If you "helm search" next time, you can find newest stable charts in repository.
@gWOLF3
gWOLF3 / RHEL7-Kubernetes-Setup-Notes
Created April 30, 2019 21:42
RHEL 7 Kubernetes Server Bootstrap Notes
# Created By: glenn wolfe
# Email: [email protected]
This gist pertains to some idiosyncracies of bootrapping your RHEL 7 server instance with a single or multi-cluster kubernetes network.
The goal here was to simply aggregate the documentations resources you will need (including debugging) that will be required to get started.
RHEL 7 - kubernetes startup
Installing docker: