Skip to content

Instantly share code, notes, and snippets.

View bjcubsfan's full-sized avatar
👋

B. J. Potter bjcubsfan

👋
View GitHub Profile
@bjcubsfan
bjcubsfan / Xorg.0.log.old
Created April 29, 2015 13:15
Arch Linux hard lock up logs
[ 117.579]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[ 117.579] X Protocol Version 11, Revision 0
[ 117.579] Build Operating System: Linux 3.19.2-1-ARCH x86_64
[ 117.579] Current Operating System: Linux lore 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 x86_64
[ 117.579] Kernel command line: BOOT_IMAGE=../vmlinuz-linux root=/dev/sda3 rw ipv6.disable=1 initrd=../initramfs-linux.img
[ 117.579] Build Date: 14 April 2015 10:34:18AM
[ 117.579]
[ 117.579] Current version of pixman: 0.32.6
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxRP8b8c/BUxzh8Iq4HIhBadebIvRD9SHywzrDCKPBxQ4pelfQQdGG5F4134nMFuwnJHjx5+aAzP3TSs53rADw2hBnFr73eXgaWR/YJg81QQqdosKM8F34w8tOhOdkqbKc0kUoPX/mAXGiIyXz/V8U/Id5msVVK/j6WbXS5HFTbUowXJIuNUOdsCH7cWwLbaw43tohS7iRNxHezKpJG1t4p0Doap3J6xIy2VinrwdIrCjCDnReewT5fejF0OtM7PKqJU8hZU6hWF407Yi7dlDgtgbQI9VOVnSVssnzebshzFTaQk20wxQj0gE68ALXU12I919r2iVle20mYYvUXO9UQ== bpotter@lore
@bjcubsfan
bjcubsfan / upgrade-arch
Created March 10, 2015 16:03
The script I use to upgrade arch linux once a month
#!/usr/bin/env zsh
print -n "Does the new linux and zfs-git use the same kernel verision?
https://www.archlinux.org/packages/core/x86_64/linux/
https://aur.archlinux.org/packages/zfs-git/
"
read -q REPLY
if [[ $REPLY == "y" ]] ; then
set -x
@bjcubsfan
bjcubsfan / making_list.py
Last active August 29, 2015 14:16
How to make this list
comm_status_names = ['comm_status_00',
'node_id_00',
'comm_status_01',
'node_id_01',
'comm_status_02',
'node_id_02',
'comm_status_03',
'node_id_03',
'comm_status_04',
'node_id_04',
@bjcubsfan
bjcubsfan / gist:da2df47d315ce5e66917
Last active August 29, 2015 14:07
This table shows the daily frequency with which I press keys on my keyboard. I am thinking about Ergodox [1] and alternative keyboard layouts [2]. I used linux logkeys to spy on myself and this script to analyze https://github.com/waas/personal/blob/ab48ac82ca917f17256884a2fb4a7589b68e02f8/bpotter/analyze_key_strokes.py [1] - http://jjt.io/2013/…
# rank key_pressed presses_per_day
1 <Space> 1096.6
2 <BckSp> 754.9
3 <Return> 634.3
4 e 610.9
5 t 571.2
6 s 511.4
7 o 485.2
8 n 475.0
9 l 473.9

Tutorials

Reproducible Science

nullius in verba (take nobody's word for it) -- royal society motto

Testing Speed

  • on wifi: 7.52 down 11.64 up
fort.1-0 45 1078493005 10 10 3 10 3 0 0 2 23687212.2041 43.0 -1970111.5654 0.001 0 5 23583885.0178 44.5 -2273253.5134 0.001 0 9 25169587.3240 37.5 -593204.8013 0.004 0 15 20191710.1719 55.5 -5576016.2732 0.000 0 18 22909779.6587 47.9 -2785159.8347 0.001 0 21 22524419.7009 48.2 -3786679.0383 0.000 0 22 25504545.4285 37.3 -252805.7620 0.002 0 24 23072724.1375 45.9 -2609362.4536 0.000 0 26 21480587.6008 49.0 -4593986.8140 0.001 0 29 21093978.2878 53.0 -4240589.4766 0.000 0 2 23687215.8870 37.8 -1941506.0974 0.003 0 5 23583891.4771 41.8 -2238588.6094 0.001 0 9 25169595.4771 36.2 437071.2705 0.007 0 15 20191713.0527 51.9 -5544453.1438 0.000 0 18 22909782.4382 38.5 -2388135.1414 0.002 0 21 22524422.5742 42.3 -3597302.8162 0.001 0 22 25504550.9380 36.6 -245377.7478 0.005 0 24 23072733.2852 45.5 -2600590.8689 0.000 0 26 21480592.8469 44.2 -4433646.6873 0.001 0 29 21093981.5798 47.0 -4210207.1226 0.000 0 133 36990646.9705 49.1 42652.1836 0.002 0 135 39051423.4336 43.3 2379.2346 0.002 0 138 37241506.1226 52.3 3697.7480
@bjcubsfan
bjcubsfan / run.md
Last active August 29, 2015 14:00
2014 Memorial Marathon Playlist
  • Mgmt - Time To Pretend
  • M.I.A. - Paper Planes
  • Passion Pit - Moth's Wings
  • The Heavy - How You Like Me Now
  • Jay-Z - Ni**as In Paris
  • Jay-Z - Empire State Of Mind [Jay-Z + Alicia Keys] (Explicit)
  • Kanye West - Stronger
  • Jimmy Eat World - The Middle
  • Mgmt - Kids
  • Justin Timberlake Featuring Timbaland - SexyBack
This script creates a subprocess, frame_retriever, to
read WAAS network traffic from an interface or a file.
frameRetriever.py places all WAAS frames received into a queue.
The frames are then sent to a hopper via 0MQ.
Usage:
packet_harvester.py [-h] [-v] [-i INPUT] [--clipping MAX_BYTES]
[--limit LIMIT] [--not-ubuntu] [--throttle]
[--hopper ADDR] [--list_interfaces]
@bjcubsfan
bjcubsfan / gist:9493224
Last active August 29, 2015 13:57
Django running Python error
2014-03-11T19:04:53 Beginnning command: "cd /wmd/source/staging/sysmon/automated/iad/2014/anomaly_presentation/2014-03-11; /wmd/software/prod/tools/anomaly_database/anomaly_slide.py yamls/submitted_since.yaml yamls/resolved_since.yaml yamls/related.yaml yamls/pending_since.yaml yamls/SL1.yaml yamls/R4.yaml yamls/Field.yaml yamls/RS.yaml yamls/BS1.yaml yamls/ES1.yaml yamls/RSGST_Prot.yaml yamls/SGST_Prot.yaml "
2014-03-11T19:04:53 STDERR: Traceback (most recent call last):
File "/wmd/software/prod/tools/anomaly_database/anomaly_slide.py", line 28, in <module>
from waas.docopt import docopt
ImportError: No module named waas.docopt