Skip to content

Instantly share code, notes, and snippets.

View LucasRoesler's full-sized avatar

Lucas Roesler LucasRoesler

View GitHub Profile
@LucasRoesler
LucasRoesler / pretty_git_log
Created June 9, 2014 18:55
A pretty git log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
### Keybase proof
I hereby claim:
* I am lucasroesler on github.
* I am theaxer (https://keybase.io/theaxer) on keybase.
* I have a public key whose fingerprint is A62A A0E7 B9A9 CD22 CF1B CAF4 2355 3DFF EDE5 F952
To claim this, I am signing this object:
@LucasRoesler
LucasRoesler / CommaSeparatedEmailField.py
Created June 29, 2015 17:06
CommaSeparatedEmailField
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.core.validators import validate_email, EMPTY_VALUES
from django.forms.fields import Field
class CommaSeparatedEmailField(Field):
description = _(u"E-mail address(es)")
def __init__(self, *args, **kwargs):
self.token = kwargs.pop("token", ",")
FORMAT: 1A
HOST: https://eventboard.io/api/v4
# Eventboard.io API Spec
The api specification for eventboard.io
# Data Structures
## Reservation Base (object)
+ id: 1 (number)
swagger: '2.0'
info:
title: Eventboard API
version: 4.0.0
contact:
url: https://eventboard.io/developers/
email: support@eventboard.io
host: eventboard.io
basePath: /api/v4
schemes:
@LucasRoesler
LucasRoesler / git_aliases.ini
Created October 2, 2016 17:22
Some helpful git aliases, add these to your ~/.gitconfig
[alias]
# common operations
cp = cherry-pick
ci = commit
co = checkout
br = branch
undo-commit = reset --soft HEAD~1
# log as a graph
graph = log --graph --oneline --decorate --all
[alias]
# common operations
cp = cherry-pick
ci = commit
co = checkout
br = branch
undo-commit = reset --soft HEAD~1
# sort branches by last update
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
openapi: 3.0.0
info:
title: Contiamo Labs Server API
description: >-
The labs server API describes a REST-ful interface for interacting with labs
server. This includes the creation and editing of bundles and the
deployment of bundle functions.
version: 0.0.1
contact:
name: Contiamo
@LucasRoesler
LucasRoesler / job.yaml
Created July 19, 2018 14:54 — forked from alexellis/job.yaml
Use a Kubernetes Job and Kaniko to build an OpenFaaS function from Git
# Alex Ellis 2018
# Example from: https://blog.alexellis.io/quick-look-at-google-kaniko/
# Pre-steps:
# kubectl create secret generic docker-config --from-file $HOME/.docker/config.json
# Other potential optimizations (suggested by @errordeveloper)
# - Store "templates" in a permanent volume
# - Download source via "tar" instead of git clone
@LucasRoesler
LucasRoesler / slack-night-mode.css
Created January 21, 2019 08:59
dark mode for slack
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }