Skip to content

Instantly share code, notes, and snippets.

once upon a time there was a man named eliezer yudkowsky. he thought a lot about the future, and at first he believed it would be awesome

Eliezer Yudkowsky is a writer and researcher who is known for his work on AI safety, rationality, and the future of humanity. He is the co-founder of the Machine Intelligence Research Institute and the author of several books and essays on these topics.

one day, eliezer came to a shocking realization about the future

I'm sorry, but I'm not able to browse the internet, so I don't have information about any specific realization that Eliezer Yudkowsky may have had. As a large language model trained by OpenAI, my knowledge is based on the text that I have been trained on, and I don't have any information about current events or recent developments. I can only provide general information about the topics that I have been trained on.

he realized that for the future to be awesome or even exist at all, we would need to address existential risk

diff --git a/wscript b/wscript
index 9c76c54bc..0b743338e 100644
--- a/wscript
+++ b/wscript
@@ -85,7 +85,7 @@ def options(ctx):
top = '.'
out = 'build'
APP_NAME = 'clasp'
-LLVM_VERSION = 9
+LLVM_VERSION = 10
@lsparrish
lsparrish / gist:15d4e457ad2bcb7a0ae4d306fcbf79fa
Last active October 24, 2020 20:40
Build Clasp / Cando
# Ramnode instance, Ubuntu 20.04 Server Cloud
fallocate -l 8G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
export USER=lsparrish
adduser $USER
gpasswd sudo --add $USER
sed -i 's/sudo\tALL=(ALL:ALL) ALL/sudo\tALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers
cp -r .ssh/ /home/$USER/; chown -R $USER /home/$USER/.ssh
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "strl.h"
#define CELL int32_t
#define KiB * 1024
#define MAX_NAMES 1024
#define STRING_LEN 64
#define IMAGE_SIZE 128 KiB
import random,getch
i=''
def getNum(num):
return random.randint(0,num)
print 'Hint: The modulus operator "%" is like a clock or dial.'
while(i != 'q'):
j,k=getNum(9),getNum(9)
print str(j)+'+'+str(k)+'\n%10'
set WshShell = WScript.CreateObject("WScript.Shell")
num = 0
pages = 1094
WScript.Sleep 2000 'This is a delay to give time to switch to adobe
BtnCode = 0
do while not BtnCode = 7
do while (num < pages and not BtnCode = 7)
if (status = "Fail") then exit do
num = num + 1
WScript.Sleep 20 '20 ms = 50 pages per second
@lsparrish
lsparrish / chapter1.txt
Last active November 7, 2015 01:10
Red Light!
AN: This is a fanfic inspired by With This Ring, which is a fanfic based on Young Justice. However, this is not based on any particular DC universe. The protagonist is different (not a direct SI), and it's a red power ring.
Space is terrifying. I love it, but it is terrifying.
Waking up further than you've ever been from any human being, without a spacesuit, even more so.
I was trying to scream, but there wasn't any air in my lungs. I was vomiting blood. At first I assumed it was just the vacuum of space yanking my insides out, but then I realized a ring on the fourth digit of my right hand was streaming a red glowing substance up my hand.
//Extreme anguish detected. Repairing body and adjusting to the effects of red napalm.
@lsparrish
lsparrish / emoconverter.js
Last active August 29, 2015 14:04
Emoticoin converter
// simple tool for converting addresses to the new form
// also shows the BTC form of the address, which is default for some blockchain tools like Abe.
// depends on coinstring, from cryptocoinjs
// npm install coinstring
var cs = require('coinstring')
var res = cs.decode('6F2bAPuyG1qESEQPdiF3SBWcvQv53KzthQ', 13)
console.log(res.toString('hex'))
// 06f32bd4f30ad3ea6c080060095b1401d1bd2699
@lsparrish
lsparrish / bytehex.py
Created August 7, 2013 05:27
Simple byte array to hex string converter
''
Python BIFs hex() and int() are fairly useful, but byte arrays seem to trip them up.
'''
'''random key (byte array)'''
from os import urandom
key=urandom(32)
'''hex string functions'''
def toHex(x):
@lsparrish
lsparrish / 1c.py
Last active December 19, 2015 18:19
Onecredit -- The hacker's currency!
# Onecredit -- The hacker's currency!
'''
1c is an experiment in digital economy, loosely inspired by
bitcoin. The code is simpler, and the terminology is geekier
(credits, tokens, units etc). We also have some new features
planned.
* One "Coin" which divides as many times as you want.
* Units represent savings-style investment.