Skip to content

Instantly share code, notes, and snippets.

View doismellburning's full-sized avatar
🔥

Kristian Glass doismellburning

🔥
View GitHub Profile
@doismellburning
doismellburning / Dockerfile
Last active December 31, 2017 15:23
Django on Docker
FROM python:3.5
COPY requirements.txt /opt/{{ cookiecutter.org_name }}/{{ cookiecutter.app_name }}/
WORKDIR /opt/{{ cookiecutter.org_name }}/{{ cookiecutter.app_name }}/
RUN pip install -r requirements.txt
COPY . /opt/{{ cookiecutter.org_name }}/{{ cookiecutter.app_name }}/
RUN python {{ cookiecutter.app_name }}/manage.py collectstatic --noinput

Practical / Tactical

Be on time to meetings or alert an hour ahead of time if you'll be late

Meetings need a goal and a runner to get that goal accomplished

Defend your time from distractions and use it effectively on moving product forward

Prefer Slack over email over in person interruptions over a set block of time

LaterPay is seeking a Front-End Engineer

Who we are

With LaterPay, we want to change the way people buy and sell digital content on the Internet. Why? Because we believe paying for digital content should be fast, convenient, and fair. And because we think you should be able to buy the exact piece of content you want.

We want to create a great software product which influences and changes the way people use paid content of any kind on the Internet. The usage of paid content should be as easy and convenient as going out to dinner: you are served first and pay later.

#!/bin/bash
INFILE=$1
TEXT=$2
OUTFILE=out.jpg
# Manual hackery :(
WIDTH=400
HEIGHT=75
@doismellburning
doismellburning / tests.py
Created March 15, 2015 23:44
_Why_ does my test pass, when there's no `owner` filtering??
from django.conf import settings
from django.db import models
from django.utils.timezone import now
class Doable(models.Model):
short_description = models.CharField(max_length=120)
owner = models.ForeignKey(settings.AUTH_USER_MODEL)

What sort of documentation

Things that belong in here include:

  • General guidelines, e.g.
    • Code style
    • Testing principles
  • High level cross-project documentation, e.g.
    • "This is how these three services interact"
  • Infrastructure
#!/bin/bash -x
# Very very hacky, I'm so sorry - KG
TYPE=$1
PROCFILE="./Procfile"
if [ -z $TYPE ]
then
echo "Please supply a process type as the first argument"
@doismellburning
doismellburning / elasticsearch.pp
Created February 12, 2015 12:30
Example Elasticsearch puppet config with instancing
class myexample::elasticsearch (
) {
$instance = 'loremipsum'
class {
'::elasticsearch':
package_url => 'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.1.deb',
}