Skip to content

Instantly share code, notes, and snippets.

View johnclaus's full-sized avatar

John Claus johnclaus

  • The Front Range
View GitHub Profile
@mheffner
mheffner / fly.toml
Last active September 24, 2023 14:50
Running a Mastodon server on Fly.io (plus some stuff)
app = "mastiff"
primary_region = "iad"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[build]
image = "tootsuite/mastodon:v3.5.5"
@ajlake
ajlake / create_bundle.sh
Created December 6, 2019 20:04
git bundle tricks
#!/bin/bash
set -eux
# Normally, we would just create a vanilla git bundle
# --> git bundle create ../REPO.bundle --all HEAD
#
# However, unbundling a large complex repository will perform
# expensive reachability / index creation computations.
# Normally git packfiles are optimized for over-the-wire data
@djdefi
djdefi / ghe-best-practices.md
Last active August 24, 2022 17:13
GitHub Enterprise Server best practices
@justanotherdot
justanotherdot / Dockerfile.bite_sized_networking
Last active May 20, 2022 08:56
A Dockerfile with (almost) all the tools mentioned in Bite Size Networking by Julia Evans
# N.B. The only tool missing here that is mentioned in the document is `zenmap`
# purely because this image is intended to be run via a CLI and `zenmap` is a GUI
# to `nmap` i.e. one can play around with the tools by running:
#
# $ docker build --name bite_size_networking:latest .
# $ docker run --rm -d --name bsn_test bite_size_networking:latest
# $ docker exec -it bsn_test bash
#
# Alternatively, one can change the `ENTRYPOINT` to `["bash"]` and run:
#

Yosemite Valley Sep 3d 1843

Dear Sister Sarah,

I have just returned from the longest & hardest trip I have ever made in the mtns., having been gone over five weeks. I am weary but resting fast, Sleepy but sleeping deep & fast, hungry but eating much – For two weeks I explored the glaciers of the summits east of here, sleeping among the snowy mtns without blankets & with but little to eat on account of its being so inaccessible. After my icy experiences it seems strange to be down here in so warm & flowery a climate.

I will soon be off again determined to use all the season in prosecuting my researches — will go next to Kings river a hundred miles south, then to Lake Tahoe & adjacent mtns. & in winter work in Oakland with my pen. The Scotch are slow but some day I will have the results of my mountain studies in a form in which you all will be able to read & judge of them. In the mean time I write occaisonally for the Overland Monthly but neither these magazine articles nor my first book will form any fini

@seancribbs
seancribbs / qcon-nyc-2017-resources.md
Last active July 29, 2017 16:49
Resources for my talk "Adopting Stream Processing for Instrumentation" at QCon New York 2017
#! /bin/bash
set -euo pipefail
# This script will remove automatic association for all networks not listed in the whitelist
# passed as the first argument. Passwords will NOT be removed from the Keychain.
#
# Alternatively, you can untick "Remember networks" in Network Preferences > Wi-Fi > Advanced,
# but then you won't be able to auto-join networks even temporarily, and you might already
# have a long list to go through.
#
% perf stat ./tsx_per_core
Aborts: 73381
No reason: 57535
reason 0: 0
reason 1: 15833
reason 2: 15833
reason 3: 13
reason 4: 0
reason 5: 0
81597398 68933303 85476712 72654716 76819140 72119787 77728188 74167801 75244800 72119632 75951739 72606078 74035109 70998737 89185152 58165171 86098994 83338241 88201758 81982602 77964219 77861602 75642915 79207346 73514808 79929374 74429694 71508632 0 0 0 0
@pkhuong
pkhuong / brand.c
Created December 28, 2016 03:23
Track state by value with fictitious functions…
/* frama-c test.c -wp -then -report */
struct foo {
unsigned int x;
double y;
};
/*@ ghost int state_table[1UL << 30]; */
/*@ ghost unsigned long count; */