This script saves GitHub issues in TSV format
The script has two software dependancies:
- GitHub CLI for querying GitHub API
jq
for transforming the output of the above to TSV format
This script saves GitHub issues in TSV format
The script has two software dependancies:
jq
for transforming the output of the above to TSV format# Quick-and-dirty how-to for wrapping salt traffic in spiped. Critiques welcome. You'll probably need to adjust slightly if you aren't using FreeBSD. | |
# There's a great write-up with pictures here: https://hackacad.net/security/2020/05/06/how-to-secure-you-salstack-salt-master-using-spiped.html | |
## Master | |
# /usr/local/etc/salt/master needs to be bound to localhost, and it's better to be explicit than implicit with your ports. | |
interface: 127.0.0.1 | |
publish_port: 4505 | |
ret_port: 4506 |
FROM golang:1-alpine as golang | |
RUN apk --no-cache add git zip tzdata ca-certificates | |
# avoid go path, use go mod | |
WORKDIR /app | |
COPY . . | |
RUN CGO_ENABLED=0 go build -ldflags "-s -w -extldflags "-static"" ./cmd/appnamehere | |
WORKDIR /usr/share/zoneinfo | |
# -0 means no compression. Needed because go's | |
# tz loader doesn't handle compressed data. | |
RUN zip -r -0 /zoneinfo.zip . |
package main | |
import ( | |
"firebase.google.com/go" | |
"cloud.google.com/go/firestore" | |
"context" | |
"log" | |
"fmt" | |
) |
http { | |
client_max_body_size 20M; | |
upstream influxdb { | |
server server1:8086; | |
server server2:8086; | |
} | |
upstream relay { | |
server server1:9096; | |
server server2:9096; |
This tutorial will walk you through the steps needed to get root
SSH
access on an Engenius EAP600 dual-band WiFi access point. SSH doesn't
come enabled out of the box on these things, so if you want to SSH into the
device (which is running an old version of OpenWRT), keep reading.
#!/bin/bash | |
# | |
# Scroll down for juicy configuration and code. | |
# | |
# This work is licensed under the MIT license, which allows for commercial re-use, | |
# does not require back-contributions, isn't viral, and requires attribution. | |
# That's the plain english version of the full license text, below. Additionally, | |
# the following std_disclaimer applies: | |
# | |
# I do not accept responsibility for any effects, adverse or otherwise, |
#!/bin/bash | |
# This script is called by udev when you link a bluetooth device with your computer | |
# It's called to add or remove the device from pulseaudio | |
# | |
# | |
# Output to this file | |
LOGFILE="/var/log/bluetooth_dev" | |
# Name of the local sink in this computer |
/* | |
* I add this to html files generated with pandoc. | |
*/ | |
html { | |
font-size: 100%; | |
overflow-y: scroll; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} |
function _common_section | |
printf $c1 | |
printf $argv[1] | |
printf $c0 | |
printf ":" | |
printf $c2 | |
printf $argv[2] | |
printf $argv[3] | |
printf $c0 | |
printf ", " |