Skip to content

Instantly share code, notes, and snippets.

View ckolumbus's full-sized avatar
🐧
Live, Love, Code

Chris Drexler ckolumbus

🐧
Live, Love, Code
View GitHub Profile
@ckolumbus
ckolumbus / README.md
Created November 6, 2022 19:47 — forked from russelldavies/README.md
Matrix homeserver setup with Docker and Traefik

This guide assumes that example.com is your server name, so user IDs will in the format @user:example.com, and that matrix.example.com is the domain name of your actual server.

Requirements

At least 512 MB memory. Approximate memory usage of services:

  • Traefik: 20 MB
  • Postgres: 70 MB
  • Synapse: 150 MB
@ckolumbus
ckolumbus / Import-LocalModule.ps1
Created March 16, 2020 14:06 — forked from mamidenn/Import-LocalModule.ps1
Import PowerShell module without polluting environment
$name = psake
Save-Module -Name $name -Path .
Import-Module -Name .\$name
@ckolumbus
ckolumbus / tmux.conf
Created March 4, 2017 15:04 — forked from anonymous/tmux.conf
vim friendly tmux configuration
#Prefix is Ctrl-a
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
#Mouse works as expected ; not working with new tmux?
from __future__ import absolute_import
from __future__ import unicode_literals
from urlparse import urljoin
from . import Extension
from ..treeprocessors import Treeprocessor
class AbsoluteImagesExtension(Extension):
""" Absolute Images Extension """
@ckolumbus
ckolumbus / gist:2764461
Created May 21, 2012 20:29
Cherrypy Jinja handler
"""A Jinja Handler and tool. This code is in the public domain.
Adjusted for CherryPy 3.2
Usage:
@cherrypy.expose
@cherrypy.tools.jinja(template='index.html')
def controller(**kwargs):
return {
} # This dict is the template context