Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

2022-10-03T09:29:04.494+0100 [INFO] Terraform version: 1.3.1
2022-10-03T09:29:04.494+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2022-10-03T09:29:04.494+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.1
2022-10-03T09:29:04.494+0100 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-10-03T09:29:04.494+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-10-03T09:29:04.494+0100 [DEBUG] using github.com/zclconf/go-cty v1.11.0
2022-10-03T09:29:04.494+0100 [INFO] Go runtime version: go1.19.1
2022-10-03T09:29:04.494+0100 [INFO] CLI args: []string{"terraform", "plan"}
2022-10-03T09:29:04.494+0100 [TRACE] Stdout is not a terminal
2022-10-03T09:29:04.494+0100 [TRACE] Stderr is not a terminal

The file not allowed in a Docker image

You cannot have a file in a Docker image with a name that starts with .wh.. Try this:

$ echo "files beginning .wh. are not allowed!" > test.txt
$ echo -e "FROM alpine:latest\nCOPY test.txt /.wh.test.txt" > Dockerfile
$ docker build -t johnlane/wontwork:latest .
#define _LARGEFILE64_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <time.h>
#include <signal.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
--- gitweb.cgi.orig 2020-10-06 10:13:45.621810025 +0100
+++ gitweb.cgi 2020-10-06 10:08:21.651823286 +0100
@@ -18,9 +18,10 @@
use Encode;
use Fcntl ':mode';
use File::Find qw();
-use File::Basename qw(basename);
+use File::Basename qw(basename dirname);
use Time::HiRes qw(gettimeofday tv_interval);
use Digest::MD5 qw(md5_hex);
@johnlane
johnlane / zk3d
Last active December 22, 2021 22:40
A wrapper for k3d for use with ZFS file systems
#!/bin/bash
# wrapper for k3d v3 usage on ZFS using Docker volumes
# JL20200603
# Usage: pass 'create' as the first argument to create a cluster
# pass 'destroy' (or anything else) to destroy a cluster
#
# The following optional arguments may be provided (in this order):
# second argument is the cluster name (k3d is prefixed to this)
# following arguments apply to create: masters workers
@johnlane
johnlane / README.md
Last active November 1, 2023 19:56
Simple installer for ArchLinux on ZFS (tested in VirtualBox)

ArchZFS examples

Use with QEMU; example:

for i in {1..2}; do qemu-img create -f qcow2 hd$i.qcow2 4G; done
qemu-system-x86_64 --enable-kvm -global isa-fdc.fdtypeA=none -cdrom archlinux-2023.07.25-x86_64.iso -nic bridge,br=br0 -m 8192 -smp cpus=4 -hda hd1.qcow2 --hdb hd2.qcow2 &
U-Boot 1.1.4-g12193fce-dirty (Dec 14 2009 - 13:39:19)
WN604 (ar7240) U-boot dni7 V0.8
DRAM:
sri
#### TAP VALUE 1 = a, 2 = b
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 278k for U-Boot at: 81fb8000
@johnlane
johnlane / log
Created September 2, 2017 16:15
ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK
U-Boot SPL 2014.01-openwrt4-g9abc897-dirty (Jun 27 2015 - 18:14:58)
SPL: applying tuned DDR SDRAM settings
MEM: DDR Echo DLL delay: 22/23
MEM: DDR Write DQS delay: 65/67
MEM: DDR Read DQS delay: 1f/1f
#!/usr/bin/env python
import gi
gi.require_version('Gtk','3.0')
gi.require_version('Keybinder', '3.0')
from gi.repository import Gtk, Gdk, Keybinder
class MenuBar(Gtk.Window):
def __init__(self, *args):
@johnlane
johnlane / PGP KEY 22D05A45
Created January 23, 2017 11:20
44E44ABB2410742A8476BC9B955B200A22D05A45
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
- -----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFTZ1L0BEACU0k8PmTWLXWAbDy1Nr89bv3xjm3QkaNtxdKHvHW/n1ScJwWfm
INfDesKoNKRniatTcHiKxDGQEFtALTSzbFC8nf/Gvtq1sgfn3Io9I12/McanZpKK
Xml9my8Yov+b98F4EkYCf/QykHU/Ec4U0InMtFbbsBlMyLbU2nty9efc9IQre0cV
EuMgG6xCc7aQyAI2SX54wIbnHhjOyqKUoAC3Ela3boSBUIn60Gz7EsvbIJk4O4UR
5ncpuqnF1Almse3wVfe9biBJK6RMUrcs8Aw/8r9B0mDA6REVqLEBoyI/QJDL8rEn