Upgrade from Debian Jessie to Stretch

The Problem: I was running Debian Jessie (debian 8) and the package I needed to install was in debian testing repo. So I added testing repo and installed the package (libsnappy1v5) and I got scold by my super sysadmin boss: “Naoko, don’t make a FrankenDebian!” The Solution: The package I needed is now available in Stretch (debian 9) stable so I need to upgrade to it. First, I need to remove testing repo I’ve added ...

February 5, 2018 · 2 min · Naoko Reeves

Remote Edit with PyCharm

The Problem: I have powerful Linux machine and semi-powerful mac-book pro. I have need of editing code on Linux box from mac-book. PyCharm has deploy method for pushing code but that requires sftp to setup etc. I just want to use ssh to do it… I’ve done rsync method but sometimes manual sync was needed. I want more transparent method… The Solution: The easiest and most effective way for me was to mount linux directory via sshfs. It was amazingly easy. Assuming that you have established ssh connection with ssh-key with the remote machine. All you have to do was to install osxfuse and sshfs with brew. ...

January 30, 2018 · 1 min · Naoko Reeves

No Space Left Error when pip install

The Problem: Got OSError: [Errno 28] No space left on device When your home directory where your virtual environment located has more than enough space… Why?: The culprit is likely that your /tmp directory do not have enough space for some reason. During the pip installation, pip will use temporarily directory to perform what is necessary to perform installation (e.g. download source etc). Thus if you do not have enough space in /tmp that package installation requires then you will get disk space error. ...

December 26, 2017 · 1 min · Naoko Reeves

Secret Management with Vault

The problem: Where do you store your config/deployment management script? I’ve done 2 ways: Put along with application/repo. Put all the config/deployment script in one repo separately from apps. Each approach has its own Pros and Cons and I prefer the first approach which IMO is simpler but creates some duplication which is okay… I have some shared secrets that I encrypt with Ansible Vault but when I had to copy and pasted this secret on a few repos I started to look for better way to do this. ...

October 28, 2017 · 2 min · Naoko Reeves

Our Dream Home

We’ve built our dream house. ‘view’ fence backyard to see beautiful sunset over white tank mountain every day Dreamy Gourmet Kitchen Multi Sliding Glass Doors Dining Room Living Room Finally Bath Tub My Office Milestone Aug 2000: We bought our first home. It was new build but had no money to do any upgrade. Selection of the house is also cheap was one of the most important criteria. Oct 2008: When housing tanked, we bought the foreclosed home built in 2001. It is the model that we wanted to buy back in 2000 but could not afford. Walking distance to elementary school. It was perfect for us at the time. Sep 2017: We did not need or desperately wanted new house. We were living below our means and saved up good chunk of money. We were comfortable but we’ve decided to go outside of comfortable zone for various reasons and decided to build this amazing house.

October 27, 2017 · 1 min · Naoko Reeves