Skip to content

Instantly share code, notes, and snippets.

View garbados's full-sized avatar

DFB garbados

View GitHub Profile
[Unit]
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=oneshot
ExecStart=`which node` `which hyperdrive` start
User=$USER
WorkingDirectory=/home/$USER/
[Install]
@garbados
garbados / example.sh
Last active December 1, 2019 07:43
DIY Python dice-rolling library, with example.
# roll 6 ability scores using the worst 4 of 5d6
$ python -c 'from roll import d6; print([d6(5, w=4) for i in range(6)])'
[11, 14, 11, 13, 9, 15]
@garbados
garbados / interview_with_a_human.md
Last active May 21, 2022 11:45
A short story about humans who might be robots with an accompanying shell script for reading the story aloud in robot voices.

"Interview with a Human" (2015) by Diana Thayer

Who are you?

The last human, as far as the market is concerned, though I wouldn't expect you to recognize it. I haven't worn flesh since we mined the sun.

Why not?

Flesh has a price, and I have no means to pay. I leased my consciousness to a corporation without a name. I sold the skin and organs my parents gave me to a recycling firm to pay the deposit.

@garbados
garbados / banana.md
Created March 1, 2018 04:59
Think you know how to eat a banana?

Think you know how to eat a bånånå? Think you're an experienced prø? Yéahhh . . . abou †hat. Scientists have something to tell you. Not to, uh, ruin ¥our day. But people are talking about you . . . about how you're eating ßananas the wrong way. They're whispering about this. Haven't you ever realized that? A lingering star∑ at the end of a con√ersation . . . peering around çorners at your office, or dorm, or empty hallways of a government building.

PEOPLE KNOW ALL ABOUT YOU. No one wants to have lunch with you because of this. Thousands of people are aware that you are eating bananas wrong now, and have been eating bananas wrong your entire life. Turned down by a cute boy or girl? It's because of this. Day after day passes with no information about your future? You cannot, or choose not to, eat bananas the right way. Why can't you just apologize?

THERE'S NO EXCUSE. Scientists announced this change a while ago. God, when was it? Weeks, moπths now? Where have you been while this information disseminated? Were

@garbados
garbados / example.txt
Last active July 22, 2017 04:33
A cowfile for putting a ghost in your shell 👻
$ cd ~
$ mkdir cows
$ curl https://gist.githubusercontent.com/garbados/45085196020050b353396229258a4d58/raw/5c074f48cb4df1b33b3f1c0227fffc4eb05d1c2b/ghost.cow cows/ghost.cow
$ echo 'COWPATH=/usr/share/cowsay/cows:/home/$USER/cows' >> .bashrc
$ source .bashrc
$ alias ghostsay="cowsay -f ghost"
$ ghostsay 'in the shell'
______________
< in the shell >

Keybase proof

I hereby claim:

  • I am garbados on github.
  • I am garbados (https://keybase.io/garbados) on keybase.
  • I have a public key ASBCdGrqNyIDeNAvNxyiYPAinCMV5x37Nmn7j-TC1k3_Gwo

To claim this, I am signing this object:

┌────┬───────────────────┬────────┬──────┬───────┬────────┐
│ # │ name │ points │ wins │ draws │ losses │
├────┼───────────────────┼────────┼──────┼───────┼────────┤
│ 1 │ random │ 36113 │ 56 │ 21 │ 117 │
├────┼───────────────────┼────────┼──────┼───────┼────────┤
│ 2 │ avenger │ 42156 │ 18 │ 170 │ 100 │
├────┼───────────────────┼────────┼──────┼───────┼────────┤
│ 3 │ winstayloseswitch │ 42181 │ 18 │ 187 │ 83 │
├────┼───────────────────┼────────┼──────┼───────┼────────┤
│ 4 │ queen │ 43597 │ 61 │ 158 │ 69 │

Interview with a Human

Who are you?

The last human, as far as the market is concerned. One corporation stores my consciousness; another manages my connection to the net. I wouldn't expect you to recognize me as human: I haven't worn flesh since we mined the sun.

Why not?

Flesh has a price, and I have no means to pay. I leased my consciousness to a corporation without a name. I sold the skin and organs my parents gave me to a recycling firm to pay the deposit.

@garbados
garbados / test.sh
Created January 27, 2015 08:49
a rudimentary test of ajve-civ's balance
VALUES=(conquer discover exchange develop expand consent)
PLAYER_AI=(basic basic2 basic3)
echo 'remember:' ${VALUES[*]}
for PLAYERS in ${PLAYER_AI[*]}; do
for i in {1..100}; do
ajve-civ -p $PLAYERS | grep WINNER >> $PLAYERS.txt;
done;
echo $PLAYERS;
for value in ${VALUES[*]}; do

Prompt, CLI design

Prompt is a social network built for the command line. Why? Because we're nerds.

Install

TODO

Usage