Recent Pads

Total pad count: 577
created 1 day, 19 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 11 days, 15 hours ago
7de41b9e-e390-4172-96f1-83fe05e4d8f4

hi
... view all 1 lines

created 17 days, 16 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 19 days, 19 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 28 days, 14 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 30 days, 11 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 31 days, 20 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 36 days, 15 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 47 days, 7 hours ago
fa4bccec-f39d-4fe3-bc67-25aabc902b3d

gone.
... view all 1 lines

created 49 days, 11 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 60 days, 7 hours 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

created 62 days, 8 hours ago
how-i-turned-a-freenas-single-disk-stripe-pool-into-a-mirror

gpart create -s gpt /dev/da4

gpart add -a 4k -i 1 -s 2g -t freebsd-swap /dev/da4
gpart add -a 4k -i 2 -t freebsd-zfs /dev/da4

glabel status | grep da4

... view all 8 lines

created 62 days, 11 hours ago
f82753cf-8d0c-4f79-b16a-d043569983c9

root@guile:~ # zpool status -v family
  pool: family
 state: UNAVAIL
status: One or more devices are faulted in response to IO failures.
action: Make sure the affected devices are connected, then run 'zpool clear'.
   see: http://illumos.org/msg/ZFS-8000-JQ
  scan: resilvered 147G in 0h34m with 0 errors on Sat Aug 19 18:07:59 2017
... view all 17 lines

created 62 days, 12 hours ago
33a40fb8-ea3e-4d4d-bd69-e49ea0dbea7e

gpart create -s gpt /dev/da4

gpart add -a 4k -i 1 -s 2g -t freebsd-swap /dev/da4
gpart add -a 4k -i 2 -t freebsd-zfs /dev/da4

glabel status | grep da4

... view all 86 lines

created 63 days, 8 hours ago
5c21056a-536c-4872-9f80-3052459a5f42

materials:

* usb flash drive (we will wipe it clean)
* m1015 lsa sas card
* an Ubuntu desktop machine that supports uEFI (other distros might work)
  (could be separate or the same machine, can use ubuntu live disk)

... view all 74 lines

created 63 days, 8 hours ago
4b50a38e-0b94-4131-979c-30703d95e274

After installing and flashing m1015 card:

[root@guile] # dd if=/dev/urandom of=testfile bs=1M count=10240
10240+0 records in
10240+0 records out
10737418240 bytes transferred in 244.167432 secs (43.97 MB/s)

... view all 37 lines

created 64 days, 8 hours ago
1a2ab515-9b4c-46b3-aad3-a26c679faa8b

Barter: fastest currency for local goods and services very slowly for everything else.

Gold

Coin/Bill Fiat
Reaches further and faster to exchange wealth

... view all 111 lines

created 76 days, 21 hours ago
3d6fbb10-3052-4793-86ac-2cd6a8f6d491

def test():
    print "test"
... view all 2 lines

created 81 days, 16 hours ago
put-a-bunch-of-encrypted-ssm-parameters

#!/bin/bash

declare -A prod
declare -A stage

prod+=(
    "datadog_api_key:<removed>"
... view all 38 lines

created 93 days, 15 hours ago
gone

gone
... view all 1 lines

pages 1 2 3 .. 29