Skip to content

Instantly share code, notes, and snippets.

View akszydelko's full-sized avatar
🐒
Don't worry, code, be happy.

Arkadiusz Szydełko akszydelko

🐒
Don't worry, code, be happy.
  • Infermedica
  • Poland
View GitHub Profile
@akszydelko
akszydelko / Python3 Virtualenv Setup.md
Last active November 19, 2020 13:44 — forked from evansneath/Python3 Virtualenv Setup
Setting up and using Python3 Virtualenv

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ sudo apt-get install python3 python3-pip
@akszydelko
akszydelko / Add trusted root certificate.md
Last active June 25, 2016 08:20
Adding trusted root certificates to the server

Add trusted root certificate

Copy your certificate file *.crt into /usr/local/share/ca-certificates/

$ sudo cp foo.crt /usr/local/share/ca-certificates/

Update the CA store

$ sudo update-ca-certificates
@akszydelko
akszydelko / Install supervisor.md
Last active August 23, 2016 08:48
Install supervisor on ubunut 16.04

Supervisor instalation

Install the pacakge

$ sudo apt-get install supervisor

Link configuration file

$ sudo ln -s /etc/supervisor/supervisord.conf /etc/
@akszydelko
akszydelko / export_csv_for_excl.py
Last active May 23, 2016 11:57
Export csv that opens in Excl without formatting problems
import codecs
import csv
with open('data.csv', 'wb') as f:
# Write BOM to the file, it is required
# Excl without BOM does not understend UTF-8 charcters... (Non ascii characters)
f.write(codecs.BOM_UTF8)
# Set excl dialect
# Delimiter ; is required so columns are detected properly
writer = csv.writer(f, dialect=csv.excel, delimiter=';') # Option 1
@akszydelko
akszydelko / Fix_locale_issue.md
Last active July 7, 2016 08:05
Fix locale issue

Locale issue fix

$ sudo locale-gen "en_US.UTF-8"
$ sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8

It updates /etc/default/locale with provided values.

Now logout and log in (or even restart the machine).