Skip to content

Instantly share code, notes, and snippets.

SELECT TARGETS.*, TASKS.LAST_HARVESTED
FROM TARGETS
LEFT OUTER JOIN (
SELECT TARGET_ID, max(HARVESTED) LAST_HARVESTED
FROM TASKS
GROUP BY TARGET_ID
) TASKS
on TARGETS.ID = TASKS.TARGET_ID
jaraco.site master $ curl -v -L -u any:any https://www.jaraco.com/auth-demo/here/
* Trying 2001:4802:7800:1:be76:4eff:fe20:21d9...
* TCP_NODELAY set
* Connected to www.jaraco.com (2001:4802:7800:1:be76:4eff:fe20:21d9) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
setuptools master $ git diff
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 05508ceb..108308ab 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -408,6 +408,7 @@ class easy_install(Command):
self._expand_attrs(dirs)
def run(self):
+ raise RuntimeError()
import stripe
stripe.api_key = '...'
disc = stripe.Coupon.create(amount_off=189, currency='USD', duration='forever', id='nice-discount')
cust = stripe.Customer.create(description="nice customer")
prod = stripe.Product.create(name="Individual Lite", type='service')
plan = stripe.Plan.create(nickname='Monthly', amount=199, currency='USD', product=prod, interval='month')
sub = stripe.Subscription.create(customer=cust, items=[dict(plan=plan, quantity=0)], coupon=disc)
item, = sub['items']['data']
item.quantity += 1
item.save().quantity
import cherrypy
class App:
@cherrypy.expose
def index(self):
return 'Done'
cherrypy.config.update({
'server.socket_host': '127.0.0.1',
'server.socket_port': 8080,

Keybase proof

I hereby claim:

  • I am jaraco on github.
  • I am jaraco (https://keybase.io/jaraco) on keybase.
  • I have a public key ASBB1cwe3WVEN7uHXVukGXLA6jRWJ0WnfOXJyHgYJGJs-wo

To claim this, I am signing this object:

jaraco@kafka:~$ sudo systemctl status pmxbot
● pmxbot.service - chat bot
Loaded: loaded (/etc/systemd/system/pmxbot.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-03-30 00:14:01 UTC; 17h ago
Process: 8256 ExecStart=/opt/pmxbot/bin/pmxbot /etc/pmxbot/main.conf /etc/pmxbot/server.conf /etc/pmxbot/database.conf /etc/pmxbot/twilio.conf /etc/pmxbot/trans.conf /
Main PID: 8256 (code=exited, status=1/FAILURE)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
jaraco@kafka:~$ sudo adduser --ingroup staff --disabled-password --gecos "Sumanah Harihareswara" sumanah
Adding user `sumanah' ...
Adding new user `sumanah' (1003) with group `staff' ...
Creating home directory `/home/sumanah' ...
Copying files from `/etc/skel' ...
jaraco@kafka:~$ sudo usermod -a -G sudo sumanah
jaraco@kafka:~$ sudo mkdir -p /home/sumanah/.ssh; sudo wget https://github.com/brainwane.keys -O /home/sumanah/.ssh/authorized_keys; sudo chown -R sumanah:nogroup '/home/sumanah/.ssh'; sudo chmod -R 600 '/home/sumanah/.ssh'
--2018-03-20 15:20:57-- https://github.com/brainwane.keys
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
jaraco@seoul:~$ netstat -a -n -p | grep :25
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN -
tcp6 0 0 :::25 :::* LISTEN -
$ nslookup
> set type=TXT
> jaraco.com
Server: 2601:14d:8701:59f8:f299:bfff:fe02:cee3
Address: 2601:14d:8701:59f8:f299:bfff:fe02:cee3#53
Non-authoritative answer:
jaraco.com text = "v=spf1 include:spf.protection.outlook.com ~all"
Authoritative answers can be found from: