Skip to content

Instantly share code, notes, and snippets.

View bliotti's full-sized avatar
public key cryptography is pretty neat 🔑 🔐

Brian Liotti bliotti

public key cryptography is pretty neat 🔑 🔐
View GitHub Profile
#!/bin/bash
if [ $# -lt 1 ]
then
cat << HELP
dockertags -- list all tags for a Docker image on a remote registry.
EXAMPLE:
- list all tags for ubuntu:
@bliotti
bliotti / monitor-pi.sh
Created June 7, 2021 21:11
Monitors Ras Pi temp.
#!/bin/bash
Counter=14
DisplayHeader="Time Temp CPU Core Health Vcore PMIC"
while true ; do
let ++Counter
if [ ${Counter} -eq 15 ]; then
echo -e "${DisplayHeader}"
Counter=0
fi
Health=$(perl -e "printf \"%19b\n\", $(vcgencmd get_throttled | cut -f2 -d=)")
@bliotti
bliotti / cluster-issuer.yaml
Last active May 15, 2021 03:00 — forked from lvnilesh/cluster-issuer.yaml
DNS acme cluster-issuer.yaml - third time is a charm
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-staging
namespace: cert-manager
spec:
acme:
email: brian@liotti.io
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
# This mounts the nfs volume claim into /mnt and continuously
# overwrites /mnt/index.html with the time and hostname of the pod.
apiVersion: apps/v1
kind: Deployment
metadata:
name: test
spec:
replicas: 1
selector:
apiVersion: apps/v1
kind: Deployment
metadata:
name: nfs-server
spec:
replicas: 1
selector:
matchLabels:
role: nfs-server
template:
@bliotti
bliotti / gist:223bfcb99602f4c22ef36421813fb973
Created July 28, 2020 01:47
I'm verifying ownership of bliotti@protonmail.com at EarnCarrot.
I'm verifying ownership of bliotti@protonmail.com at EarnCarrot.
@bliotti
bliotti / gist:bedbe8ebed9352f694a98ac8e2da774b
Created July 24, 2020 01:50
I'm verifying ownership of bliotti@protonmail.com at EarnCarrot.
I'm verifying ownership of bliotti@protonmail.com at EarnCarrot.
@bliotti
bliotti / mongodb_cheat_sheet.md
Created November 18, 2019 05:46 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

Install MongoDB and Python wrapper (Ubuntu Linux)

sudo apt-get install -y mongodb-org
pip install pymongo
pip3 install pymongo

Start MongoDB daemon

@bliotti
bliotti / mongodb.md
Created November 18, 2019 05:35 — forked from artieziff/mongodb.md
MongoDb & Python Essentials

##MONGODB & PYTHON

###Ubuntu Install

sudo apt-get install mongodb
pip install pymongo

Table - Collection
Column - Property
Row - Document