Skip to content

Instantly share code, notes, and snippets.

View april's full-sized avatar
🔒
making the web safer

April King april

🔒
making the web safer
View GitHub Profile
@april
april / gist:1a6f6f88d6054d93bdc05802d3ad72fb
Last active September 19, 2017 15:38
Modern Cube Cards, Never Cast or Cast Only Once
Number Never Cast: 60
Number Cast Only Once: 40
Cards Never Cast:
White (6)
---------
Odric, Lunarch Marshal
Linvala, the Preserver
Disenchant
Traceback (most recent call last):
File "/Users/april/Source/misbehaving.site/env/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/april/Source/misbehaving.site/env/lib/python3.6/site-packages/whitenoise/base.py", line 66, in __call__
return self.application(environ, start_response)
File "/Users/april/Source/misbehaving.site/env/lib/python3.6/site-packages/flask/app.py", line 1989, in wsgi_app
return response(environ, start_response)
File "/Users/april/Source/misbehaving.site/env/lib/python3.6/site-packages/werkzeug/wrappers.py", line 1277, in __call__
start_response(status, headers)
TypeError: unable to add header to the response
@april
april / misbehaving.site.yml
Last active September 14, 2017 16:54
Docker deployment via git + ansible
---
- hosts: web
become: true
become_user: root
tasks:
- name: Install Docker repo key
apt_key:
id: "58118E89F3A912897C070ADBF76221572C52609D"
keyserver: "hkp://p80.pool.sks-keyservers.net:80"
state: present
#!/usr/bin/env python3
from random import randint
dice = 2 # two dice
die = 20 # d20
rolls = 10000000 # roll this many times
f = min # low roll == min, high roll == max

Keybase proof

I hereby claim:

  • I am april on github.
  • I am april (https://keybase.io/april) on keybase.
  • I have a public key ASAr0_V2frLYimd4jhi1nUnLgRPlAgGkp9MqOmjgZv7Higo

To claim this, I am signing this object:

{
"env":{
"browser":true
},
"extends":"airbnb-base/legacy",
"globals":{
"$":true,
"_":true,
"moment":true
},
@april
april / xfo.sql
Created December 1, 2016 17:39
Sites with invalid XFO headers in the Alexa Top 1M, as of October 2016
SELECT domain, output->'data' AS value FROM latest_tests WHERE name='x-frame-options' AND result='x-frame-options-header-invalid';
domain | value
software -> celery:4.0.0 (latentcall) kombu:4.0.0 py:3.4.3
billiard:3.5.0.2 redis:2.10.5
platform -> system:Linux arch:64bit, ELF imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:disabled
CELERY_REDIRECT_STDOUTS_LEVEL: 'WARNING'
BROKER_URL: 'redis://localhost:6379/0'
CELERY_RESULT_SERIALIZER: 'json'
CELERYD_TASK_SOFT_TIME_LIMIT: 751
@april
april / gist:8df9ccefa022fe520a645b7b2e6ae527
Created November 30, 2016 04:53
Mononoke-hime (vocal ending) lyrics
The trembling string of a taut bow
Your heart is unsettled by the moonlight
The beauty of a sharpened blade
Thy silhouette, like its keen edge
Behind the sorrow and anger lies your true heart
Only the spirits of the forest know it
Only the forest spirits
domain
---------------------------------------------------------------------------
0902856496.blogspot.com
1080d.blogspot.com
108minigame.blogspot.com
10cashcoupon.blogspot.com
10-procent-rocznie.blogspot.com
10wontips.blogspot.com
111doo.blogspot.com
1122992984593809579_0d87ba54182d2d993f826d9570c5c7e18bc45bbb.blogspot.com