This are my notes from the Reading Nix expressions talk in NixCon 2019. Nix package language has a similar syntax to the "JSON meets functional language concepts". E.g. you have…
Create a new package in Go using Go Modules
Go Modules The purpose of this post is to give a very simple example and instructions on how to create a Go package with the Go Modules. Create a new…
Nix package manager
Few good articles: Domen’s article Getting started with Nix package manager. Nix and Python. Nix and Python user guide. Nix – The Purely Functional Package Manager for Linux. Nix for…
Allow root access without password
First add a user: $ sudo adduser ubuntu $ sudo usermod -aG sudo ubuntu Edit sudoser file with visudo (edit the sudoers file in a safe fashion). $ sudo visudo…
Install Apache & Set Up Virtual Hosts
This is just a quick step by step guide taken from DigitalOcean’s tutorial (see the references at the bottom). The main difference is that it has less explanation – so…
Pipenv: basic overview
Pipenv essentially acts as a replacement for pip. It introduces 2 “new” files: Pipfile (“replacement” for requirements.txt) and Pipfile.lock which ensures that builds are deterministic. Pipenv uses pip and virtualenv under the…
Conda cheat sheet
Create new environment: conda create –name sandbox python=3.5 Create the environment from the environment.yml file: conda env create -f environment.yml Activate specific environment: source activate sandbox Export your active environment to a…
tmux cheatsheet
My personal tmux cheat sheet Create a new session: tmux new -s myname Attach: tmux a Attach to a specific named session: tmux a -t myname List of sessions: tmux…
Python3 strings
A bit of background on unicode and UTF-8: Unicode has a different way of thinking about characters. In Unicode, the letter “A“ is a platonic ideal. It’s just floating in…
Python PDB
Last month I attended PyMunich conference and in this blog post I want to highlight a talk by Philip Bauer (“Debug like a pro. How to become a better programmer through…