Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
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
“My mother died,” Basso said. “Had you heard?”
Antigonus shook his head. “I’m sorry,” he said.
“So am I,” Basso replied, “but mostly because I realised I hardly felt anything when they told me. I waited for it to sink in, it has, and I still haven’t really felt anything. That’s appalling, don’t you think?”
“You should consider yourself lucky,” Antigonus replied. “One of the worst things that happens to a man has just happened to you, and you’ve escaped the suffering.”
Basso nodded. “Mostly,” he said, “it’s a nuisance; an inconvenience. For instance, I’m trying to remember something that happened when I was a kid. I think, I’ll ask Mother, and then I realise I can’t; it’s annoying, frustrating, it itches where I can’t reach, but it’s not grief. Unless I lie to myself, the most I can come up with is, it’s a loss of information, like a library burning down. There’s a whole chunk of my life for which I’m the only source of historical data—well, strictly speaking there’s my sister as well, but in practical ter
set nocp
" Plugins
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $HOME/.vimrc
endif
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'