Skip to content

Instantly share code, notes, and snippets.

View graudeejs's full-sized avatar

Aldis Berjoza graudeejs

View GitHub Profile
require 'logger'
require 'byebug'
require 'dry/monads'
require 'dry/monads/do'
require 'dry/matcher/result_matcher'
module Dry
module Transaction
module Steps
@dysinger
dysinger / nixos-encrypted-zfs.sh
Last active March 7, 2023 14:51
How I installed Encrypted ZFS root on NixOS
# MOVED HERE https://gist.github.com/dysinger/2a768db5b6e3b729ec898d7d4208add3
@graudeejs
graudeejs / Vagrantfile
Created February 19, 2018 18:07
FreeBSD Vagrantfile
Vagrant.configure('2') do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = 'freebsd/FreeBSD-11.1-STABLE'
config.vm.base_mac = '080027D14C66'
config.ssh.shell = 'sh'
config.vm.synced_folder ".", "/vagrant", disabled: true
end
@graudeejs
graudeejs / VirtualBoxKickstart.md
Created December 6, 2017 20:35 — forked from jtyr/VirtualBoxKickstart.md
How to use kickstart in VirtualBox

How to use kickstart in VirtualBox

This short howto describes how to install VMs via kickstart in VirtualBox. It's using PXE functionality built into the NAT network mode of the VirtualBox. The following instructions apply to CentOS installation but it should work for any RedHat-based distro.

Prepare directory structure

@graudeejs
graudeejs / install.sh
Last active March 28, 2018 17:52
Install mutt on Linux mint from source
git clone https://github.com/neomutt/neomutt
cd neomutt
sudo apt install xsltproc libslang2 libslang2-dev libidn11 libidn11-dev elinks libssl-dev libsasl2-dev
./configure --ssl --with-ui=slang --sasl --disable-doc --disable-nls
make
@Luzifer
Luzifer / README.md
Last active May 29, 2024 08:02
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
@surhudm
surhudm / GNUPG_agent_forwarding.md
Last active February 18, 2022 17:50
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:

@ageis
ageis / systemd_service_hardening.md
Last active June 20, 2024 02:52
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@graudeejs
graudeejs / gpg-offline-master.md
Created February 7, 2017 19:00 — forked from abeluck/gpg-offline-master.md
GPG Offline Master Key w/ smartcard
#source - http://elviss.lv/dictionary/
English–Latvian programming term dictionary
Angļu–latviešu programmēšanas terminu vārdnīca
abstract – abstrakts
accessor – piekļuvējs
address – adrese
algorithm – algoritms
ancestor – priekšteča elements