Recent Pads - Page 2

Total pad count: 688
created 106 days, 3 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 107 days, 10 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 108 days, 9 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 110 days, 8 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 110 days, 11 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 110 days, 15 hours ago
266004a6-4024-4e6c-912e-3640f1f4f0fd

 PMPC5-2DQZK
... view all 1 lines

created 133 days, 11 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 137 days, 3 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 140 days, 5 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 199 days, 14 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 251 days, 3 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 253 days, 4 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 271 days, 2 hours ago
923272e7-41ff-4804-8ef7-c55be06239ff

mysql
########

This is the administrators guide to maintaining MySQL databases

.. contents::

... view all 196 lines

created 276 days, 9 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 315 days, 4 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 326 days, 6 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 331 days, 13 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

created 336 days, 4 hours ago
2aee774d-5bb6-4f50-b3f2-bd1afa7325f4

Your a punk!
... view all 1 lines

created 340 days, 8 hours ago
a-better-way-to-track-time-python-utc-no-months

from datetime import datetime

now = datetime.now().utctimetuple()

# example: 2018-345 12:15:17
print(
    "{}-{} {}:{}:{}".format(
... view all 15 lines

created 343 days, 1 hour ago
f89906ab-8de1-4818-9133-b07c87b755fd

 Connecting to NAS... Make sure the NAS system is powered on and connected to the network. 



Environment:

Software Version: FreeNAS-11.2-RELEASE (31f889bbf)
... view all 48 lines

pages 1 2 3 4 .. 35