- Encrypt everthing including /boot and /root
- Enter password once
- Support UEFI
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| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: cleaner | |
| --- | |
| kind: Role | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: cleaner |
| { "keys": ["enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context": | |
| [ | |
| { "key": "setting.auto_indent", "operator": "equal", "operand": true }, | |
| { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
| { "key": "preceding_text", "operator": "regex_contains", "operand": "[{,[,(]$", "match_all": true }, | |
| { "key": "following_text", "operator": "regex_contains", "operand": "^[},\\],)]", "match_all": true } | |
| ] | |
| }, |
| " Specify a directory for plugins | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| Plug 'scrooloose/nerdtree' | |
| "Plug 'tsony-tsonev/nerdtree-git-plugin' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | |
| Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
| Plug 'ryanoasis/vim-devicons' | |
| Plug 'airblade/vim-gitgutter' |
| // /stacks/cicd-pipelines.ts | |
| // CDK app which creates a stack using a set of service definitions | |
| import 'source-map-support/register'; | |
| import { App } from '@aws-cdk/cdk'; | |
| import { ServiceCicdPipelines } from '../lib/cicd/pipelines'; | |
| import { deploymentTargetAccounts } from './config'; | |
| import services from './services'; | |
| const app = new App({ |
| #!/usr/local/bin/python | |
| import argparse | |
| import boto3 | |
| def resetPassword(instanceId, password, region, profile): | |
| session = boto3.Session(profile_name=profile, region_name=region) | |
| client = session.client('ssm') | |
| runPwshDocument = 'AWS-RunPowerShellScript' |
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com |
This snippet is a sample showing how to implement CloudWatch Logs streaming to ElasticSearch using terraform.
I wrote this gist because I didn't found a clear, end-to-end example on how to achieve this task. In particular,
I understood the resource "aws_lambda_permission" "cloudwatch_allow" part by reading a couple of bug reports plus
this stackoverflow post.
The js file is actually the Lambda function automatically created by AWS when creating this pipeline through the
web console. I only added a endpoint variable handling so it is configurable from terraform.
| input { | |
| stdin { | |
| codec => multiline { | |
| pattern => "^\[%{MONTHDAY}-%{MONTH}-%{YEAR} %{TIME} %{TZ}\]" | |
| negate => true | |
| what => "previous" | |
| auto_flush_interval => 10 | |
| } | |
| type => "php-error" | |
| } |
| #!/bin/bash | |
| # requires jq | |
| # arg 1: iCloud web album URL | |
| # arg 2: folder to download into (optional) | |
| function curl_post_json { | |
| curl -sH "Content-Type: application/json" -X POST -d "@-" "$@" | |
| } |