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 / keybase.md
Created December 22, 2020 12:28
Keybase Proof

Keybase proof

I hereby claim:

  • I am ckolumbus on github.
  • I am ckolumbus (https://keybase.io/ckolumbus) on keybase.
  • I have a public key ASBXTYIH2TpemFyz8K8UwvN6DONyrNnjezS8uQBNVc9SUgo

To claim this, I am signing this object:

@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 / BrowserSelect_Example.reg
Created June 24, 2019 07:47
How to register portable browsers for use withy https://github.com/zumoshi/BrowserSelect
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe\shell\open\command]
@="C:\\PortableApps\\FirefoxPortable\\FirefoxPortable.exe"
from enum import Enum
import json
def load_firefox_json(path, unique_tag, add_parent_folder_as_tag):
"""Open Firefox json export file and import data.
Ignore 'SmartBookmark' and 'Separator' entries.
Parameters
----------
@ckolumbus
ckolumbus / build.sh
Created April 1, 2018 17:28
cake-build bash bootstrap script using dotnet core
#!/usr/bin/env bash
# based on https://github.com/devlead/BitbucketPipelinesShield/blob/master/build.sh
# c.f. https://github.com/cake-build/cake/issues/1751
##########################################################################
# This is the Cake bootstrapper script for Linux and OS X.
# This file was downloaded from https://github.com/cake-build/resources
# Feel free to change this file to fit your needs.
##########################################################################
# CKolumbus: Remove dotnet-cli install section, assume sdk is installed
@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 / FOOBAR_main_template.py
Created April 9, 2014 15:03
Template for a main function in Python including optparse command line parsing
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 20xx CKolumbus
# All rights reserved.
#
# This file is part of FOOBAR.
#
# FOOBAR is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ckolumbus
ckolumbus / register.py
Created April 8, 2014 12:33
Register/Unregister Python installations in Windows
#
# script to register Python 2.0 or later for use with win32all
# and other extensions that require Python registry settings
#
#
# source:
# http://www.pythonware.com/products/works/articles/regpy20.htm
import sys