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 / 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"
#!/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"
/* 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) {
@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
@activedecay
activedecay / ansible-vvv.log
Created January 4, 2019 15:19
ansible npm module verbose run log
sweet@beastmode:~/lab$ aplay -i 'hosty-host,' -e ansible_ssh_pass=vagrant -u vagrant npm-install.yml -vvv
ansible-playbook 2.7.2
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/sweet/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
Parsed hosty-host, inventory source with host_list plugin
@activedecay
activedecay / Makefile
Last active January 1, 2019 21:56
god-like makefile, thanks Beta
# c
# ├── Makefile
# ├── obj
# └── src
# ├── lib.c
# ├── lib.h
# └── server.c
EXE := doit
SRC := src
import {arrayOf} from "./util/array"
import p5 from 'p5' // vector fromAngle
import particle from './particle'
export default function (s) {
s.createSpan('cellScale')
const cellScaleSlider = s.createSlider(2, 100, 9, 1)
s.createSpan('particleCount')
const particleCountSlider = s.createSlider(2, 10000, 40, 1)
s.createSpan('frameRate')
Copyright (c) 2013 Matt Bertolini
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
The MIT License
Copyright (c) 2010, InfraDNA, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: