Skip to content

Instantly share code, notes, and snippets.

dukechem dukechem

Block or report user

Report or block dukechem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dukechem / rdate-windows-howto.txt
Last active Nov 13, 2019
howto have winXP use psrdatesvc to sync time on private non-internet network without NTP from a windows or linux serving RFC868 time (default port 37).
View rdate-windows-howto.txt
Both old XP and Server are kept safe by closing all ports on XP, and allow that XP computer to connect only to port 37 on a (rfc868 aka "rdate") time-server.
(The time-server does not have run a server-os: it can be almost any linux device, or even a windows-pc.)
With all ports closed on XP, if XP is infected, such as by a usb-key, it cannot spread over network to time-server, and time-server cannot infect XP.
On XP, the psrdatesvc (PermaSoft Rdate service) safely keeps XP clock correct by getting date and time from port 37 on time SerVeR.
Old XP pc only able to see RFC868 time SerVeR (rdate at port 37)
169.254.x.y (SerVeR) Only port 37 needs be open on the 169.254.x.y fixed IP
------ +----------------+
dukechem / python.rb
Last active Oct 3, 2019 — forked from SamuelMarks/python.rb
python3.6.9 brew formula. Proof of concept that generally fails: brew switch python3 does not really work right: i.e. pip3 fails. Use pyenv/miniconda instead.
View python.rb
class Python < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage ""
url ""
sha256 "5e2f5f554e3f8f7f0296f7e73d8600c4e9acbaee6b2555b83206edf5153870da"
revision 1
bottle do
sha256 "1bc5a2d3f0a8602bf2f46de7c43fcb6dde4f110c0f4518d4e802cb1f733a43de" => :high_sierra
sha256 "131d39120ac6ca2f21bf231de7414c08916cea472bc5219e0bcb49541f77cb9f" => :sierra
dukechem /
Last active Mar 8, 2019 displays how many rows & cols, and shows first 2 columns of csv file(s). Bash/sh script using head, tail, wc, and awk.
if [ $# -eq 0 ]
bnam=$(basename "$0")
echo "Usage: $bnam *.csv (displays how many rows & cols, and shows first 2 columns of csv file(s))"; exit
# Total Rows Words Size = 76 76 5587 foobar.csv
# Line 2 has 20 Cols = 391.43,6,0,4.54,4,71.33,3.22,4,2,4,4,2,2,2,0.27,1,576.35,0.13,-1,538.32
You can’t perform that action at this time.