alpine version 3.17.4 cloud-init version 22.4
Download alpine-virt-3.17.4-x86_64.iso Uploda to PVE Create a VM
--- | |
- name: Install Gostatsd and Carbon Relay NG | |
hosts: all | |
become: true | |
handlers: | |
- name: Restart Carbon Relay NG | |
ansible.builtin.systemd: | |
name: carbon-relay-ng | |
tasks: | |
- name: Install dependencies |
#!/usr/bin/env bash | |
# | |
# Author: blockloop | |
# | |
# Purpose: browse top hacker news articles from the command line | |
# | |
# Requirements: | |
# jq fzf curl | |
set -ueo pipefail |
// ==UserScript== | |
// @name Grafana Preview Alerts Table | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Grow the size of the Grafana Alerts Preview table so that it is legible. | |
// @author blockloop | |
// @match https://*.grafana.net/alerting/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=grafana.net | |
// @grant none | |
// ==/UserScript== |
#!/bin/bash | |
# | |
# see: https://direnv.net/ | |
# see: https://github.com/syndbg/goenv | |
# | |
# Place this in your go project root as .envrc | |
GOMOD_VERSION=$(grep 'go 1\.' go.mod | cut -d' ' -f2) | |
if [[ $GOMOD_VERSION =~ ^1\.[0-9]+$ ]]; then |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img
) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config
to:
version: "3" | |
networks: | |
default: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 172.16.57.0/24 | |
services: |
#!/bin/sh | |
unset TERMCAP | |
re_env=$(env | cut -d= -f1 | tr \\n '|') | |
re_dot_smthg='\.[^ ]+' | |
re_autovars='[%*+<?^@][^ ]' | |
re_misc='GNUMAKEFLAGS|MAKE([^ ]+)?|MFLAGS|SUFFIXES|-\*-command-variables-\*-' | |
make -rR -pk -q "$@" \ | |
| grep -Ev "^(${re_env}#|$re_dot_smthg|$re_autovars|$re_misc) " \ |
user nginx; | |
worker_processes 1; | |
error_log /dev/stderr warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
#!/usr/bin/env bash | |
set -o pipefail | |
# set -x | |
set -e | |
GHUSER=blockloop | |
GITEA_TOKEN=CHANGEME | |
GITEA_HOST=https://??? | |
REPOS=$(curl -SsL "https://api.github.com/users/$GHUSER/repos?per_page=20&&page=2sort=updated&direction=desc&type=owner" | \ | |
jq -r '.[] | [.name, .description, .clone_url] | join("|")') |