Skip to content

Instantly share code, notes, and snippets.

View fabe's full-sized avatar
🪼

Fabian Schultz fabe

🪼
View GitHub Profile
@fabe
fabe / manifest.json
Created March 22, 2016 11:30
Chrome plugin to send every network request to a server via socket.io.
{
"name": "plugin",
"description": "plugin description.",
"devtools_page": "plugin.html",
"permissions": [
"http://*/*",
"https://*/*"
],
"manifest_version": 1,
"version": "1"
@fabe
fabe / tools.md
Last active November 4, 2015 17:33
@fabe
fabe / print_file.py
Last active November 4, 2015 17:34
Cactus plugin: easy including of CSS inside HTML (faster for smaller sites).
import sys
from cactus.template_tags import register
# Easy including of CSS inside HTML (faster for smaller sites).
# Usage: {% print_file "path/to/stylesheet.css" %}
@register.simple_tag
def print_file(path):
try:
file = open(path).read().decode()