Skip to content

Instantly share code, notes, and snippets.

@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 += '_-@#$^'

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 / 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

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 / os.md
Created August 15, 2020 14:03
one shot stuff

Level 8

Point Buy

Playtest Content

Milestone

@jbweber
jbweber / pcs.md
Last active August 23, 2020 20:50
One Shot 2020-08-28

Player Characters

These character options were built to be generally optimized and provide some basic "characteristics". Feel free to flesh out your chosen characters characteristics as you see fit.

Backstory

The Knights of the Order have long been considered the protectors of the realm of Faerun. There are many different Knights of the Order locals, and the local for Baldur's gate is well known for it's adventurer apprentice program.

Local Adventurer's Party 1277 has been working together for sometime and is one of the premier adventuring parties of the Sword Coast. Their primary specialization is solving weird problems for small towns and villages.

# baseline of core +/- some stuff
%packages --instLangs=en
@core
# remove
-biosdevname
-cronie-anacron
-dnf-plugin-spacewalk
-dracut-config-rescue
-dracut-network
@jbweber
jbweber / battle-net.yaml
Created March 25, 2022 19:36
lutris battle.net
---
name: Battle.Net
game_slug: battle-dot-net
version: Installer
slug: battle-dot-net-installer
runner: wine
script:
files: