This is backup docs for this Go Template Playground setup: here
The idea is that we want to use External Secrets Operator to parse a secret that happens to be a Redis dat
This is backup docs for this Go Template Playground setup: here
The idea is that we want to use External Secrets Operator to parse a secret that happens to be a Redis dat
# Based on ReachView code from Egor Fedorov ([email protected]) | |
# Updated for Python 3.6.8 on a Raspberry Pi | |
import time | |
import pexpect | |
import subprocess | |
import sys | |
import logging |
source "https://rubygems.org" | |
gem "functions_framework", "~> 1.4" |
This is an explanation of my BirdNET-Pi (https://birdnetpi.com/) hardware installation.
The idea is to have minimal hardware outdoors (a microphone) and keep the rest indoors where it is easier to manage and keep climate controlled. I had an existing CAT5 cable running from my computer area to an outdoor telco box. It was used for an old DSL install. I used the telco box to house a CAT5-to-XLR adapter and most of an XLR omnidirectional lavalier microphone, with the tip of
#!/bin/sh | |
# See https://serverfault.com/a/31179 | |
gateway=$(route -n | grep 'UG[ \t]' | awk '{print $2}') | |
echo "Pinging Gateway IP: $gateway" | |
echo "Press CTRL + C to cancel" | |
ping $gateway |
#!/usr/bin/env ruby | |
begin | |
require 'fileutils' | |
require 'id3tag' | |
require 'pry' | |
class FolderifyMp3s | |
REGEX = /\(|\)|\/|\\/.freeze | |
def call |
callback = lambda do |result, err| | |
if err | |
# handle error | |
else | |
require_relative './mail' | |
mail = ::CheckEmail::Mail.new(result) | |
end | |
end |
# This is Git's per-user configuration file. | |
[user] | |
# Please adapt and uncomment the following lines: | |
name = Firstname Lastname | |
email = [email protected] | |
[color] | |
ui = auto | |
[rebase] | |
autosquash = true | |
[alias] |
#!/usr/bin/env ruby | |
# Based on http://blog.honeybadger.io/when-to-use-freeze-and-frozen-in-ruby/#reducing-object-allocations | |
# but for Ruby 1.9.3 | |
require 'benchmark' | |
class FreezeBenchmark | |
NORMAL = 'NORMAL' | |
FROZEN = 'FROZEN'.freeze | |
def self.init(n = 100000) |
@ECHO OFF | |
SET CURRENTDIR="%cd%" | |
SET DIRTOZIP="%TEMP%\_A%time::=.%" | |
MKDIR %DIRTOZIP% | |
CD %DIRTOZIP% | |
COPY /B /V /Z "source" "destination" | |
set FILETOZIP="%DIRTOZIP%\*" |