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 / extract_pdf_comments.py
Created April 8, 2014 09:12
PDF Comment extraction with Python and PDFMIner
from pdfminer.pdfparser import PDFParser
from pdfminer.pdfdocument import PDFDocument
from pdfminer.pdftypes import PDFObjectNotFound
pages = []
def extract(objid, obj):
global pages
if isinstance(obj, dict):
# 'Type' is PDFObjRef type
@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
@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 / 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"
@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
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?
@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