Recent Pads - Page 2

Total pad count: 598
created 122 days, 14 hours ago

package main

import (
... view all 38 lines

created 124 days, 17 hours ago

# 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;
sqlite> PRAGMA foreign_keys = ON;
... view all 28 lines

created 134 days, 13 hours ago

... view all 1 lines

created 140 days, 14 hours ago

from unittest import TestCase

from rds_snapshot_verify import (
... view all 63 lines

created 142 days, 17 hours ago

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

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

created 151 days, 12 hours ago

"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 153 days, 9 hours ago

from collections import defaultdict

def blah(db_instance_identifier):

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

created 154 days, 18 hours ago

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

remarkbox_modify_user --namespace-add ''
... view all 4 lines

created 159 days, 13 hours ago

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 170 days, 5 hours ago

... view all 1 lines

created 172 days, 9 hours ago

Calls   Total   Percall Cumu    CumuPer         Func
1	0.01	0.0100	348.374	348.3740	<pyramid/>
1	0.014	0.0140	347.745	347.7450	<pyramid/>
1	0.007	0.0070	347.429	347.4290	<pyramid_jinja2/>
1	0.011	0.0110	347.34	347.3400	<jinja2/>
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 183 days, 5 hours ago

c0t5000C5002FF15A6Fd0  g5000c5002ff15a6f  c3  SSD

c0t50014EE6AEB4C239d0  g50014ee6aeb4c239  c4  live disk

c0t5000C500611CE801d0  g5000c500611ce801  c5  <bad disk>

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

created 185 days, 6 hours ago

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 185 days, 9 hours ago

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'.
  scan: resilvered 147G in 0h34m with 0 errors on Sat Aug 19 18:07:59 2017
... view all 17 lines

created 185 days, 10 hours ago

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 186 days, 6 hours ago


* 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 186 days, 6 hours ago

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 187 days, 6 hours ago

The abstractions and tech which cryptocurrency works on is fragile in most of the same ways as the layers that came before it (credit cards/banks/etc).

Try to look at all this holistically.

How many people and resources do we dedicate on this planet to keep track of money, economy, mine the coins, cash the checks, swipe the cards, keep the lines working?

All of these abstractions make trade faster and more liquid but honestly it really feels like dimished returns in the grand scheme of things.
... view all 136 lines

created 199 days, 19 hours ago

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

created 204 days, 14 hours ago


declare -A prod
declare -A stage

... view all 38 lines

pages 1 2 3 4 .. 30