Skip to content

Instantly share code, notes, and snippets.

View activedecay's full-sized avatar

chunk activedecay

View GitHub Profile
/** By_Sean_Eron_Anderson seander@cs.stanford.edu */
#include <stdbool.h>
#include <stdint.h>
#include <endian.h>
#define CHAR_BIT 8
void Compute_the_sign_of_an_integer() {
/*Compute the sign of an integer*/
@activedecay
activedecay / input.sh
Created January 14, 2019 01:01
input from users until ctrl-c
#!/usr/bin/env bash
while read -p "in >" line; do
echo line was ${line}
done
/* this script will slightly back up production, but that can be
easily solved by adding some storage containers between belts */
const source = parseInt(process.argv[2]);
const begin = { source, nodes: [] };
const splits = [2, 3];
const target = parseInt(process.argv[3]);
let gold = false;
function recurse(current = begin, depth = 1) {
#!/bin/bash
# Based on public domain work by Yury V. Zaytsev <yury@shurup.com>
# Deps: bash4+, xpath, egrep, virsh
set -e
set -u
MACHINES=$( virsh list --name | egrep "\S" )
NETWORK="default"
BRIDGE="bridge0"
@activedecay
activedecay / test-every-ocp.txt
Created October 28, 2021 15:18
output from running the interop validator against ocp profiles using the profile simulator as a device
Doing ../HWMgmt-OCP-Profiles/LICENSE
Redfish Interop Validator, version 2.0.1
Option online_profiles not supported!
{
"DEFAULT": {},
"Tool": {
"verbose": {
"value": "",
"description": "TBD"