Recent Pads

Total pad count: 586
created 3 hours, 13 minutes ago
bd2efc71-7a9d-4998-903a-93eaa0dfefc0

Github API:

    circleci -> github

        circleci tells github about statuses using the github api
        (https://developer.github.com/v3/repos/statuses/#create-a-status)

... view all 30 lines

created 3 hours, 25 minutes ago
8603862d-0979-4e13-b4c2-b55924824f3f

gone
... view all 2 lines

created 6 hours, 9 minutes ago
9c05793f-d281-48e4-8742-15f4512513c2

slashdeploy=> select count(*) from statuses;
 count  
--------
 288475
(1 row)

slashdeploy=> select count(*) from statuses where state != 'success';
... view all 27 lines

created 3 days, 6 hours ago
remarkbox_json_import

import transaction

from sqlalchemy import engine_from_config

from pyramid.paster import (
    get_appsettings,
    setup_logging,
... view all 121 lines

created 6 days, 17 minutes ago
20309415-ecc2-4b2f-ba30-8694ef4cb1fa

aaaa
... view all 1 lines

created 6 days, 17 minutes ago
ceabcdd8-9c9a-4c18-a616-a5f95ae870b2

aa
... view all 1 lines

created 51 days, 3 hours ago
python-check-if-keyword-on-target-http-url

from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
import requests

def home(request):
    target  = request.params.get(u'target', None)
... view all 24 lines

created 51 days, 7 hours ago
go-lang-check-if-keyword-on-target-http-url

package main

import (
    "log"
    "net/http"
    "time"
    "io/ioutil"
... view all 50 lines

created 51 days, 10 hours ago
go-lang-tinkering-with-http-client-and-server

package main

import (
    "log"
    "net/http"
    "time"
    "io/ioutil"
... view all 38 lines

created 53 days, 12 hours ago
sqlite3-set-pragma-foreign-keys-before-alter-table-rename

# This shows that when I renamed the tables the foriegn key references didn't update...
SELECT * FROM sqlite_master UNION ALL   SELECT * FROM sqlite_temp_master;

# this happened because I didn't have this setting set.
sqlite> PRAGMA foreign_keys;
0
sqlite> PRAGMA foreign_keys = ON;
... view all 28 lines

created 63 days, 8 hours ago
7de41b9e-e390-4172-96f1-83fe05e4d8f4

hi
... view all 1 lines

created 69 days, 9 hours ago
326ca5b2-ece3-4a86-994e-0830f3330a5a

from unittest import TestCase

from rds_snapshot_verify import (
    state_doc_s3_key,
    get_or_create_state_doc_in_s3,
    current_state,
)
... view all 63 lines

created 71 days, 13 hours ago
3e7b8931-6c8a-4eb2-8861-8ee368a609f9

# 1st version with for loop.
for i in range(1, 1001):
    print(i)


# 2nd version with while loop.
i = 1
... view all 22 lines

created 80 days, 7 hours ago
d369cc2c-2f0d-4198-83a2-9d31f40d7cfb

"waiting": "this means the current day's snapshot doesn't exist yet."
         "this state can transition with `restoring` when the snapshot exists."
         "this state can transition to `failing` if date changes without moving to restoring"

"restoring": "this means the snapshot was found and we have started restoring"
             "to a new database instance."

... view all 43 lines

created 82 days, 5 hours ago
aws-rds-snapshot-tester

from collections import defaultdict

def blah(db_instance_identifier):
    evpc.rds.describe_db_snapshots(DBInstanceIdentifier=db_instance_identifier)['DBSnapshots']

def bleh(snapshot_descriptions):
    snapshots_by_date = defaultdict(list)
... view all 17 lines

created 83 days, 13 hours ago
f3be86df-4c9b-406c-b9e6-8a12dfb12b65

remarkbox_modify_namespace '127.0.0.1' --info --toggle-hide-unless-approved

remarkbox_modify_user fox@example.com --namespace-add '127.0.0.1'
 
... view all 4 lines

created 88 days, 8 hours ago
1fa4a8ee-f1af-4ef4-9feb-fa7a79923d9f

If you talk all the time, you never hear what anyone else has to say.

and therefore all you will have to talk about is your own conversation.

the same is true for people who think all the time.

that means when I use the word think, talking to yourself, 
... view all 27 lines

created 99 days, 1 hour ago
fa4bccec-f39d-4fe3-bc67-25aabc902b3d

gone.
... view all 1 lines

created 101 days, 5 hours ago
pyramid-app-profile-output

Calls   Total   Percall Cumu    CumuPer         Func
1	0.01	0.0100	348.374	348.3740	<pyramid/renderers.py:457(render_to_response)>
1	0.014	0.0140	347.745	347.7450	<pyramid/renderers.py:437(render)>
1	0.007	0.0070	347.429	347.4290	<pyramid_jinja2/__init__.py:258(__call__)>
1	0.011	0.0110	347.34	347.3400	<jinja2/environment.py:993(render)>
1132/1	2.691	0.0024	347.292	347.2920	{method 'join' of 'unicode' objects}
90	0.126	0.0014	346.808	3.8534	        <remarkbox/templates/active-nodes.j2:5(root)>
... view all 9 lines

created 112 days, 34 minutes ago
6d560f13-089c-4325-9343-9808c1d4a92a

c0t5000C5002FF15A6Fd0  g5000c5002ff15a6f  c3  SSD

c0t50014EE6AEB4C239d0  g50014ee6aeb4c239  c4  live disk

c0t5000C500611CE801d0  g5000c500611ce801  c5  <bad disk>

c0t50014EE6040A7F1Cd0  g50014ee6040a7f1c  c5  <new disk>
... view all 7 lines

pages 1 2 3 .. 30