Skip to content

Instantly share code, notes, and snippets.

View WolfangAukang's full-sized avatar
🇵🇸
GitHub fariĝis banala interkona retejo

P. WolfangAukang

🇵🇸
GitHub fariĝis banala interkona retejo
View GitHub Profile
@WolfangAukang
WolfangAukang / stack.yml
Last active May 6, 2023 15:32
arminc's Clair scan setup on docker-compose
version: '3.6'
services:
# Although the author recommends performing a link to reference this container as postgres,
# we could simply set the name as postgres. Also, link is a legacy flag.
postgres:
image: arminc/clair-db
clair:
image: arminc/clair-local-scan
@WolfangAukang
WolfangAukang / flake.nix
Created August 9, 2023 18:16
Devshell flake importing a Python environment (based on https://github.com/numtide/devshell/issues/136)
{
description = "virtual environments";
inputs.devshell.url = "github:numtide/devshell";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, flake-utils, devshell, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system: {
devShell =
let
@WolfangAukang
WolfangAukang / README.md
Created January 2, 2024 15:51
Helix settings for CloudFormation YAML templates

Store it at .helix/languages.toml.

{
"json": {
},
"markdown": {
"lineWidth":120,
},
"excludes": [
],
"plugins": [
"https://plugins.dprint.dev/markdown-0.16.3.wasm"
use aws_config::{meta::region::RegionProviderChain, BehaviorVersion, SdkConfig};
use aws_sdk_ec2::Client;
const DEFAULT_REGION: &str = "us-east-1";
const INSTANCE_ID_STATUS: &str = "i-0d10de49d69d7ed57";
const INSTANCE_ID_START: &str = "i-06360477f59dd461d";
enum InstanceStatus {
IP,
Status,