Skip to content

Karantan's blog

  • Home
  • Contact
  • About me
Karantan
October 30, 2019October 30, 2019Comments count 0

[NixCon 2019] Reading Nix expressions (notes)

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…

Continue reading
Karantan
October 28, 2019October 28, 2019Comments count 0

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…

Continue reading
Karantan
October 11, 2019October 11, 2019Comments count 0

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…

Continue reading
Karantan
September 3, 2019October 17, 2019Comments count 0

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…

Continue reading
Karantan
August 22, 2019August 22, 2019Comments count 0

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…

Continue reading
Karantan
April 25, 2018July 16, 2018Comments count 0

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…

Continue reading
Karantan
November 9, 2017Comments count 0

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…

Continue reading
Karantan
November 9, 2017Comments count 0

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…

Continue reading
Karantan
December 13, 2016Comments count 0

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…

Continue reading
Karantan
November 14, 2016Comments count 0

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…

Continue reading

Posts navigation

Older posts


Archives

Tag Cloud

conda Git Go Lessons learned Magento Mock Mongodb nix PostgreSQL Python Python3 Rsync tmux Unit testing

Newsletter