Skip to content

Instantly share code, notes, and snippets.

@tobiase
tobiase / README.md
Created March 27, 2018 10:43 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.
@tobiase
tobiase / responsive_image.py
Created April 25, 2018 23:30 — forked from davecranwell/responsive_image.py
Responsive image tag for Wagtail CMS
from django import template
from django.template import Context
from django.template.base import parse_bits
from wagtail.wagtailimages.templatetags.wagtailimages_tags import ImageNode
from wagtail.wagtailimages.models import Filter, SourceImageIOError, InvalidFilterSpecError
from britishswimming.utils.models import SocialMediaSettings
register = template.Library()
@tobiase
tobiase / .tmux.conf
Created February 23, 2019 01:35 — forked from paulodeleo/.tmux.conf
Tmux configuration to enable mouse scroll and mouse panel select, taken from: http://brainscraps.wikia.com/wiki/Extreme_Multitasking_with_tmux_and_PuTTY
# Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
set -g mouse-select-pane on
# Allow mouse dragging to resize panes
set -g mouse-resize-pane on
# Allow mouse to select windows
@tobiase
tobiase / child-app-gitlab.rb
Created July 26, 2019 01:04 — forked from Soulou/child-app-gitlab.rb
Deploy a child app on Scalingo from a Gitlab private repository
#!/usr/bin/env ruby
require 'json'
require 'restclient'
auth_token = ENV["AUTH_TOKEN"]
api_url = ENV["SCALINGO_API_URL"] || "https://api.scalingo.com/v1"
auth_url = ENV["SCALINGO_AUTH_URL"] || "https://auth.scalingo.com/v1"
app = ENV["APP"]
@tobiase
tobiase / dj-stripe.sync-command.py
Created October 17, 2019 13:15 — forked from blackboxoperations/dj-stripe.sync-command.py
Sync Command for pending dj-stripe release
import datetime
import json
import multiprocessing
import stripe
import sys
import threading
import time
from pprint import pprint