Skip to content

Instantly share code, notes, and snippets.

View kyrias's full-sized avatar
🏳️‍🌈

Johannes Löthberg kyrias

🏳️‍🌈
View GitHub Profile
@kyrias
kyrias / scrotpomf.bash
Created January 30, 2014 22:30
Take a scrot and upload it to pomf.se
#!/usr/bin/env bash
SCROTARGS=()
while (( "$#" )); do
SCROTARGS+=($1)
shift
done
# take the shot
FILE="$(scrot ${SCROTARGS[@]} -e 'echo -n $f')"
@kyrias
kyrias / pomf
Created January 30, 2014 22:32
Upload a file to pomf.se
#!/usr/bin/env bash
upload=$(curl -sf -F "files[]=@\"$1\"" http://pomf.se/upload.php)
geturl=$(jshon -e files -e 0 -e url -u <<< $upload)
printf "%s/%s\n" "http://a.pomf.se" "$geturl"
@kyrias
kyrias / keybase.md
Created May 28, 2014 13:13
Keybase Proof

Keybase proof

I hereby claim:

  • I am kyrias on github.
  • I am johannes (https://keybase.io/johannes) on keybase.
  • I have a public key whose fingerprint is 5134 EF9E AF65 F95B 6BB1 608E 50FB 9B27 3A9D 0BB5

To claim this, I am signing this object:

@kyrias
kyrias / top.c
Last active August 29, 2015 14:09
/* top.c - Source file: show Linux processes */
/*
* Copyright (c) 2002-2014, by: James C. Warner
* All rights reserved. 8921 Hilloway Road
* Eden Prairie, Minnesota 55347 USA
*
* This file may be used subject to the terms and conditions of the
* GNU Library General Public License Version 2, or any later version
* at your option, as published by the Free Software Foundation.
* This program is distributed in the hope that it will be useful,
@kyrias
kyrias / cVimrc
Created July 15, 2015 10:53
cVimrc
imap <C-o> editWithVim
@kyrias
kyrias / mickeygoespublic.html
Created November 8, 2017 21:19
Simple countdown timer until Mickey Mouse enters the public domain
<!DOCTYPE html>
<html>
<head>
<title>Mickey Goes Public</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.container {
font-size: 2em;
font-weight: bold;
font-family: sans;
#0 0x00007f0c3b209bfe in __strcmp_avx2 () from /usr/lib/libc.so.6
#1 0x000055fbe0ca1399 in dictentry_cmp (a=0x7ffe440d98e0, b=<optimized out>) at ../../smtpd/dict.c:266
#2 _dict_SPLAY (head=head@entry=0x55fbe16710d0, elm=elm@entry=0x7ffe440d98e0) at ../../smtpd/dict.c:269
#3 0x000055fbe0ca17ec in _dict_SPLAY_FIND (elm=0x7ffe440d98e0, head=0x55fbe16710d0) at ../../smtpd/dict.c:40
#4 dict_get (d=0x55fbe16710d0, k=<optimized out>) at ../../smtpd/dict.c:107
#5 0x000055fbe0cd7b6d in table_find (conf=<optimized out>, name=<optimized out>) at ../../smtpd/table.c:110
#6 0x000055fbe0cc9013 in ruleset_match_from (evp=0x7ffe440daaa0, r=0x55fbe1697d20) at ../../smtpd/ruleset.c:96
#7 ruleset_match (evp=evp@entry=0x7ffe440daaa0) at ../../smtpd/ruleset.c:237
#8 0x000055fbe0cad521 in lka_expand (lks=lks@entry=0x55fbe1698480, rule=<optimized out>, xn=0x55fbe169a190) at ../../smtpd/lka_session.c:319
#9 0x000055fbe0cad853 in lka_resume (lks=0x55fbe1698480) at ../../smtpd/lka_session.c:204