Skip to content

Instantly share code, notes, and snippets.

View cransom's full-sized avatar

Casey Ransom cransom

View GitHub Profile
@cransom
cransom / log.txt
Last active March 11, 2018 04:34
pipe speeds
143yoga:~% timeout 1 cat /dev/zero | mbuffer -q -l cat.txt -o /dev/null
zsh: exit 124 timeout 1 cat /dev/zero |
zsh: mbuffer -q -l cat.txt -o /dev/null
143yoga:~% timeout 1 mbuffer -q -l native.txt -i /dev/zero -o /dev/null
124yoga:~% tail -n 1 cat.txt native.txt
==> cat.txt <==
mbuffer: in @ 1140 MiB/s, out @ 1140 MiB/s, 799 MiB total, buffer 0% full
==> native.txt <==
mbuffer: in @ 1995 MiB/s, out @ 1995 MiB/s, 1398 MiB total, buffer 0% full
#!/usr/bin/env bash
awk 'function wl() {
rate=64000;
return (rate/160)*(0.87055^(int(rand()*10)))};
BEGIN {
srand();
wla=wl();
while(1) {
wlb=wla;
wla=wl();
{ repoPrs, writeText }:
let
inherit (builtins) fromJSON toJSON readFile attrNames map;
prs = fromJSON (readFile repoPrs);
nixpkgs = (import ../etc/lib/version.nix);
prIds = attrNames prs;
genJobSet = id:
let
info = prs."${id}";
#overlay for gitless.
self: super:
let
inherit (super) fetchFromGitHub pythonPackages stdenv;
in
{
#{ fetchFromGitHub, pythonPackages, stdenv }:
gitless = super.pythonPackages.buildPythonApplication rec {
import <nixpkgs/nixos/tests/make-test.nix> {
nodes = {
testvm =
{ config, lib, pkgs, ... }:
let
CacheMemcachedlibmemcached = buildPerlPackage rec {
name = "Cache-Memcached-libmemcached-0.04001";
src = fetchurl {
Building native extensions with: '--with-xml2-config=/nix/store/7900k6sfgwrpqmhgj27c1234l57kqj7z-libxml2-2.9.4-bin/bin/xml2-config --with-xslt-config=/nix/store/r09ik1avdwifxnrrghyc483j04aafzk6-libxslt-1.1.29-bin/bin/xslt-config'
#include <ESP8266WiFi.h>
#include <ESP8266httpUpdate.h>
#include <PubSubClient.h>
// OTA Firmware Version
const char* VERSION = "Remote_Control_Switch_Module_MQTT.bin_v0.000";
// gpio info
130petit:~% journalctl -u postfix -n 100000 | grep point@nick
Oct 26 14:21:04 petit.hubns.net postfix/smtp[31416]: 54C13281639: to=<vogeln@gmail.com>, orig_to=<point@nick.hubns.net>, relay=gmail-smtp-in.l.google.com[108.177.9.26]:25, delay=0.49, delays=0.17/0/0.07/0.24, dsn=2.0.0, status=sent (250 2.0.0 OK 1509027664 k144si1459871oih.56 - gsmtp)
Oct 26 16:03:21 petit.hubns.net postfix/smtp[8665]: 5D29D281B30: to=<vogeln@gmail.com>, orig_to=<point@nick.hubns.net>, relay=gmail-smtp-in.l.google.com[108.177.9.26]:25, delay=0.28, delays=0.03/0/0.07/0.17, dsn=2.0.0, status=sent (250 2.0.0 OK 1509033801 s3si1484857oig.271 - gsmtp)
Oct 26 18:04:22 petit.hubns.net postfix/smtp[19826]: 7CC852801FC: to=<vogeln@gmail.com>, orig_to=<point@nick.hubns.net>, relay=gmail-smtp-in.l.google.com[2607:f8b0:4003:c13::1a]:25, delay=0.51, delays=0.26/0/0.07/0.17, dsn=2.0.0, status=sent (250 2.0.0 OK 1509041062 a53si1792824ote.217 - gsmtp)
Oct 26 22:16:18 petit.hubns.net postfix/smtp[17642]: 620F9281D50: to=<vogeln@gmail.com>, orig_t
# This allows a user to run nix-shell in the tech repo and then all
# of their system dependencies will be handled. More info on NixOS:
# https://nixos.org/
# http://nixos.org/nix/manual/#sec-nix-shell
{ pkgs ? import <nixpkgs> {}
}:
(pkgs.buildFHSUserEnv {
name = "ihatevagrant";