Skip to content

Instantly share code, notes, and snippets.

View fidiego's full-sized avatar

Dat Boi Diego fidiego

View GitHub Profile
@fidiego
fidiego / tornado_slackbot.py
Created October 19, 2016 23:12
A tornado-based slackbot.
```
Tornado-based slack client inspired by the full stack python version:
https://www.fullstackpython.com/blog/build-first-slack-bot-python.html
Polls the rtm_stream every second w/ a periodic callback
```
import logging
import os
import time
@fidiego
fidiego / .gitconfig
Last active November 20, 2017 18:03
Dotfiles - The structure and content of my dotfiles
[alias]
br = branch
co = checkout
lg = log --color --date=local --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
log = log --topo-order --decorate
st = status -sb
up = fetch --all --prune
pup = !git fetch --all --prune && git pull
[diff]
@fidiego
fidiego / slate.conf
Created August 9, 2018 21:58
Config file for gh:jigish/slate
####
# Resize Bindings
####
# Full Screen
bind m:cmd;alt;ctrl push right bar-resize:screenSizeX
# throw to monitor
bind left:ctrl;alt throw next
bind right:ctrl;alt throw next
# vim: syntax=dockerfile
### Multi-stage build
### 1. django: install dependencies
# FROM python:3.7.7-alpine3.11 for build step
FROM python@sha256:778802b5b9797279772814fb15a7c6ee494848ced17965bb57092a0b900c0e4f as builder
# install dependencies to build c-extensions
RUN apk update && apk add --no-cache \
gcc \