Skip to content

Instantly share code, notes, and snippets.

View tockards's full-sized avatar
💭
🍫

Toufeeq Ockards tockards

💭
🍫
View GitHub Profile
@tockards
tockards / links.md
Last active October 18, 2023 10:07
PyConZA 2023
@tockards
tockards / black_selection.sh
Created January 30, 2020 11:41 — forked from BasPH/black_selection.sh
Black on selection
#!/usr/bin/env bash
set -x
black=$1
input_file=$2
start_line=$3
end_line=$4
# Read selected lines and write to tmpfile
@tockards
tockards / System Design.md
Created October 25, 2019 17:06 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@tockards
tockards / README-Template.md
Created July 20, 2019 20:56 — forked from ramantehlan/README-Fancy.md
README template I use for most of my projects.

Introduction

  • Add your project logo.
  • Write a short introduction to the project.
  • If you are using badges, add them here.

📒 Index

@tockards
tockards / README-Template.md
Created June 13, 2019 20:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@tockards
tockards / jiraRefreshTickets.js
Created August 4, 2017 08:23 — forked from rtrcolin/jiraRefreshTickets.js
Super simple Google Docs integration with Jira Issues/Tickets
// URL for Jira's REST API for issues
var getIssueURL = "https://[Your Jira host]/rest/api/2/issue/";
// Personally I prefer the script to handle request failures, hence muteHTTPExceptions = true
var fetchArgs = {
contentType: "application/json",
headers: {"Authorization":"Basic [Your BASE64 Encoded user:pass]"},
muteHttpExceptions : true
};
@tockards
tockards / SimpleHTTPServerWithUpload.py
Created July 24, 2017 18:56 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@tockards
tockards / hubot-slack-heroku.md
Created July 12, 2017 14:20 — forked from trey/hubot-slack-heroku.md
Steps to Install Hubot in Slack using Heroku
@tockards
tockards / WhatIHaveDone.md
Created July 10, 2017 08:43 — forked from AndreasMadsen/WhatIHaveDone.md
Playing with smartos
@tockards
tockards / consul.sh
Last active June 28, 2017 13:56 — forked from xbotter/consul.sh
Install Consul 0.8.5 on Ubuntu 16.04
#!/bin/bash
apt-get install -y curl unzip
mkdir -p /var/lib/consul
mkdir -p /usr/share/consul
mkdir -p /etc/consul/conf.d
curl -OL https://releases.hashicorp.com/consul/0.8.5/consul_0.8.5_linux_amd64.zip
unzip consul_0.8.5_linux_amd64.zip
mv consul /usr/local/bin/consul