Skip to content

Instantly share code, notes, and snippets.

View catvec's full-sized avatar
🐢

catvec

🐢
View GitHub Profile
@catvec
catvec / mail.log
Last active February 13, 2019 18:57
Postfix <> OpenDKIM Warning
2019-02-13T15:07:41.52901 mail.info: Feb 13 15:07:41 postfix/master[17246]: daemon started -- version 3.3.2, configuration /etc/postfix
2019-02-13T15:08:48.94832 mail.info: Feb 13 15:08:48 postfix/pickup[17312]: E77D0627F3: uid=1000 from=<noah>
2019-02-13T15:08:48.96592 mail.info: Feb 13 15:08:48 opendkim[27922]: configuration reloaded from /etc/opendkim/opendkim.conf
2019-02-13T15:08:48.96645 mail.info: Feb 13 15:08:48 postfix/cleanup[18973]: E77D0627F3: message-id=<20190213150848.E77D0627F3@funkyboy.zone>
2019-02-13T15:08:48.96988 mail.notice: Feb 13 15:08:48 opendkim[27732]: terminated with signal 11, restarting
2019-02-13T15:08:48.96990 mail.warn: Feb 13 15:08:48 postfix/cleanup[18973]: warning: milter inet:localhost:12301: can't read SMFIC_EOH reply packet header: Invalid argument
2019-02-13T15:08:48.97047 mail.info: Feb 13 15:08:48 opendkim[18975]: OpenDKIM Filter v2.10.3 starting (args: -x /etc/opendkim/opendkim.conf -f)
2019-02-13T15:08:48.97181 mail.info: Feb 13 15:08:48 postfix/qmgr[17313]: E77D0627
@catvec
catvec / init.sls
Created February 28, 2019 19:13
Salt s3fs-fuse configuration for a Digital Ocean Space
MOUNT_POINT:
mount.mounted:
- device: DIGITAL_OCEAN_SPACE_NAME
- fstype: fuse.s3fs
- mkmnt: True
- opts: passwd_file=YOUR_S3FS_PASSWD_FILE,use_path_request_style,url=https://REGION.digitaloceanspaces.com,uid=UID,gid=GID,umask=000
@catvec
catvec / init.sls
Last active March 3, 2019 10:02
Salt mount.mounted s3fs keeps remounting
/opt/factorio/mods:
mount.mounted:
- device: factorio-mods
- fstype: fuse.s3fs
- mkmnt: True
- device_name_regex:
- s3fs
- factorio-mods
- opts:
- allow_other
@catvec
catvec / o-fix.patch
Created March 4, 2019 07:18
mklive.sh -o fix patch
diff --git a/mklive.sh.in b/mklive.sh.in
index c568e45..4dfd36a 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -287,7 +287,7 @@ generate_iso_image() {
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot -e boot/grub/efiboot.img -isohybrid-gpt-basdat -no-emul-boot \
-isohybrid-mbr "$SYSLINUX_DATADIR"/isohdpfx.bin \
- -output "$CURDIR/$OUTPUT_FILE" "$IMAGEDIR" || die "Failed to generate ISO image"
+ -output "$OUTPUT_FILE" "$IMAGEDIR" || die "Failed to generate ISO image"
@catvec
catvec / xbps-src-install-go.error.out
Last active March 5, 2019 05:00
xbps-src install go error
# ./xbps-src install go
=> Using `/opt/void-packages/hostdir/binpkgs/go-1-12' as local repository.
[*] Updating `https://alpha.de.repo.voidlinux.org/current/musl/x86_64-repodata' ...
ERROR: [reposync] failed to fetch file `https://alpha.de.repo.voidlinux.org/current/musl/x86_64-repodata': Not Found
[*] Updating `https://alpha.de.repo.voidlinux.org/current/musl/nonfree/x86_64-repodata' ...
[*] Updating `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
[*] Updating `https://alpha.de.repo.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating `https://alpha.de.repo.voidlinux.org/current/aarch64/x86_64-repodata' ...
ERROR: [reposync] failed to fetch file `https://alpha.de.repo.voidlinux.org/current/aarch64/x86_64-repodata': Not Found
[*] Updating `https://alpha.de.repo.voidlinux.org/current/multilib/x86_64-repodata' ...
@catvec
catvec / client.out
Last active March 8, 2019 07:51
Wireguard general vpn debug
On client
########################
===== START RUN ip route show table all
0.0.0.0/1 dev wg0 scope link
default via 72.19.92.1 dev wlan0
10.0.0.0/24 dev wg0 proto kernel scope link src 10.0.0.2
72.19.92.0/22 dev wlan0 proto kernel scope link src 72.19.93.98
72.19.92.1 dev wlan0 scope link
128.119.101.1 via 72.19.92.1 dev wlan0
128.119.101.2 via 72.19.92.1 dev wlan0
@catvec
catvec / out
Created March 13, 2019 16:14
Arch Linux version
4.20.12-arch1-1-ARCH
linux 5.0.arch1-1
@catvec
catvec / 0400_personal_website_distribution.tf
Created May 3, 2019 01:42
Terraform configuration to create a multi domain ACM CloudFront Distribution.
# SSL Certificate
resource "aws_acm_certificate" "personal-website" {
domain_name = "${aws_route53_zone.4e48-dev.name}"
subject_alternative_names = [
"${aws_route53_zone.noahh-io.name}"
]
validation_method = "DNS"
tags = {
@catvec
catvec / terraform-plan-apply.out
Created May 3, 2019 01:45
Debug output from Terraform, shows bug where AWS ACM certificate cannot be recreated if in use by an AWS CloudFront Distribution
This file has been truncated, but you can view the full file.
2019/05/02 21:33:22 [WARN] Invalid log level: "true". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2019/05/02 21:33:22 [INFO] Terraform version: 0.11.13
2019/05/02 21:33:22 [INFO] Go runtime version: go1.12
2019/05/02 21:33:22 [INFO] CLI args: []string{"/usr/bin/terraform", "init", "/home/noah/documents/web/funkyboy.zone/terraform"}
2019/05/02 21:33:22 [DEBUG] Attempting to open CLI config file: /home/noah/.terraformrc
2019/05/02 21:33:22 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/05/02 21:33:22 [INFO] CLI command args: []string{"init", "/home/noah/documents/web/funkyboy.zone/terraform"}
2019/05/02 21:33:22 [DEBUG] command: loading backend config file: /home/noah/documents/web/funkyboy.zone/terraform
2019/05/02 21:33:22 [INFO] command: empty terraform config, returning nil
2019/05/02 21:33:22 [DEBUG] command: no data state file found for backend config
@catvec
catvec / libpod.conf
Created December 5, 2019 20:04
containers/libpod #4648 debug files
volume_path = "/home/noah/.local/share/containers/storage/volumes"
image_default_transport = "docker://"
runtime = "runc"
conmon_path = ["/usr/libexec/podman/conmon", "/usr/local/libexec/podman/conmon", "/usr/local/lib/podman/conmon", "/usr/bin/conmon", "/usr/sbin/conmon", "/usr/local/bin/conmon", "/usr/local/sbin/conmon"]
conmon_env_vars = ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"]
cgroup_manager = "cgroupfs"
init_path = ""
static_dir = "/home/noah/.local/share/containers/storage/libpod"
tmp_dir = "/run/user/1000/libpod/tmp"
max_log_size = -1