Skip to content

Instantly share code, notes, and snippets.

View graudeejs's full-sized avatar

Aldis Berjoza graudeejs

View GitHub Profile
@graudeejs
graudeejs / fail.log
Created May 3, 2023 11:34
terraform apply with PAGERDUTY_TOKEN
2023-05-03T14:30:01.801+0300 [INFO] Terraform version: 1.4.6
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/go-tfe v1.21.0
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-05-03T14:30:01.801+0300 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-05-03T14:30:01.801+0300 [INFO] Go runtime version: go1.19.6
2023-05-03T14:30:01.801+0300 [INFO] CLI args: []string{"terraform", "apply"}
2023-05-03T14:30:01.801+0300 [DEBUG] Attempting to open CLI config file: /Users/aldis_berjoza/.terraformrc
2023-05-03T14:30:01.801+0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
@graudeejs
graudeejs / nixos-encrypted-zfs.sh
Created November 6, 2020 17:50 — forked from dysinger/nixos-encrypted-zfs.sh
How I installed Encrypted ZFS root on NixOS
#!/bin/sh
# FIRST STOP THE zfs-zed SERVICE
systemctl stop zfs-zed
# FORCE UNLOAD ZFS KERNEL MODULES
lsmod | grep zfs | cut -d' ' -f1 | xargs rmmod -f
# NOW ADD THE FOLLOWING TO /etc/nixos/configuration.nix
#
@graudeejs
graudeejs / output
Created October 4, 2020 08:41
cfengine3 packages issue
info: Using command line specified bundlesequence
error: Invalid or missing arguments in package_module body 'apt_get': query_installed_ifelapsed = -678 query_updates_ifelapsed = -678
error: New package promise failed sanity check.
error: Invalid or missing arguments in package_module body 'apt_get': query_installed_ifelapsed = -678 query_updates_ifelapsed = -678
error: New package promise failed sanity check.
error: Invalid or missing arguments in package_module body 'apt_get': query_installed_ifelapsed = -678 query_updates_ifelapsed = -678
error: New package promise failed sanity check.

Download Vagrant boxes manually

In this example, we're going to download the Midnight Sun box.

# The box URL is https://app.vagrantup.com/uwmidsun/boxes/box/versions/2.1.0
# In general, we just take the box URL, and then append the provider URL
# https://app.vagrantup.com/<organization name>/boxes/<box name>/versions/<version>/providers/<provider>.box
wget https://app.vagrantup.com/uwmidsun/boxes/box/versions/2.1.0/providers/virtualbox.box -O box-2.1.0.box
@graudeejs
graudeejs / ruby.2.6.3-setup.sh
Created October 28, 2019 19:48 — forked from mustafaturan/ruby.2.6.3-setup.sh
ruby 2.6.3 setup for centos 6.x
#!/usr/bin/env bash
# repository
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
# system update
yum -y update
yum -y groupinstall "Development Tools"
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick
# coding=utf-8
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import datetime
import sys
import time
import threading
import traceback
import SocketServer
@graudeejs
graudeejs / 2019-01-23-Xorg.log
Last active January 22, 2019 22:14
amdgpu on rx580 video - FreeBSDDesktop/kms-drm issue 126 and 127 info
[ 46.619]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 46.619] X Protocol Version 11, Revision 0
[ 46.619] Build Operating System: FreeBSD 12.0-RELEASE-p2 amd64
[ 46.619] Current Operating System: FreeBSD home 12.0-RELEASE-p2 FreeBSD 12.0-RELEASE-p2 GENERIC amd64
[ 46.619] Build Date: 10 January 2019 09:17:29AM
[ 46.619]
[ 46.619] Current version of pixman: 0.34.0
[ 46.619] Before reporting problems, check http://wiki.x.org
@graudeejs
graudeejs / digitalocean-promo-cupon-code-free-trial.md
Created January 2, 2019 11:28
DigitalOcean Coupon Code $35 / $100 1 Year Free Trial - January 2019

alt text

Digital Ocean Promo Coupon Code $35 / $100 1 Year Free Trial

1) Get $35 / $25 / $20 / $10 free DigitalOcean Credit.

2) Get DigitalOcean 1 Year Free Trial.

3) Get $100 Credit For 60 Days. $100 Free Credits

@graudeejs
graudeejs / ansible-summary.md
Created September 7, 2018 07:49 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@graudeejs
graudeejs / GNUPG_agent_forwarding.md
Created April 18, 2018 22:46 — forked from surhudm/GNUPG_agent_forwarding.md
GNUPG agent forwarding

Forward GNUPG agent with the following steps:

On the remote insecure machine:

Run gpg once to create the directory structure.

gpg --list-keys

On the local machine: