Recent Pads - Page 2

Total pad count: 637
created 121 days, 18 hours ago
creative-flash-and-flow

blink | blink | blink | the cursor on the empty page flashed like a visual metronome. 

Then like a toppled glass the words poured like water onto the screen.

We in the industry call this flow or getting in the zone.

Ideas and thoughts flow through you as if coming from a higher place.
... view all 20 lines

created 122 days, 2 hours ago
c4cf7b4c-f7e5-4f04-909a-a543ac0e0a47

with request.tm:
    for namespace in request.dbsession.query(m.Namespace).all():
        for user in namespace.owners:
            namespace.set_role_for_user(user, "owner")
            request.dbsession.add(user)
    request.dbsession.flush()
... view all 6 lines

created 135 days, 4 hours ago
4bbc4edc-1ba1-46ad-a005-b41c2dbc9449

gone
... view all 2 lines

created 138 days, 20 hours ago
f0f4d5ec-526e-47af-83de-13aaa1bea92d

russellbal [6:35 PM]
I came up with a new SaaS idea today.
Aggregated (digest) notifications as a service.
jamie [6:36 PM]
is dat twitter
russellbal [6:37 PM]
You punt a fire hose of notifications at it and based on user (destination) settings it aggregates daily / weekly (edited)
... view all 184 lines

created 141 days, 17 hours ago
650fad3f-ca0f-4016-aaa7-4ec44b68bee2

Automatic Watching:

[ ] automatically watch any threads I participate in.
[x] automatically watch any threads I create.


Reply Notifications:
... view all 32 lines

created 145 days, 10 hours ago
fba98f2e-9b9c-48d2-b18e-3bccde7ea026

<!-- Remarkbox - Your readers want to communicate with you -->
<div id="remarkbox-div">
  <noscript>
    <iframe id=remarkbox-iframe src="http://cruris.serveo.net/embed?nojs=true" style="height:600px;width:100%;border:none!important" tabindex=0></iframe>
  </noscript>
</div>
<script src="http://cruris.serveo.net/static/js/iframe-resizer/iframeResizer.min.js"></script>
... view all 33 lines

created 147 days, 1 hour ago
8862407b-f071-4173-8c08-011de694375a

gone
... view all 2 lines

created 149 days, 20 hours ago
c10a4108-4559-40fa-a146-91edb208d2e1

user.create_policy(
  PolicyName='rescue-policy',
  PolicyDocument="""
{
  "Version": "2012-10-17",
  "Statement": {
    "Effect": "Allow",
... view all 12 lines

created 157 days, 2 hours ago
average-cost-per-share

>>> # given a list of (qty, price) tuples:
>>> purchases = [(1003.20, 13.25), (15.86, 13.87), (65.31, 13.78), (16.02, 13.73), (15.88, 13.85), (73.41, 13.7
6), (74.74, 13.38), (74.074, 13.5), (16.141, 13.63), (15.99, 13.76), (16.09,13.67)]

>>> # figure out the total quantity of shares:
>>> total_qty_shares = sum(map(lambda x : x[0], purchases))
1386.7150000000004
... view all 13 lines

created 165 days, 17 hours ago
interact-with-chromecast-using-python

import pychromecast

if __name__ == "__main__":
    cast = pychromecast.get_chromecasts()[0]
    mc = cast.media_controller
    mc.play_media("http://192.168.0.103:8000/video_test.mp4", content_type = "video/mp4")
... view all 10 lines

created 165 days, 20 hours ago
3957d671-a94a-42fd-a9f1-3548a378675c

3-6 minutes put site into maint mode? (I don't think anyone knows how long this takes)
1-3 minutes to take an aurora snapshot
2-3 minutes to PR stacks with the ARN of the snapshot

4-8 minutes ClusterParameterGroup CREATE_IN_PROGRESS Resource creation Initiated

45-60 minutes DBCluster CREATE_IN_PROGRESS Resource creation Initiated
... view all 12 lines

created 178 days, 4 hours ago
ecee6daf-d544-48eb-a1e2-d5dff5a25e78

62 Douglas Ln, Waterford, CT 06385
=====================================

3 acres with potential for 11 more

ask $129k been on the market since 2015 original ask $164k

... view all 57 lines

created 192 days, 4 hours ago
how-to-install-a-go-lang-repo-or-package

jamie [1:36 PM]
did you just pull down that go repo to work on?

russellbal [1:31 PM]
I cloned it with normal git, maybe I should have `go get` it?

jamie [1:32 PM]
... view all 50 lines

created 192 days, 15 hours ago
d615f2cd-24e7-4594-be08-92ecbbf88726

At this point spam is not really an issue. I currently manually moderate all comments that come into the system. Obviously this isn't going to scale for too much longer but it was the quickest way to move forward. In the long term when spam becomes more of an issue (because t inevitably will) I'm planning to allow paying users to input an Akismet API key.

If we grow out of that I can implement my own bayesian database to to learn to filter spam.

The sky is the limit in cat and mouse. I'm just waiting for the mouse to become smarter then what I currently have in place.

The other option is to prevent comments from showing up until it has been explicitly approved.  That option is already in place for paying users.
... view all 7 lines

created 193 days, 3 hours ago
a6d8b5c9-309e-4495-8f84-6428ba716ec9

1. Always add no follow to `a` tags, unless url is relative 
   or points to the namespace domain.

2. Always remove script tags, unless mathjax is enabled,
   in which case allow script tags and remove them using beautiful soup,
   with the exception of mathjax.

... view all 9 lines

created 207 days, 23 hours ago
vim-rc-file

" determine highlighing and indent from filetype "
filetype plugin indent on

" syntax highlighting "
syntax on

" show column, row, and line numbers. "
... view all 32 lines

created 216 days, 17 hours ago
c721104c-b3cd-4873-b651-322290eb9658

import time

DATADOG_METRIC_TYPES = {"count", "gauge", "histogram", "check"}

# https://github.com/DataDog/datadogpy/blob/master/datadog/api/constants.py
class CheckStatus(object):
    OK = 0
... view all 41 lines

created 221 days, 1 hour ago
extended_network_patch

diff --git a/checks.d/docker_daemon.py b/checks.d/docker_daemon.py
index d8b5b4a..ca493b9 100644
--- a/checks.d/docker_daemon.py
+++ b/checks.d/docker_daemon.py
@@ -12,6 +12,7 @@ from math import ceil
 
 # project
... view all 337 lines

created 233 days, 20 hours ago
github_api_shell_py

# pip install github3.py
from github3 import login as github_login

import argparse

import code
import getpass
... view all 57 lines

created 244 days, 23 hours ago
d9895a23-261d-43b4-8f67-e2840737fa86

gone
... view all 2 lines

pages 1 2 3 4 .. 32