Skip to content

Instantly share code, notes, and snippets.

View wohali's full-sized avatar
💭
I may be slow to respond.

Joan Touzet wohali

💭
I may be slow to respond.
View GitHub Profile
@wohali
wohali / makeit.py
Created December 13, 2017 06:49
repro support script for apache/couchdb#745
#!/usr/bin/python3
"""
Puts random docs in localhost:5984/foo.
Usage:
makeit.py <number_of_docs> [--size=<size>]
makeit.py -h | --help
makeit.py --version
Options:
@wohali
wohali / script.sh
Created January 26, 2018 04:29
save this as /etc/dhcp/dhclient-enter-hooks.d/no_default_route and chmod +x it
#!/bin/sh
# prevent dhclient-script from setting any default route
# except for ens6, which is our public interface
INTERFACE_DEFAULT_ROUTE="ens6"
DEBUG_FILE="/tmp/dhclient-nodefroute.debug"
echo "Interface ${interface} entered DHCP because of $reason." >> $DEBUG_FILE
@wohali
wohali / x1e.md
Created January 5, 2019 06:44
ThinkPad X1 Extreme with Debian 9 Settings

fix console font (bigger)

sudo dpkg-reconfigure console-setup
sudo setupcon

fix grub font size

Changes in the VCO153 circuit

  • Freq input

    • R65 added
    • R20 changed 150k -> 249k
    • R23 changed 2M2 -> 3M3
  • PWM

    • R64 added (to limit range to 50%-90%...helps with DC offset a little)
  • PWM LVL pot in series with PWM In

MXV11-B2 Y3.0
General syntax is
[CSR] command [UNIT]
[CSR] is optional (octal) - see manual for default
[UNIT] is optional (octal) - 0 is default
Command is one of -
@wohali
wohali / DYV4DS.DOC
Last active September 1, 2019 03:59
.TYPE DU1:DYV4DS.DOC
! COMMAND AND DOCUMENTATION FILE TO UPDATE THE DISTRIBUTION RT11-V4 HANDLER
! DYV4DS.DOC 30-DEC-80 880 VERSION
! THIS FILE BOTH DOCUMENTS THE PROCEDURE AND CONTAINS THE COMMANDS
! REQUIRED TO MODIFY THE DEC RT11-V4 RX02 HANDLER TO SUPPORT DOUBLE
! SIDED OPERATION.
!
! SETUP FOR DUAL FLOPPY SYSTEM
! ----- --- ---- ------ ------
@wohali
wohali / sizes.md
Last active September 1, 2019 23:25
DEC 8" Floppy Sizes
Drive Type Diskette type RT-11 Blocks (512b) Image size (bytes)
RX01 SSSD 494 blocks 252928 bytes
RX02 SSDD 988 blocks 505856 bytes
RX03 DSDD 1976 blocks 1011712 bytes

How to set up a Raspberry Pi as a Stratum 1 GPS Clock

Hardware setup

Good reference for the HARDWARE PART ONLY: https://ava.upuaut.net/?p=951 if you use this board. Stop when you get to "Enabling PPS/ATOM support in NTPD." and skip down to "Setting stationary mode."

Other hardware guides include https://blog.webernetz.net/ntp-server-via-gps-on-a-raspberry-pi/ and https://robrobinette.com/pi_GPS_PPS_Time_Server.htm but follow the hardware setup section only, including editing your /boot/cmdline.txt, /boot/config.txt and /etc/modules files.

@wohali
wohali / couchdb-downloads-2020.md
Last active March 28, 2021 18:57
CouchDB download statistics for April 2020 - April 2021

CouchDB downloads, Apr 1 2020 - Apr 1 2021

platform # of DLs (approx) # of DLs in 2019 (approx) comments
Docker 70.5m + 19m = 89.5m 60.4m + 6.7m = 67.1m See notes
Windows 72k 100k 75% 3.x, 25% 2.x. Extrapolated from 253d of data
deb (Debian / Ubuntu) 65k 65k 76% are 3.x, 24% are 2.x
rpm (CentOS / RedHat) 63k 40k 69% are 2.x, 31% are 3.x
source .tar.gz 11.6k 38k extrapolated from 10 days of data; primarily 3.1.1
Mac 18k 25k 67% 3.x, 32% 2.x. Extrapolated from 253d of data
@wohali
wohali / used-synth-prices-aug-1994.txt
Last active March 2, 2020 16:42
Used Gear Price List (USA) from August 1994
From afo@wal.hp.com Tue Aug 30 15:39:57 EDT 1994
Article: 8609 of rec.music.makers.marketplace
Newsgroups: rec.music.makers.marketplace,rec.music.makers.synth,rec.music.makers
Path: yale!yale.edu!spool.mu.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!apol
lo.hp.com!netnews
From: afo@wal.hp.com (Aaron Oppenheimer)
Subject: USED GEAR PRICE LIST (USA)
Sender: usenet@apollo.hp.com (Usenet News)
Message-ID: <AFO.94Aug30135042@hpwargd.wal.hp.com>
Date: Tue, 30 Aug 1994 17:50:42 GMT