Recent Pads - Page 3

Total pad count: 627
created 246 days, 8 hours ago
ef91fdcb-4955-4ad3-b00b-5c99c20d613e

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1513189156000",
            "Effect": "Allow",
            "Action": [
... view all 17 lines

created 248 days, 1 hour ago
bd2efc71-7a9d-4998-903a-93eaa0dfefc0

Github API:

    circleci -> github

        circleci tells github about statuses using the github apihttp://pad.yohdah.com/588/bd2efc71-7a9d-4998-903a-93eaa0dfefc0/edit#
        (https://developer.github.com/v3/repos/statuses/#create-a-status)

... view all 36 lines

created 248 days, 1 hour ago
8603862d-0979-4e13-b4c2-b55924824f3f

gone
... view all 2 lines

created 248 days, 4 hours 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 251 days, 4 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 253 days, 22 hours ago
20309415-ecc2-4b2f-ba30-8694ef4cb1fa

aaaa
... view all 1 lines

created 253 days, 22 hours ago
ceabcdd8-9c9a-4c18-a616-a5f95ae870b2

aa
... view all 1 lines

created 299 days, 1 hour 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 299 days, 5 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 299 days, 8 hours ago
go-lang-tinkering-with-http-client-and-server

package main

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

created 301 days, 10 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 311 days, 6 hours ago
7de41b9e-e390-4172-96f1-83fe05e4d8f4

hi
... view all 1 lines

created 317 days, 7 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 319 days, 11 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 328 days, 5 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 330 days, 3 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 331 days, 11 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 336 days, 6 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 346 days, 23 hours ago
fa4bccec-f39d-4fe3-bc67-25aabc902b3d

gone.
... view all 1 lines

created 349 days, 3 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

pages 1 2 3 4 5 .. 32