Skip to content

Instantly share code, notes, and snippets.

View jkilpatr's full-sized avatar

Justin Kilpatrick jkilpatr

View GitHub Profile
[stack@undercloud ansible]$ sudo /usr/sbin/semanage port -m -t http_port_t -p tcp 9001
Re-declaration of type docker_t
Failed to create node
Bad type declaration at /etc/selinux/targeted/tmp/modules/100/docker/cil:1
OSError: Error
# note: used in the context of image promotion pipeline only!
# we have not yet created
# https://github.com/openstack/tripleo-quickstart/blob/master/config/release/trunk/ocata.yml
#
# THIS IS A TEMPORARY FILE AND WILL BE REMOVED
#
# at the moment the internal centosci configs also still point release to 'master' as we have not updated
# the various .j2's with release-conditional logic.
release: master
< "yAxis": {}
---
> "yAxis": {},
> "legendPosition": "right"
18a20
> "enabled": true,
29a32
> "enabled": true,
36a40
> "enabled": true,
#!/bin/bash
# This script will take any nodes in a manageable state and issue an introspection every 30 seconds
# it will set any nodes that successfully finish introspection and shutdown to available. Otherwise it will
# wait for the timeout to complete and try again on only the nodes that are still manageable.
introspect()
{
for node in `ironic --json node-list | jq -r '.[]| select(.["provision_state"] == "manageable")| .["uuid"]'`; do
openstack baremetal introspection start $node
extern crate bit_vec;
use bit_vec::BitVec;
use std::ops::Add;
use std::ops::Sub;
fn twos_comp(mut bv: BitVec) {
let mut one = BitVec::from_elem(bv.len(), false);
one.set(0) = true;
bv.negate();
@jkilpatr
jkilpatr / sim.py
Last active November 12, 2017 17:15
# A earning simulator for pay per forward mesh
# This is essentially a scratchpad for trying out ideas, so it's hardly polished.
import numpy
from scipy.optimize import minimize
from scipy.optimize import brute
from scipy.optimize import basinhopping
from scipy.optimize import differential_evolution
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm

Keybase proof

I hereby claim:

  • I am jkilpatr on github.
  • I am jkilpatr (https://keybase.io/jkilpatr) on keybase.
  • I have a public key whose fingerprint is E7E3 5490 8260 18FD A829 9C42 4E51 E687 A752 41BF

To claim this, I am signing this object:

Compiling rita v0.1.0 (file:///home/justin/repos/althea_rs/rita)
error: linking with `/home/justin/repos/althea-firmware/build/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/bin/mips-openwrt-linux-gcc` failed: exit code: 1
|
= note: "/home/justin/repos/althea-firmware/build/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/bin/mips-openwrt-linux-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/justin/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-musl/lib" "/home/justin/repos/althea_rs/target/mips-unknown-linux-musl/debug/deps/rita-3c43b701f075b767.114xigf1yyw2gcw0.rcgu.o" "/home/justin/repos/althea_rs/target/mips-unknown-linux-musl/debug/deps/rita-3c43b701f075b767.1575lvxhcgzljlmg.rcgu.o" "/home/justin/repos/althea_rs/target/mips-unknown-linux-musl/debug/deps/rita-3c43b701f075b767.158wz1xuz2s5vbhj.rcgu.o" "/home/justin/repos/althea_rs/target/mips-unknown-linux-musl/debug/deps/rita-3c43b701f075b767.15kq92zzbmxot4k9.rcgu.o" "/home/justin/repos/althea_rs/target/mip
---
- name: Update ntp
hosts: controller:cephstorage
tasks:
- name: Disable ntp
service:
name: ntpd
state: stopped
become: true
[ 2969.767807] XFS (nvme3n1p1): Mounting V5 Filesystem
[ 2969.771030] XFS (nvme3n1p1): Ending clean mount
[ 2969.825108] XFS (nvme3n1p1): Unmounting Filesystem
[ 2969.840499] nvme3n1: p1 p2
[ 2969.852870] nvme3n1: p1 p2
[ 2970.360453] XFS (nvme3n1p1): Mounting V5 Filesystem
[ 2970.364239] XFS (nvme3n1p1): Ending clean mount
[ 2971.478943] XFS (nvme3n1p1): Unmounting Filesystem
[ 2971.811966] XFS (nvme3n1p1): Mounting V5 Filesystem
[ 2971.821437] XFS (nvme3n1p1): Ending clean mount