Recent Pads

Total pad count: 671
created 1 day, 17 hours ago
github-api-shell

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

import argparse

import code
import getpass
... view all 57 lines

created 3 days, 22 hours ago
135a12ff-f388-434b-9e45-113bf342136c

STAGE
##########

subnet-a22c49fb

subnet-46eada7c

... view all 36 lines

created 5 days, 10 hours ago
5d705f75-a854-4c94-8db0-5ef7acc2d664

I'm looking for what is right in front of me.

I already have what I seek.

I just cannot see it because my ego is blind.

I don't have any needs.
... view all 53 lines

created 21 days, 12 hours ago
445fe066-d99e-40fa-adcc-beb939d01fc6

> alembic -c development.ini revision --autogenerate -m "autogenerated indicies."

Traceback (most recent call last):
  File "/home/fox/env/bin/alembic", line 10, in <module>
    sys.exit(main())
  File "/home/fox/env/lib/python2.7/site-packages/alembic/config.py", line 540, in main
    CommandLine(prog=prog).main(argv=argv)
... view all 40 lines

created 22 days, 19 hours ago
da389136-7ab7-4daa-85fe-6967a74b1e02

>>> p = models.product.get_product_by_id(request.dbsession, "113fb5e4-b46b-11e9-9885-606720")
>>> u = models.user.get_user_by_email(request.dbsession, "<removed>@gmail.com")
>>> p.add_user_to_product(u)
>>> request.dbsession.add(p)
>>> request.dbsession.flush()
>>> request.tm.commit()
... view all 7 lines

created 23 days, 17 hours ago
ee5f2d16-8f44-412f-b121-fa953b491c75

# possible issues

1. docker container stops being able to read from the read only mount/volume?
2. ecs_agent stops being able to read from the dockercfg file?

   * https://github.com/remind101/amazon-ecs-agent/commits/master/Makefile

... view all 37 lines

created 25 days, 17 hours ago
bash-timestamp-delta-in-seconds

# get the delta in seconds in bash.

begin=$(date +%s)

# some command that takes a while and needs to be timed.

end=$(date +%s)
... view all 14 lines

created 25 days, 20 hours ago
make-post-sell-price-model

$9/mo  up to  50 products 
  ($0.180 per product, per month)

$14/mo up to 200 products 
  ($0.070 per product, per month)

$29/mo up to 580 products
... view all 8 lines

created 26 days, 29 minutes ago
266004a6-4024-4e6c-912e-3640f1f4f0fd

 PMPC5-2DQZK
... view all 1 lines

created 48 days, 20 hours ago
distribution-of-rolling-2d6-and-multiplying

>>> for i in range(1,7):
...     for j in range(1,7):
...         print(i * j)
... 
1
2
3
... view all 74 lines

created 52 days, 12 hours ago
delete-uris-which-do-not-have-nodes

request.tm.begin()

uris = m.get_all_uris(request.dbsession)

for uri in uris:
    if uri.node and uri.node.children.count() <= 0:
        print("deleted node: {}".format(uri.node.id))
... view all 14 lines

created 55 days, 13 hours ago
remarkbox-pshell-modifying-all-nodes-who-have-a-uri

# begin the database transaction.
request.tm.begin()

# get all Uri objects.
uris = m.uri.get_all_uris(request.dbsession)

# interate over all Uri objects.
... view all 20 lines

created 114 days, 23 hours ago
2c1746b3-c611-412b-81bc-711a3965e271

<center>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://s3-us-west-1.amazonaws.com/clockwisepublic/clockwiseWaitTimes.min.js"></script>

<div style="display: inline-block; padding: 12px 20px 20px; margin-bottom: 0;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px;
  line-height: 20px; color: #ffffff; text-align: center; background-color:#2745c8;
... view all 40 lines

created 166 days, 11 hours ago
aldi-potatoes

Hello,

I'm a patron of ALDI and a local gardener. Yesterday I was at my local store in and noticed that there were many (about 30) sacks of organic Canadian grown potatoes which were sprouting. 

I asked the clerk if I could have a discount because I didn't plan to eat the potatoes but I planned to try and plant them. The clerk asked for his manager. 

His manager said she could not sell them to me and that she would throw them away.
... view all 23 lines

created 168 days, 12 hours ago
975f2819-8001-40d0-b413-531e583f4ed2

o https://brettterpstra.com//2019/02/21/your-security-and-privacy/ 

x https://brettterpstra.com//2013/02/09/quick-tip-jumping-to-the-finder-location-in-terminal/ 

x https://brettterpstra.com//2018/11/04/the-future-of-the-tablinks-safari-extension/ 

o https://brettterpstra.com//2019/02/04/brainstorming-how-i-start-a-project/ 
... view all 21 lines

created 186 days, 11 hours ago
923272e7-41ff-4804-8ef7-c55be06239ff

mysql
########

This is the administrators guide to maintaining MySQL databases

.. contents::

... view all 196 lines

created 191 days, 18 hours ago
stacker-lambda-function-datadog-log-forwarder

from .. import Blueprint

from stacker.blueprints.variables.types import CFNString

from stacker_blueprints.aws_lambda import Function

from troposphere import awslambda
... view all 59 lines

created 230 days, 12 hours ago
86f26248-35ce-4b5f-8a6a-c3edc8ff43f5

fox@blanka ~/h/s/p/pySFML2> cat README.txt 
bash
virtualenv env
source env/bin/activate
pip install --upgrade pip
pip install cython
cd ~/git/SFML
... view all 17 lines

created 241 days, 15 hours ago
python-porting-sfml-rect-intersects-to-avoid-sigsegc-address-bou

""" 
Porting Rect's intersects to pure Python to avoid::
 
  terminated by signal SIGSEGV (Address boundary error)

When calling::

... view all 80 lines

created 246 days, 22 hours ago
ecebd557-0986-4171-a0bf-c4b2b8d84aa2

us/index.html
output/migrating-from-wordpress-to-pelican/
output/migrating-from-wordpress-to-pelican/index.html
+ echo 5286e27fc73d966faa120fd47b9261a7b6de34cf
+ sudo /home/jenkins/salt-call-put-artifacts-onto-salt-master.sh
+ salt-call cp.push_dir /home/jenkins/workspace/russell.ballestrini.net 'glob=*.tar.gz'

... view all 18 lines

pages 1 2 3 .. 34