Skip to content

Instantly share code, notes, and snippets.

---
AWSTemplateFormatVersion: 2010-09-09
# registers the "Datadog::*" resource types in the current account
Resources:
### --- ACTIVATING DATADOG CUSTOM TYPES --- ###
DatadogTypeActivationRole:
Type: AWS::IAM::Role
Properties:
RoleName: !Sub ${AWS::AccountId}-${AWS::Region}-datadog-type-activation-role
AssumeRolePolicyDocument:
@vandr0iy
vandr0iy / nixos.md
Created March 1, 2022 10:00 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root
@vandr0iy
vandr0iy / encryptedNixos.md
Created January 4, 2021 13:55 — forked from ladinu/encryptedNixos.md
NixOS install with encrypted /boot /root with single password unlock

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once
  3. Support UEFI

Installation media setup

Download NixOS minimal iso and copy to USB stick. For example on Mac OSX

$ diskutil list
$ diskutil unmountDisk /dev/disk1 # Make sure you got right device
@vandr0iy
vandr0iy / ansible_typecheck.yml
Created November 30, 2018 14:48 — forked from spiette/jinja_variables_types.yml
Test the variables types in jinja2 templates, used here with ansible
---
- hosts: all
gather_facts: no
vars:
string: "string"
list:
- item1
- item2
dict:
key1: value1
@vandr0iy
vandr0iy / core.clj
Created October 8, 2018 07:47
A simple metered billing system
(ns exo1.core
(:require
[clj-time.core :as time]
[clj-time.coerce :as coerce]
))
; The `on-the-top-of-my-head` solution.
; This algoritm assumes that once a resource is destroyed it can not be re-created anymore
; with the same ID.