Skip to content

Instantly share code, notes, and snippets.

View KarolBedkowski's full-sized avatar

Karol Będkowski KarolBedkowski

View GitHub Profile

openpgp4fpr:e6b26a59ad3bd80da22cf54baffc8a6894648b15

@KarolBedkowski
KarolBedkowski / notify.py
Last active January 26, 2023 18:00
weechat notify.py script - fixed
# -*- coding: utf-8 -*-
# Author: lavaramano <lavaramano AT gmail DOT com>
# Improved by: BaSh - <bash.lnx AT gmail DOT com>
# Ported to Weechat 0.3.0 by: Sharn - <sharntehnub AT gmail DOT com)
# This Plugin Calls the libnotify bindings via python when somebody says your nickname, sends you a query, etc.
# To make it work, you may need to download: python-notify2 (and libnotify - libgtk)
# Requires Weechat 0.3.0
# Released under GNU GPL v2
# 2023-01-25, Karol Będkowski
# migratr to pynotifier, support weechat-matrix; filter old messages; change script name
// Simple HTTPS server for verifying client connections.
package main
import (
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"flag"
"fmt"
"io/ioutil"
@KarolBedkowski
KarolBedkowski / vimrc
Created March 1, 2017 18:20
minimal vimrc
set nocompatible
syntax on
filetype plugin indent on
set wildmenu
set autoindent
"set number
set backspace=indent,eol,start
set ruler
set ignorecase
set smartcase

Keybase proof

I hereby claim:

  • I am KarolBedkowski on github.
  • I am kbedkowski (https://keybase.io/kbedkowski) on keybase.
  • I have a public key whose fingerprint is F252 8619 C236 5532 FF47 929A 1DA3 2734 B3B7 0625

To claim this, I am signing this object:

@KarolBedkowski
KarolBedkowski / etlutils.py
Created November 3, 2012 15:50
petl - utils (csv-unicode, xml)
import csv
from xml.etree import ElementTree
from petl import tocsv, fromcsv, convertall
def tocsvunicode(table, filename, encoding='utf-8', **kwds):
data = (map(lambda x: unicode(x).encode(encoding), row) for row in table)
tocsv(data, filename, **kwds)
def fromcsvunicode(source=None, dialect=csv.excel, encoding='utf-8', **kwargs):
table = fromcsv(source, dialect, **kwargs)