This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$name = ENV['NAME'] || File.basename(Dir.getwd) | |
Vagrant.configure("2") do |config| | |
config.vm.define "#{$name}" | |
config.vm.hostname = "#{$name}" | |
config.vm.box = "bento/freebsd-13" | |
config.disksize.size = "64GB" | |
config.vm.provider :virtualbox do |v| | |
v.name = "#{$name}" | |
v.cpus = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo amazon-linux-extras install epel | |
sudo yum install ncdu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ryan-smith-test | |
namespace: default | |
spec: | |
containers: | |
- name: ryan-smith-test | |
image: public.ecr.aws/docker/library/docker:latest | |
command: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type Node struct { | |
Value string | |
Next *Node | |
} | |
type LinkedList struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: test-pod | |
namespace: default | |
spec: | |
containers: | |
- image: nginx:1.21-alpine | |
name: test-container | |
volumeMounts: |
Terraform version implementing: https://awsteele.com/blog/2021/09/15/aws-federation-comes-to-github-actions.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk'); | |
const fs = require('fs'); | |
const sts = new AWS.STS(); | |
sts.getCallerIdentity({}, console.log); | |
const webIdentityToken = fs.readFileSync(process.env.AWS_WEB_IDENTITY_TOKEN_FILE, "utf8"); | |
const role = sts.assumeRoleWithWebIdentity({ | |
RoleArn: process.env.AWS_ROLE_ARN, | |
RoleSessionName: "todo-put-something-dynamic-maybe", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "hEllo0.as9d/asdo_k1" | tr -c '[:alnum:]\n\r' '-' | tr '[:upper:]' '[:lower:]' | cut -c -64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
split -b 1000m postgresql.log.2020-12-11-03 postgresql.log.2020-12-11-03 | |
# https://github.com/darold/pgbadger | |
pgbadger postgresql.log.2020-12-11-03am |