Skip to content

Instantly share code, notes, and snippets.

View sts10's full-sized avatar

Sam Schlinkert sts10

View GitHub Profile
@sts10
sts10 / pt.txt
Last active January 9, 2024 03:39
A Portuguese wordlist
aba
abade
abadia
abaixo
abandona
abandonada
abandonadas
abandonado
abandonados
abandonando
@sts10
sts10 / s-key.txt
Created May 13, 2023 01:57
Word list from the S/KEY One-Time Password System, via Request for Comments: 1760
A
ABE
ABED
ABEL
ABET
ABLE
ABUT
ACE
ACHE
ACID
@sts10
sts10 / 8192.txt
Last active May 15, 2023 14:00
A uniquely decodable, 8,192-word list for passphrase generation
abandon
abandoned
abbey
abbot
abdomen
abdominal
abilities
abnormal
aboard
abolished
@sts10
sts10 / new-bips.txt
Last active May 1, 2023 18:35
A uniquely decodable version of the BIPS-39 English word list
abandon
ability
able
about
above
absent
absorb
abstract
absurd
access
@sts10
sts10 / css-bases.markdown
Last active April 21, 2024 11:42
Simple CSS base files
@sts10
sts10 / basic-init.vim
Last active December 23, 2022 06:14
Basic Vim config file (vimrc) for Linux (2022)
set statusline=%f
set statusline+=\ %h%w%m%r
set statusline+=%=
set statusline+=%-16(\ %l/%L\%)%P
set statusline+=\ %P/%L
set statusline+=\
nnoremap <silent> gx :normal mxviugx<Esc>`x
nnoremap <silent> gX :call system('open ' . expand('%'))<CR>
@sts10
sts10 / why-whittle.markdown
Last active October 24, 2022 14:14
An exploration of different functionalities of Tidy

Whittle vs print_first vs print_rand: An experiment

Context: This is a demonstration of different functionalities of a wordlist manipulation tool called Tidy.

Given this word list, which is sorted by Google Ngram word frequency with the most common word listed first, plus a few prefix words thrown in to make this hypothetical work well:

common
challenged
electrodes
chromium
@sts10
sts10 / sardinas-patterson.rs
Created August 10, 2022 23:07
My (slow and messy) implementation of Sardinas-Patterson in Rust
// Following along with https://github.com/danhales/blog-sardinas-patterson/blob/master/index.ipynb
fn main() {
let c = vec!["a".to_string(), "an".to_string(), "apple".to_string()];
// let c = vec!["02".to_string(), "12".to_string(), "120".to_string(), "20".to_string(), "21".to_string()];
println!("c1 is {:?}", generate_c1(c));
assert!(
generate_c1(vec!["a".to_string(), "an".to_string(), "apple".to_string()])
== vec!["n".to_string(), "pple".to_string()]
);
@sts10
sts10 / rust-command-line-utilities.markdown
Last active November 14, 2024 19:54
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@sts10
sts10 / kitty.conf
Created January 16, 2020 20:24
My config file for Kitty Terminal Emulator
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family JetBrains Mono Medium
bold_font JetBrains Mono Bold