Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker dmd

View GitHub Profile
This file has been truncated, but you can view the full file.
i: 406302
the: 402777
a: 311500
to: 232430
it: 230250
is: 207686
and: 195452
juffo: 182675
that: 181886
wup: 179490
This file has been truncated, but you can view the full file.
i: 406302
the: 402777
a: 311500
to: 232430
it: 230250
is: 207686
and: 195452
juffo: 182675
that: 181886
11: 180509
keywords:
Celeste Drucker: 5828
Daniel Drucker: 4071
Sabina Drucker: 2883
Ariel Weinberg: 1805
Sarah Johnstone: 1086
wedding: 659
Ada-mew: 576
Crispin Weinberg: 511
Dalmatian Coast: 441
from math import comb
import sys
def probability_of_eights(sequence_length, total_string_length=64):
digits = 16
def p(k):
placements = comb(total_string_length - k * (sequence_length - 1), k)
combinations = digits ** (total_string_length - k * sequence_length)
total_ways = digits ** total_string_length
return placements * combinations / total_ways
from math import comb
def probability_of_eights(sequence_length, total_string_length=64):
digits = 16
def p(k):
placements = comb(total_string_length - k * (sequence_length - 1), k)
combinations = digits ** (total_string_length - k * sequence_length)
total_ways = digits ** total_string_length
return placements * combinations / total_ways
probability = 0
pool: Pool1
state: ONLINE
scan: scrub repaired 0B in 2 days 02:09:19 with 0 errors on Tue Nov 7 01:09:35 2023
config:
NAME STATE READ WRITE CKSUM
Pool1 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/76ef082c-4eb8-11eb-8e3e-3cecef0c1776 ONLINE 0 0 0
gptid/76ee319e-4eb8-11eb-8e3e-3cecef0c1776 ONLINE 0 0 0
dn: CN=dd328,CN=Users,DC=partners,DC=org
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: dd328
sn: Drucker
l: Belmont
st: MA
title: Manager, McLean Imaging Center Info. Systems
11:39:50 > Discovery profile: Default discovery profile
11:39:50 > Discovery class: data-link (data-link layer)
11:39:50 > Discovery on: 192.168.0.0/24
11:39:50 > Discovery round starting.
11:39:50 > Host is up: 192.168.0.175
HW Address: 4C:20:B8:F2:FD:93
11:39:50 > Host is up: 192.168.0.1
HW Address: D8:47:32:DA:ED:88
HISTSIZE=10000000
SAVEHIST=10000000
setopt BANG_HIST # Treat the '!' character specially during expansion.
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format.
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
setopt SHARE_HISTORY # Share history between all sessions.
setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history.
setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again.
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate.
[[ $UID = 0 ]] && ZSH_DISABLE_COMPFIX=true
HISTFILE=$HOME/.zsh_history
for lib ($HOME/dotfiles/zsh/*.zsh)
source $lib
autoload -U compaudit compinit
compinit -i -C -D
# lower case can mean upper case, but not vice versa