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

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 / 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
@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
! ----- --- ---- ------ ------
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 -

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

@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

@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 / 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 / json-pprint.py
Last active January 26, 2018 04:34
json pretty printer in python
#!/usr/bin/env python
# (C) 2017 wohali
#
# I don't give a fuck about how this will be used. Everything will be allowed, including changing the name, citing wrongly, claiming ownership and destroying the computer. You are allowed to do anything with this as long as:
#
# 0. I don't give a fuck.
# 1. You agree that you don't give a fuck.
# 2. You agree that your use of this will have nothing to fuck with me now and in the future.
# 3. You don't fuck me legally/illegally.
#

Keybase proof

I hereby claim:

  • I am wohali on github.
  • I am wohali (https://keybase.io/wohali) on keybase.
  • I have a public key ASAkSYRbJrWZ9idg-PaOPWzyELLINJFtu63PiUjG4pxVMgo

To claim this, I am signing this object: