Skip to content

Instantly share code, notes, and snippets.

View fire-ant's full-sized avatar
💭
cofeveve

Chris L. fire-ant

💭
cofeveve
View GitHub Profile
@fire-ant
fire-ant / karabiner.json.microsoftsculpt
Created January 13, 2024 18:30 — forked from orkoden/karabiner.json.microsoftsculpt
Karabiner elements configuration file for using a Microsoft Sculpt Ergonomic Desktop keyboard with ISO-UK layout on macOS with US layout.
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true
},
"profiles": [
{
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
@fire-ant
fire-ant / merged.sh
Last active July 26, 2023 21:43
merged cluster kubeconfigs
# #!/bin/bash
# hacky way of retrieving and merging vluster kubeconfigs by passing a vlaid k8s namespace as the first argument to the script
# storage
mkdir -p .kc
rm -f .kc/config
# check $1 is set
[ -z "$1" ] && echo "Usage: $0 <namespace>" && exit 1
@fire-ant
fire-ant / microstack.sh
Created June 27, 2023 11:28
how to run microstack
echo fs.inotify.max_queued_events=1048576 | sudo tee -a /etc/sysctl.conf
echo fs.inotify.max_user_instances=1048576 | sudo tee -a /etc/sysctl.conf
echo fs.inotify.max_user_watches=1048576 | sudo tee -a /etc/sysctl.conf
echo vm.max_map_count=262144 | sudo tee -a /etc/sysctl.conf
echo vm.swappiness=1 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
sudo snap install microstack --channel sunbeam/beta
microstack install-script | bash -x
@fire-ant
fire-ant / cloud-init.yaml
Created June 15, 2023 17:31 — forked from pmbaumgartner/cloud-init.yaml
Multipass & Docker Setup
#cloud-config
package_upgrade: true
ssh_authorized_keys:
- <your key>
packages:
- apt-transport-https
- ca-certificates
- curl
@fire-ant
fire-ant / deviceinterface.yaml
Created June 8, 2023 19:08
TF netbox_device_interface debug output
kubectl describe deviceinterfaces
Name: test-device-interface
Namespace:
Labels: <none>
Annotations: crossplane.io/external-create-pending: 2023-06-08T18:48:31Z
crossplane.io/external-create-succeeded: 2023-06-08T18:48:31Z
crossplane.io/external-name: test-device-interface
upjet.upbound.io/test: true
API Version: dcim.netbox.upbound.io/v1alpha1
Kind: DeviceInterface
@fire-ant
fire-ant / sonic_vs.yaml
Last active July 30, 2022 14:20
sonic_vs.yaml
---
default:
driver-type: 'network'
default-desired-privilege-level: "linux"
privilege-levels:
linux:
name: 'linux'
pattern: '(?im)^[\w.\-@()\/: ]{1,63}'
previous-priv:
deescalate: ""
@fire-ant
fire-ant / ubuntu-xenial-armfh-qemu.md
Created May 26, 2021 08:03 — forked from takeshixx/ubuntu-xenial-armfh-qemu.md
Running Ubuntu 16.04.1 armhf on Qemu

Running Ubuntu 16.04.1 armhf on Qemu

This is a writeup about how to install Ubuntu 16.04.1 Xenial Xerus for the 32-bit hard-float ARMv7 (armhf) architecture on a Qemu VM via Ubuntu netboot.

The setup will create a Ubuntu VM with LPAE extensions (generic-lpae) enabled. However, this writeup should also work for non-LPAE (generic) kernels.

The performance of the resulting VM is quite good, and it allows VMs with >1G ram (compared to 256M on versatilepb and 1G on versatile-a9/versatile-a15). It also supports virtio disks whereas versatile-a9/versatile-a15 only support SD cards via the -sd argument.

Get netboot files

@fire-ant
fire-ant / ansible-vault.md
Created May 25, 2021 09:58 — forked from xoyabc/ansible-vault.md
Ansible-vault example

Ansible vault example

New in Ansible 1.5, “Vault” is a feature of ansible that allows keeping sensitive data such as passwords or keys in encrypted files, rather than as plaintext in your playbooks or roles. These vault files can then be distributed or placed in source control. To enable this feature, a command line tool, ansible-vault is used to edit files, and a command line flag –ask-vault-pass or –vault-password-file is used. Alternately, you may specify the location of a password file or command Ansible to always prompt for the password in your ansible.cfg file. These options require no command line flag usage.

Requirements

@fire-ant
fire-ant / main.tf
Last active August 7, 2019 21:31
ACG HOL: Infrastructure as code with HashiCorp Terraform
terraform {
required_version = ">= 0.12.6"
}
provider "aws" {
region = "eu-west-1"
}
data "aws_ami" "latest-ubuntu" {
most_recent = true