Skip to content

Instantly share code, notes, and snippets.

View pziecina's full-sized avatar

Paweł Zięcina pziecina

View GitHub Profile
# change postgresql template1 db encoding to utf8 (unicode) by dropping it and recreating from template0
UPDATE pg_database SET datistemplate=false WHERE datname='template1';
drop database template1;
create database template1 with template = template0 encoding = 'UTF8';
@pziecina
pziecina / README.md
Last active February 22, 2024 05:29
dwm configuration

dwm config

Install required packages:

apt-get install libxinerama-dev libx11-dev

Customization of [dwm], which base code of dwm may be found under:

git clone http://git.suckless.org/dwm
@pziecina
pziecina / send_email
Last active December 11, 2015 17:48
How to send email from cmd line
#source: http://www.debianadmin.com/how-to-sendemail-from-the-command-line-using-a-gmail-account-and-others.html
#--help is very helpful
#simple - message from file
sendEmail -f my.account@gmail.com -t recipient1@domain.tld \
-u "this is the test tile" -m "this is a test message" \
-a /mnt/storage/document.sxw "/root/My Documents/Work Schedule.kwd"
-s smtp.gmail.com:587 \
-xu my.account -xp mypasswd