Skip to content

Instantly share code, notes, and snippets.

@jbweber
jbweber / os.md
Created August 15, 2020 14:03
one shot stuff

Level 8

Point Buy

Playtest Content

Milestone

stuff

  • dnf install /usr/bin/dig
  • dnf install chrony
  • timedatectl set-ntp true
  • yum install /usr/sbin/semanage
  • yum install tmux vim-enhanced git
  • semanage fcontext -a -e /home /export/home && restorecon -R /export/home
  • dnf install make
  • dnf install moby-engine
@jbweber
jbweber / README.md
Created December 29, 2019 19:34
ubnt edge router BGP setup

https://tools.ietf.org/html/rfc6996 64512 - 65534 inclusive – private 2 byte ASN 4200000000 - 4294967294 inclusive - private 4 byte ASN

configure
set protocols bgp 65000 parameters router-id 192.168.254.1
set protocols bgp 65000 neighbor 192.168.255.0 remote-as 65001
set protocols bgp 65000 neighbor 192.168.255.0 soft-reconfiguration inbound
set protocols bgp 65000 neighbor 192.168.255.0 default-originate

root file system

For our container we want a root filesystem so we'll extract one from the busybox docker container.

We will then extract it into a folder (as root to preserve permissions).

$ id=$(docker run -d busybox /bin/true)
$ docker export $id > busyboxfs.tar
$ docker rm $id
@jbweber
jbweber / pass.py
Created October 3, 2017 03:25
password generation
#!/usr/bin/python
import random
import string
options = string.ascii_letters
options += string.hexdigits
options += '_-@#$^'

Overview

Non-OpenStack libvirt + kvm plugged into Calico as part of platform control plane. OpenStack is too complex to manage for this workload, and using containers walks the complexity line depending on the solution.

Sources Used

  • CentOS 7.3
  • libvirt 2.0.0
  • OpenStack packages for Calico bits
    • calico-common-2.0.2-1.el7.centos.x86_64
    • calico-felix-2.0.2-1.el7.centos.x86_64
  • dnsmasq-2.72_calico1.0.0-1.el7.x86_64