Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Walter A. Boring IV hemna

🏠
Working from home
View GitHub Profile
View aprsd-lnav.json
{
"aprsd" : {
"title" : "APRSD APRS-IS server log format",
"description" : "Log formats used by ARPRSD server",
"url" : "http://github.com/craigerl/aprsd",
"regex" : {
"std" : {
"pattern" : "^\\[(?<timestamp>\\d{2}/\\d{2}/\\d{4} \\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2} ([AaPp][Mm]))\\] \\[(?<thread>)\\w+\\] \\[(?<level>\\w+)\\] (?<body>\\S.*)$"
}
},
View test.py
import aprslib
import asyncio
import signal
import logging
from aioax25 import kiss as kiss
from aioax25.aprs import APRSInterface
from aioax25 import interface
from aioax25 import frame as axframe
import re
View test.py
import aprslib
import asyncio
import signal
import logging
from aioax25 import kiss as kiss
from aioax25.aprs import APRSInterface
from aioax25 import interface
import sys
View api.diff
diff --git a/cinder/volume/api.py b/cinder/volume/api.py
index 496424dde..d2a065be3 100644
--- a/cinder/volume/api.py
+++ b/cinder/volume/api.py
@@ -1741,14 +1741,14 @@ class API(base.Base):
'migration_policy': migration_policy,
'quota_reservations': reservations,
'old_reservations': old_reservations,
- 'resource_properties': {
- 'availability_zone': volume.availability_zone
View ceph.patch
diff --git a/devstack/lib/ceph b/devstack/lib/ceph
index 375dd9f..8207553 100755
--- a/devstack/lib/ceph
+++ b/devstack/lib/ceph
@@ -27,7 +27,7 @@ set +o xtrace
# Defaults
# --------
-CEPH_RELEASE=${CEPH_RELEASE:-hammer}
+CEPH_RELEASE=${CEPH_RELEASE:-luminous}
View Vagrantfile
require 'yaml'
CONFIG = YAML.load(File.open(File.join(File.dirname(__FILE__), "config.yaml"), File::RDONLY).read)
VAGRANTFILE_API_VERSION = "2" if not defined? VAGRANTFILE_API_VERSION
# The libvirt plugin needs a recent version of Vagrant
Vagrant.require_version ">=1.6.5"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
View vagrant-build.log
INFO global: Vagrant version: 2.2.5
INFO global: Ruby version: 2.4.5
INFO global: RubyGems version: 2.6.14.3
INFO global: VAGRANT_USR_DIR="/tmp/.mount_vagranTTAhOm/usr"
INFO global: VAGRANT_APPIMAGE_LD_LIBRARY_PATH="/tmp/.mount_vagranTTAhOm/usr/lib/:/tmp/.mount_vagranTTAhOm/usr/lib/i386-linux-gnu/:/tmp/.mount_vagranTTAhOm/usr/lib/x86_64-linux-gnu/:/tmp/.mount_vagranTTAhOm/usr/lib32/:/tmp/.mount_vagranTTAhOm/usr/lib64/:/tmp/.mount_vagranTTAhOm/lib/:/tmp/.mount_vagranTTAhOm/lib/i386-linux-gnu/:/tmp/.mount_vagranTTAhOm/lib/x86_64-linux-gnu/:/tmp/.mount_vagranTTAhOm/lib32/:/tmp/.mount_vagranTTAhOm/lib64/::/usr/local/lib64:/usr/local/lib:/lib:/lib64:/usr/lib:/usr/lib64:"
INFO global: VAGRANT_PKG_CONFIG_PATH="/tmp/.mount_vagranTTAhOm/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
INFO global: VAGRANT_DEFAULT_PROVIDER="libvirt"
INFO global: VAGRANT_INS
@hemna
hemna / install_pyenv.sh
Created Apr 10, 2019
install pyenv and then install python 3.6.3 in that pyenv
View install_pyenv.sh
# !/bin/bash
# Step 1. Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
source ~/.bashrc
View setuphost.sh
#!/bin/bash
# script to setup my crowbar host environment after it's up
# Run with:
# wget -O setuphost.sh https://gist.github.com/hemna/196f8b06125c094853d5cbbd00342563/raw | bash
mkdir ~/.ssh
cat > ~/.ssh/config <<'_EOF_'
Host github.com
StrictHostKeyChecking no
_EOF_
View bounce.sh
#!/bin/bash
logit () {
DATE=`date`
echo -e "$DATE $1" >> ~/bounce.log
echo -e "$DATE $1"
}
logit "START START START"