Skip to content

Instantly share code, notes, and snippets.

These were generated from a markov chain which was fed from a combination of:

  • Soulsborne text (DS1, DS2, DS3, BB; item descriptions + dialog)
  • Linux kernel documentation (5.11; *.rst files)

I generated a bunch of content, and this is the top ~15% or so. I then threw out results that were obviously only drawing from one of souls/linux, or total nonsense. I've also attempted to roughly sort them from best-to-worst.


anonymous
anonymous / IRC client in pure bash 4
Created March 28, 2016 16:57
IRC client written in pure bash using only bash builtin commands and no other binaries.
#!/bin/bash
#no PATH, no way to accidently run any programs
PATH=''
#useful variables
term_height=0
term_width=0
term_scroll_height=0
status_line_row=0
@wisq
wisq / gist:0fa021df52a3bd2485ac
Last active April 25, 2024 10:22
Protip: Bisecting a single commit

Situation: Some commit (on master, but not necessarily head of master) has broken things, but it's a big commit and it's not clear what part broke things.

% git checkout master
% git checkout -b bisect-branch
% git revert <offending commit>

(test here to make sure reverting fixed your problem)

% git bisect start
@plentz
plentz / nginx.conf
Last active April 24, 2024 11:15
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048