scenarios: TMPDIR=new/path make and make TMPDIR=new/path
SHELL := env TMPDIR=$(TMPDIR) $(SHELL)
TMPDIR ?= "/tmp"
all:
@echo $(TMPDIR)
| #!/bin/bash | |
| # List the blobs in an Azure storage container. | |
| echo "usage: ${0##*/} <container-name> [blob-name]" | |
| storage_account="$AZURE_STORAGE_ACCOUNT" | |
| container_name="$1" | |
| access_key="$AZURE_STORAGE_KEY" |
| # for hdd | |
| device=sata4; sudo sh -c "echo 1 > /sys/block/${device}/device/delete" | |
| # for usb | |
| udisksctl power-off -b /dev/sdd |
| for REPO in $(gcloud alpha container images list --repository=gcr.io/volterraio --sort-by="~TIMESTAMP"|grep -Ev '^NAME'); do \ | |
| gcloud container images list-tags $REPO --format="table[no-heading](DIGEST,TIMESTAMP)"|\ | |
| grep 2024-08 | xargs -I% echo $(basename $REPO) %; done |\ | |
| clipivot count --rows=0 --val=3 |sort -g -t, -k2 -r |head -n 50 |
| ❯ sudo sntp -sS time.apple.com | |
| Password: | |
| +9763418.309211 +/- 0.019967 time.apple.com 17.253.14.253 |
| #!/bin/bash | |
| checkusage() { | |
| [[ $# -lt 2 ]] && err_exit 'Usage: reencrypt.sh KEY_ID FILE...' | |
| } | |
| err() { echo -e "$@" >&2; } | |
| err_exit() { | |
| err "$@" |
| #clone the repo | |
| git clone http://git.ipxe.org/ipxe.git | |
| cd ipxe/src | |
| cat >ubuntu-amd64-installer.ipxe <<EOF | |
| #!ipxe | |
| dhcp | |
| echo Starting Ubuntu x64 installer for ${hostname} | |
| set base-url http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64 | |
| kernel ${base-url}/linux |
scenarios: TMPDIR=new/path make and make TMPDIR=new/path
SHELL := env TMPDIR=$(TMPDIR) $(SHELL)
TMPDIR ?= "/tmp"
all:
@echo $(TMPDIR)
Getting started guide to the unix password manager pass. Manage gpg encripted passwords (files) in
a standar directory-like hierarchy. Such files can be copied or stored in a git repository.
Ubuntu/Debian:
$ sudo apt-get install pass
| tar cvJ /etc/vpm/ | age -r $(curl -qsSL https://f.apealive.net/pub/$USER.age.pub) | croc send | |
| Receiving side | |
| # cat croc-stdin-2310548854 | age -d -i <(pass show age-$USER-public) | tar xvJ |
| ``` | |
| {__name__=~".+",site=~"gc1-iad-01",pod=~"(keycloak-s1-).*"} | |
| ``` |