Skip to content

Instantly share code, notes, and snippets.

View ciaranmccormick's full-sized avatar

Ciaran McCormick ciaranmccormick

View GitHub Profile
[program:stretchowl]
command=/srv/stretchowl/bin/python3 /srv/stretchowl/src/run.py
autostart=true
autorestart=true
stderr_logfile=/srv/stretchowl/logs/owl.err.log
stdout_logfile=/srv/stretchowl/logs/owl.out.log
user=stretchowl
@ciaranmccormick
ciaranmccormick / git.sh
Created February 27, 2018 20:02
How to use git
# Get your public ssh key
# IF you cat remember your id_rsa.pub password then
ssh-keygen
# The hit enter until it's generate the key
# Print the public key on screen
cat ~/.ssh/id_rsa.pub

Keybase proof

I hereby claim:

  • I am ciaranmccormick on github.
  • I am ciaranmccormick (https://keybase.io/ciaranmccormick) on keybase.
  • I have a public key ASDZjQuJwYccFNck3m6tFiQSJiL_-xZvh8LNg66Y2E9JlAo

To claim this, I am signing this object:

from .tesco_api import TescoRequestClient
from .models import TescoProduct
def insert_basket():
# create Tesco Request Client
client = TescoRequestClient(email, password, dev_app, app_key)
products = client.format() # See note in tesco_api.py about this function name
for product in products:
# insert product into database