Skip to content

Instantly share code, notes, and snippets.

View jakul's full-sized avatar
🏳️‍🌈
LGBT and proud

Craig Blaszczyk jakul

🏳️‍🌈
LGBT and proud
View GitHub Profile
{
"basics": {
"name": "Richard Hendriks",
"label": "Programmer",
"picture": "http://www.piedpiper.com/app/themes/pied-piper/dist/images/richard.png",
"email": "richard.hendriks@piedpiper.com",
"phone": "(912) 555-4321",
"website": "http://piedpiper.com",
"summary": "Richard hails from Tulsa. He has earned degrees from the University of Oklahoma and Stanford. (Go Sooners and Cardinals!) Before starting Pied Piper, he worked for Hooli as a part time software developer. While his work focuses on applied information theory, mostly optimizing lossless compression schema of both the length-limited and adaptive variants, his non-work interests range widely, everything from quantum computing to chaos theory. He could tell you about it, but THAT would NOT be a “length-limited” conversation!",
"location": {
This file has been truncated, but you can view the full file.
craig@amogato2:/tmp/ppp
$ pipenv install --python `which python3.6`
Creating a virtualenv for this project...
Pipfile: /private/tmp/ppp/Pipfile
Using /Users/craig/.pyenv/shims/python3.6 (3.6.6) to create virtualenv...
⠋Running virtualenv with interpreter /Users/craig/.pyenv/shims/python3.6
Using base prefix '/Users/craig/.pyenv/versions/3.6.6'
New python executable in /Users/craig/.virtualenvs/ppp-VkRNbFgf/bin/python3.6
Also creating executable in /Users/craig/.virtualenvs/ppp-VkRNbFgf/bin/python
Installing setuptools, pip, wheel...done.
@jakul
jakul / open_api_v3_changes.md
Created August 3, 2017 10:40
Description of the main changes between Open API V2 and V3
  • New explicit versioning schema
  • Recommend swagger.json/swagger.yaml are now called openapi.json/openapi.yaml
  • Switch from Github Flavoured Markdown syntax to CommonMark syntax
  • New top-level construct Components holds a set of objects to be reused throught the rest of the API. This allows us to define re-used things in one place and reference them, instead of repeating them. Will be especially useful for error responses, pagination parameters, etc
  • New info.servers construct replaces basePath. This may allow us to combine all of our separate Open API specs into one, mega spec.
  • Ability to specify a path parameter at the top level (i.e. no need to duplicate the definition of {policy_uuid} for the GET, PATCH, PUT and DELETE endpoints)
  • Moving of request BODY parameters into their own part of the path definition
  • Support for different request BODY definitions based on the Content-Type of the request (e.g. we could make one API support both JSON and YAML)
  • Support for different r
@jakul
jakul / gist:88532fca517f3899b97dc956d661a7b7
Created July 4, 2016 11:57
AWS CloudFormation template regex wrong
{
"Outputs": {
"ClioutputApigatewayFirstappSampleApi": {
"Value": {
"Fn::Join": [
"",
[
"https://",
{
"Ref": "FirstappSampleApi"
TRELLO_LISTS_BY_ACCOUNT_MANAGER = {u'2 days til job start and unfilled': {u'Practice Account Management - Scott': u'52e27982eb9ad20156fec4a1',
u'Practice Account Management - Will': u'52e2796ad827fdd30a77c25d',
u'Practice Hurdles': u'52d9467dcae05385643b8287'},
u'Applications waiting for +2 days': {u'Practice Account Management - Scott': u'52e27982eb9ad20156fec494',
u'Practice Account Management - Will': u'52e2796ad827fdd30a77c250',
u'Practice Hurdles': u'513e18c643c045b510000285'},
u'First application on job': {u'Practice Account Management - Scott': u'52e27982eb9ad20156fec497',
u'Practice Account Management - Will': u'52e2796ad827fdd30a77c253',
u'Practice Hurdles': u'513dcca79f5174900f001ee8'},
u'First completed job': {u'Practice Account Management - Scott': u'52e27982eb9ad20156fec490',
In [5]: dir(PracticeProfile)
Out[5]:
['DoesNotExist',
'Meta',
'MultipleObjectsReturned',
'__class__',
'__delattr__',
'__dict__',
'__doc__',
'__eq__',
# CSS
.like-red .red {
display:block;
}
.like-red .green {
display:none;
}
In [29]: # dict of it system names which each locum can use, keyed by locum profile id
In [30]: from profiles.models import *
In [31]: from django.con
django.conf django.contrib
In [31]: from django.contrib.
django.contrib.admin django.contrib.csrf django.contrib.humanize django.contrib.sessions django.contrib.webdesign
django.contrib.admindocs django.contrib.databrowse django.contrib.localflavor django.contrib.sitemaps
(networklocum)root@roslin:/srv/networklocum/releases/current/networklocum/networklocum# cat /var/log/m-mandrake.log | grep '"thumbs_up":\[null,true\]}' | grep '\"reset_thumbs_up\":true'
[DEBUG ] 2013-12-18 22:05:14,456 - Message received on NL:mandrake:handlers: {"id":2956,"type":"job","differences":{"modified":["2013-12-18T13:05:01.000Z","2013-12-18T22:05:14.334Z"],"thumbs_up":[null,true]},"announce_type":"object_updated","reset_thumbs_up":true,"source":"nlapi"}
[DEBUG ] 2013-12-18 22:05:15,688 - Message received on NL:mandrake:handlers: {"id":2950,"type":"job","differences":{"modified":["2013-12-17T13:05:01.000Z","2013-12-18T22:05:15.665Z"],"thumbs_up":[null,true]},"announce_type":"object_updated","reset_thumbs_up":true,"source":"nlapi"}
[DEBUG ] 2013-12-18 22:05:16,438 - Message received on NL:mandrake:handlers: {"id":2957,"type":"job","differences":{"modified":["2013-12-18T18:05:01.000Z","2013-12-18T22:05:16.426Z"],"thumbs_up":[null,true]},"announce_type":"object_updated","reset_thumbs_up":true,"sourc
^C(networklocum)root@roslin:/srv/networklocum/releases/current/networklocum/networklocum# cat /var/log/m-mandrake.log | grep "\[null,true\]"
[DEBUG ] 2013-10-21 14:43:00,458 - Message received on NL:mandrake:handlers: {"id":2433,"type":"job","differences":{"modified":["2013-10-20T07:30:00.000Z","2013-10-21T13:43:00.337Z"],"thumbs_up":[null,true]},"announce_type":"object_updated","source":"nlapi"}
[DEBUG ] 2013-10-21 18:15:11,699 - Message received on NL:mandrake:handlers: {"id":2405,"type":"job","differences":{"modified":["2013-10-19T07:30:00.000Z","2013-10-21T17:15:11.610Z"],"thumbs_up":[null,true]},"announce_type":"object_updated","source":"nlapi"}
[DEBUG ] 2013-10-21 18:15:14,225 - Message received on NL:mandrake:handlers: {"id":2404,"type":"job","differences":{"modified":["2013-10-17T07:30:00.000Z","2013-10-21T17:15:14.027Z"],"thumbs_up":[null,true]},"announce_type":"object_updated","source":"nlapi"}
[DEBUG ] 2013-10-21 18:15:15,946 - Message received on NL:mandrake:handlers: {"id":2403,"type":"job",