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 / ansible.yml
Last active October 12, 2016 22:10
---
- hosts: web
become: true
become_user: root
tasks:
- name: Install nginx signing key
apt_key: url=https://nginx.org/keys/nginx_signing.key state=present
- name: Add nginx binary repository
apt_repository: repo='deb https://nginx.org/packages/mainline/ubuntu {{ ansible_distribution_release }} nginx' state=present
- name: Add nginx source repository
Package: nginx
Version: 1.11.5-1~xenial
Architecture: amd64
Maintainer: Sergey Budnevitch <[email protected]>
Installed-Size: 2526
Depends: libc6 (>= 2.14), libpcre3, libssl1.0.0 (>= 1.0.2~beta3), zlib1g (>= 1:1.1.4), lsb-base, adduser
Provides: httpd
Filename: pool/nginx/n/nginx/nginx_1.11.5-1~xenial_amd64.deb
Size: 746510
MD5sum: b09028b4f946fadd18ba75651a336495
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
@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
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 / 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
{
"env":{
"browser":true
},
"extends":"airbnb-base/legacy",
"globals":{
"$":true,
"_":true,
"moment":true
},

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:

#!/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
@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