Skip to content

Instantly share code, notes, and snippets.

View fd0's full-sized avatar

Alexander Neumann fd0

View GitHub Profile
#!/bin/bash
shopt -s dotglob
# use bash strict mode
set -euo pipefail
IFS=$'\n\t'
DPI="${DPI:-120}"
#!/bin/bash
shopt -s dotglob
# use bash strict mode
set -euo pipefail
IFS=$'\n\t'
if [[ "$#" != "2" ]]; then
echo "usage: $0 input.pdf output.pdf"
diff --git Makefile Makefile
index 23f4c17..8686fe4 100644
--- Makefile
+++ Makefile
@@ -1,7 +1,7 @@
tttool: src/*.hs
# cabal update
- cabal install --only-dependencies
- cabal install --bindir=.
+ cabal install --jobs --only-dependencies
@fd0
fd0 / go.mod
Last active February 6, 2021 10:47
termstatus size test
module github.com/fd0/termsizewidthtest
go 1.15
require golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a
for i in {0..40}; do
timestamp=$(date +"%Y-%m-%d 12:00:00" -d "+ ${i} days")
echo "=========================================================="
echo "run backup on ${timestamp}"
./restic backup --quiet --time "${timestamp}" main.go
./restic forget --keep-weekly 3
done
package main
import (
"fmt"
"os"
"time"
"golang.org/x/sys/unix"
)
diff --git a/build.go b/build.go
index 2e3e5d05..0b3a6a61 100644
--- a/build.go
+++ b/build.go
@@ -575,6 +575,9 @@ func main() {
buildArgs = append(buildArgs, "-mod=vendor")
testArgs = append(testArgs, "-mod=vendor")
+
+ goEnv["GO111MODULE"] = "on"
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 10 columns, instead of 9. in line 9.
"Index","Menge","Teilenummer","Hersteller-Teilenummer","Beschreibung","Kundenreferenz","Verfügbar","Lieferrückstände","Stückpreis","Gesamtpreis EUR"
"1","1","300-1002-ND","CFS-20632768DZFB","CRYSTAL 32.7680KHZ 12.5PF T/H","","1","0","0,21000","0,21"
"2","11","478-10047-1-ND","06031C104KAT2A","CAP CER .1UF 100V X7R 0603","","11","0","0,12400","1,36"
"3","1","507-1813-1-ND","0ZCK0050FF2E","PTC RESET FUSE 6V 500MA 0805","","1","0","0,19000","0,19"
"4","2","WM10134CT-ND","1051330011","CONN RCPT USB2.0 MICRO B SMD","","2","0","0,99000","1,98"
"5","1","450-1642-ND","2-1825910-7","SWITCH TACTILE SPST-NO 0.05A 24V","","1","0","0,10000","0,10"
"6","1","MCP1825S-3302E/DB-ND","MCP1825S-3302E/DB","IC REG LIN 3.3V 500MA SOT223-3","","1","0","0,47000","0,47"
"7","4","754-1439-1-ND","APT3216QBC/D","LED BLUE CLEAR CHIP SMD","","4","0","0,46000","1,84"
"8","2","609-3407-ND","68016-404HLF","CONN HEADER R/A 4POS 2.54MM","","2","0","0,16000","0,32"
"9","4","P33.00BYCT-ND","ERJ-PA3F33R0V","RES SMD 33 OHM 1% 1/4W 0603","","4","0",
# Configuration for Alacritty, the GPU enhanced terminal emulator
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
env:
# TERM env customization.
#
# If this property is not set, alacritty will set it to xterm-256color.

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites