Skip to content

Instantly share code, notes, and snippets.

@bitofhope
bitofhope / Tyovaki.java
Created March 9, 2016 21:37
Yhteisrintama
public class Tyovaki
{
/** Proletaarit, kahleita teiltä /
* muut koskaan ei murskaksi lyö /
* siksi työväen vapautus olla voi /
* vain työväenluokan työ */
private void vapauta()
{
// omitted
}
@bitofhope
bitofhope / keybase.md
Created March 16, 2016 19:15
keybase.md

Keybase proof

I hereby claim:

  • I am bitofhope on github.
  • I am bitofhope (https://keybase.io/bitofhope) on keybase.
  • I have a public key ASBQYP-3QvoURE5wgXw4dfAmzGgotQtJmfIUokAUcacjxwo

To claim this, I am signing this object:

@bitofhope
bitofhope / elefanssin_elegia
Created May 25, 2016 17:45
Elefanssin Elegia
Paradigman vaihto keskellä
riviä
rivinvaihtoja pieniä
sieviä
kuin pieniä kiviä
vältettäviä
enintään kaksi linjaa
merkkiä, kummaa, vinhaa
Golf suonissani virtaa
@bitofhope
bitofhope / mykyy.sh
Last active April 25, 2017 02:23
Danbooru-avustin à la Hieda
#!/bin/bash
savedir=$HOME/kuvat/danbooru
help()
{
printf \
"Käyttö: %s [options...] [URL:t tai Danbooru-ID:t]
\t-h\tNäytä tämä viesti
\t-q\tÄlä näytä curl-latauspalkkia
\copyright $YEAR $NAME <$EMAIL>
Redistribution and use in source and binary forms, with or without modification,
are permitted.
*********************************************************************************
* The software is provided "as is", without warranty of any kind, express or *
* implied, including but not limited to the warranties of merchantability, *
* fitness for a particular purpose and noninfringement. In no event shall the *
* authors or copyright holders be liable for any claim, damages or other *
OpenSSL 1.1.0e 16 Feb 2017
built on: reproducible build, date unspecified
options:bn(64,64) rc4(16x,int) des(int) aes(partial) idea(int) blowfish(ptr)
compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines-1.1\"" -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wl,-O1,--sort-common,--as-needed,-z,relro
sign verify sign/s verify/s
rsa 512 bits 0.000058s 0.000004s 17133.5 240938.1
rsa 1024 bits 0.000164s 0.000011s 6097.5 94536.5
rsa 2048 bits 0.001131s 0.000034s 883.8 29591.3
rsa 3072 bits 0.003631s 0.000073s 275.4 13786.3
rsa 4096 bits 0.008104s 0.000124s 123.4 8032.
@bitofhope
bitofhope / geekcode
Last active July 26, 2017 14:05
Geek code
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU d-(x) s: a--- C++++>$ UBLS*++++>$ P+(---) L+++(-)>++++$ E--- W++ N o? K-
!w O !M V- PS++(+++) PE-@ Y++ PGP++>+++ t 5 X R>+ tv- b+(++++) DI+ D+ G++
e>+++++ h r z*
------END GEEK CODE BLOCK------
@bitofhope
bitofhope / periodic
Created July 24, 2018 02:20
A simple plaintext periodic table of elements
H He
Li Be B C N O F Ne
Na Mg Al Si P S Cl Ar
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr
Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe
Cs Ba La Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra Ac Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og
Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu
Th Pa U Np Pu Am Cmm Bk Cf Es Fm Md No Lr
static const char *colorname[] = {
/* 8 normal colors */
"#000000", /* black */
"#cc9393", /* red */
"#7f9f7f", /* green */
"#f0dfaf", /* yellow */
"#6c6c9c", /* blue */
"#bc6c9c", /* magenta */
"#8cd0d3", /* cyan */
"#dccccc", /* white */
[marisa@minihakkero ~]% cd spcards
[marisa@minihakkero ~/spcards]% git clone https://git.suzunaan.gsk/youkaimoe/spells kazami
Cloning into 'kazami'...
remote: Counting objects: 303, done.
remote: Compressing objects: 100% (233/233), done.
remote: Total 303 (delta 176), reused 152 (delta 68)
Receiving objects: 100% (303/303), 63.92 KiB | 0 bytes/s, done.
Checking connectivity... done.
[marisa@minihakkero ~/spcards]% cd kazami