-
Redis timeseries
-
Running playground container for testing out redistimeseries
docker run
-p 6379:6379 \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"theme": "onepage-plus" | |
}, | |
"basics": { | |
"name": "Jon Whittlestone", | |
"label": "Senior Backend Developer", | |
"image": "https://i.imgur.com/32x22gS.png", | |
"summary": "I am a full-stack developer designing, building and maintaining data-intensive apps. I'm a product-focused collaborator who consults with security and user feedback as primary concerns.\r\r Building across the entire stack, I specialise in delivering solutions that enable SaaS companies to retain larger and more valuable subscribers.", | |
"website": "http://words.howapped.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
#DO droplet metadata intro + for DO-API | |
# [https://www.digitalocean.com/community/tutorials/an-introduction-to-droplet-metadata#how-to-retrieve-droplet-metadata#digitalocean-api] | |
# | |
#intro to cloud-config scripting (source of following examples) | |
# [https://www.digitalocean.com/community/tutorials/an-introduction-to-cloud-config-scripting] | |
# | |
#howto | |
# [https://www.digitalocean.com/community/tutorials/how-to-use-cloud-config-for-your-initial-server-setup] | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"match": { | |
"isbn_keyword": "9780008179823" | |
} | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* MORE INFORMAL | |
- "What are you doing in Python that is exciting you / you consider 'cutting-edge' / what's interesting to you in Python a.t.m | |
* Do you know what a PEP is 'Zen of Python'? Favourite line from zen of Python and why? | |
- 'Although never is often better than *right* now. | |
+ Because it implies that rushing will cause problems until property digested and discussed | |
* Has your previous Python projects been secure? In what way have you had to optimise for security? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core import serializers | |
from product.models import Product, Author | |
import json | |
# Pretty Printing a model instance by converting it to JSON | |
# assuming obj is a model instance | |
author_id = 6417 | |
products = Product.objects.filter(author_id=author_id) | |
serialized_obj = serializers.serialize('json', [ products[0], ]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See: https://github.com/lambdalisue/jupyter-vim-binding/wiki/Installation | |
1. pip install jupyter_contrib_nbextensions | |
2. jupyter nbextensions_configurator enable --use | |
3. Add the vim binding | |
# You may need the following to create the directoy | |
mkdir -p $(jupyter --data-dir)/nbextensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▶ docker build -t shakyshane/laravel-app -f ./app.dockerfile . | |
Sending build context to Docker daemon 721.4 kB | |
Step 1/8 : FROM shakyshane/laravel-php:latest | |
---> dd18f9511e64 | |
Step 2/8 : COPY composer.lock composer.json /var/www/ | |
---> Using cache | |
---> 874dac8074d3 | |
Step 3/8 : COPY database /var/www/database | |
---> Using cache | |
---> dd57d56da83e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, jsonify | |
app = Flask(__name__) | |
@app.route("/") | |
def index(): | |
data = { | |
"header": [ | |
"Date", | |
"Payment Id" |
A LAMP sandbox appliance image for use with VirtualBox
- LAMP - 5.4.17
- phpMyAdmin
- Git
NewerOlder