Skip to content

Instantly share code, notes, and snippets.

View Teatoller's full-sized avatar

Steven Ennis Teatoller

  • Kisumu
View GitHub Profile
@Teatoller
Teatoller / deployment_guide.md
Created November 27, 2019 06:48 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
@Teatoller
Teatoller / git-collaborative-workflow.md
Created January 19, 2019 15:22 — forked from adamloving/git-collaborative-workflow.md
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”
@Teatoller
Teatoller / bobp-python.md
Created January 14, 2019 06:46 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@Teatoller
Teatoller / git-pull-all
Created December 21, 2018 04:00 — forked from grimzy/git-pull-all
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@Teatoller
Teatoller / test_field_posts.py
Last active December 19, 2018 11:30
Tests to validate field inputs such as
from django.test import TestCase
from rest_framework.test import APIClient
from authorsHaven.models import Post
class PostTest(TestCase):
""" This is to test that the Post created has author, title, text in field, create and publish dates """
def setUp(self):
# Setup run before every test method.
pass
posts= {
@Teatoller
Teatoller / gitcom.md
Created June 17, 2018 07:49 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init