Skip to content

Instantly share code, notes, and snippets.

Required materials:

  • SD Card reader

Assembly / installation

@Licenser
Licenser / install.sh
Last active June 14, 2020 17:11
unifi-smartos
cd /opt/local/
curl -O http://dl.ubnt.com/unifi/4.6.3/UniFi.unix.zip
pkgin install mongodb-2.6.7 unzip openjdk7 git gmake gcc47 apache-maven javacc
unzip UniFi.unix.zip
cd UniFi
rm bin/mongod
ln -s /opt/local/bin/mongod /opt/local/UniFi/bin/
## The snappy library isn't working on Solaris/SmartOS here is how to get a new one.

The missing Shadowrun 6e Character Generation

The CRB suggests teh following steps:

  1. Define your role and background
  2. Pick your priorities
  3. Pick your positive and negative qualities
  4. Spend the starting kamra
  5. Polish the character
@Licenser
Licenser / numbers.md
Last active February 6, 2020 20:24
snmalloc bench

Perf bench

MiMalloc (same die)

#[Mean       =     73513.96, StdDeviation   =      3364.16]
#[Max        =       175103, Total count    =     27556509]
#[Buckets    =           30, SubBuckets     =         3968]

use std::io::{Read, Seek, SeekFrom, Write};
use std::slice;
use std::time::Instant;
use std::{fs::OpenOptions, io::Result};
use std::ptr;
use std::mem::forget;
const BUF_SIZE: usize = 1024 * 32;
const FILE_SIZE: usize = 1024 * 1024 * 512;
const QUEUE_DEPTH: usize = 32;
fn bad_fn<'script, 'event, 'run, Ctx>(
&'script self,
context: &'run Ctx,
event: &'run mut Value<'event>,
meta: &'run mut Value<'event>,
local: &'run mut Value<'event>,
path: &'run ast::Path,
value: &'run Value<'event>,
stack: &'run ValueStack<'event>,
) -> Result<Value<'event>, Error>
#!/bin/sh
# requires `remarshal` and `jq` to be installed
if [ -d "$1" ]
then
path="$1"
else
path="."
fi
#!/bin/sh
set -e
SCRIPT=$(readlink $0 || true)
if [ -z $SCRIPT ]; then
SCRIPT=$0
fi;
SCRIPT_DIR="$(cd `dirname "$SCRIPT"` && pwd -P)"
RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd -P)"
[package]
name = "j2m"
version = "0.1.0"
edition = "2018"
[dependencies]
base64 = "*"
serde = "*"
serde_json = "*"
rmp-serde = "*"
@Licenser
Licenser / gist:215838a146284f02fbf0
Created August 11, 2015 19:31
clojure tools reader errro
MacBook-Pro:cerberus heinz [test] $ lein ancient upgrade :interactive
[leiningen "2.5.2"] is available but we use "2.5.1"
Do you want to upgrade? [yes/no] yes
running test task ["test"] ...
lein test cerberus.example-test
Ran 1 tests containing 1 assertions.
0 failures, 0 errors.