Skip to content

Instantly share code, notes, and snippets.

View gWOLF3's full-sized avatar
🌊

glenn wolfe gWOLF3

🌊
View GitHub Profile
@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: number@txt.att.net (SMS), number@mms.att.net (MMS)
T-Mobile: number@tmomail.net (SMS & MMS)
Verizon: number@vtext.com (SMS), number@vzwpix.com (MMS)
Sprint: number@messaging.sprintpcs.com (SMS), number@pm.sprint.com (MMS)
Xfinity Mobile: number@vtext.com (SMS), number@mypixmessages.com (MMS)
Virgin Mobile: number@vmobl.com (SMS), number@vmpix.com (MMS)
Tracfone: number@mmst5.tracfone.com (MMS)
Simple Mobile: number@smtext.com (SMS)
Mint Mobile: number@mailmymobile.net (SMS)
Red Pocket: number@vtext.com (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: wolfe.t.glenn@gmail.com
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:
@gWOLF3
gWOLF3 / UnixPipeActivity.java
Created February 24, 2019 01:11 — forked from rbochet/UnixPipeActivity.java
How to write in pipes for Android
package fr.stackr.android.upt;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
@gWOLF3
gWOLF3 / stuns
Created December 5, 2018 17:28 — forked from zziuni/stuns
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net