Skip to content

Instantly share code, notes, and snippets.

View jkilpatr's full-sized avatar

Justin Kilpatrick jkilpatr

View GitHub Profile
extern crate byteorder;
extern crate bytes;
extern crate failure;
extern crate regex;
use bytes::BufMut;
use bytes::BytesMut;
use failure::Error;
use regex::Regex;
use std::io;
use actix::prelude::*;
use actix::{Actor, Context, StreamHandler};
use byteorder::{BigEndian, ReadBytesExt};
use bytes::BufMut;
use bytes::BytesMut;
use failure::Error;
use futures::future::ok;
use futures::future::FutureResult;
use futures::stream::SplitSink;
use futures::Future;
[exit_client.exits.test]
ip = "test.altheamesh.com"
registration_port = 4875
[exit_client.exits.us_west]
ip = "exit.altheamesh.com"
registration_port = 4875
[exit_client.exits.canada_east]
ip = "canada_east.altheamesh.com"
registration_port = 4875
[exit_client.exits.apac]
[ 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
---
- name: Update ntp
hosts: controller:cephstorage
tasks:
- name: Disable ntp
service:
name: ntpd
state: stopped
become: true
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

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:

@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
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();
#!/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