Linux

Linux dd from server

Let’s say you have a huge image file on a file server and you want to dd the image to an SD card or a local drive.

Periodically publish IP to MQTT server

Here’s how I periodically have my various computers publish their IP address to an MQTT server. The message are set with “retain” flag so subscribing to the MQTT server will show all the IPs of my computers.

Batch Resize JPG Images in Linux

Here’s a super fast way to convert a bunch of .jpg images to a lower resolution without changing the aspect ratio. This is especially useful in reducing image sizes for websites.

Samba server on Linux Mint 18

A Samba server lets you share files and folders with Windows and Mac users over your network. Samba is no longer included in Linux Mint 18 but these instructions will get you up and running quickly.

ImportError: cannot import name ‘main’

I got this error trying to install Python pip on a fresh Ubuntu 16.04 install. Turns out pip 10.0 installs itself to ~/.local/bin instead of the typical location of /usr/bin/pip and it can’t find other modules it needs.

How to Install Jekyll on Linux Mint

I was having problems installing Jekyll on Linux Mint 17 and Linux Mint 18. Jekyll is a really good and simple static website creator which also has a lot of templates available for it. Here’s the complete steps.

Using virtualenv with Python

Python modules can get to be a mess. When someone tries to run your code, they have to install all the modules you’ve used. With all the Python programs you try out, your local install might have a gazillion modules installed.

Automount USB drives in Linux Mint

There’s a desktop GUI to automount a USB external drive in Debian-based Linux, but if you’re running headless, here’s how to do it via the command line. This udev script will automatically mount the removable drive as /media/label where label is the label of the drive.

Back to Top ↑

linux

Back to Top ↑

Python

Using virtualenv with Python

Python modules can get to be a mess. When someone tries to run your code, they have to install all the modules you’ve used. With all the Python programs you try out, your local install might have a gazillion modules installed.

Back to Top ↑

web

Back to Top ↑

Programming

Using virtualenv with Python

Python modules can get to be a mess. When someone tries to run your code, they have to install all the modules you’ve used. With all the Python programs you try out, your local install might have a gazillion modules installed.

Back to Top ↑

Web Development

Back to Top ↑

git

The Best Git Tutorial

The best tutorial so far is not from git itself; too technical and not enough background. The one I really liked most is from Atlassian.

Back to Top ↑

io

Back to Top ↑

backup

Back to Top ↑

Git

Back to Top ↑

Backup

Back to Top ↑

Network

Back to Top ↑

Data Science

Back to Top ↑

Raspberry Pi

Headless Setup Wifi on Raspberry Pi Stretch

A Raspberry Pi can be configured from scratch without using a monitor or a keyboard (headless setup). But Raspbian Stretch uses a different system to configure wifi than Jessie or earlier Raspbian Linux versions.

Back to Top ↑

source control

The Best Git Tutorial

The best tutorial so far is not from git itself; too technical and not enough background. The one I really liked most is from Atlassian.

Back to Top ↑

graphics

Draw Diagrams Online

Why draw diagrams online when there is Visio, Powerpoint, Inkscape, Illustrator and many more? For super simplicity, that’s why! Here are some examples.

Back to Top ↑

text

Draw Diagrams Online

Why draw diagrams online when there is Visio, Powerpoint, Inkscape, Illustrator and many more? For super simplicity, that’s why! Here are some examples.

Back to Top ↑

ffmpeg

Back to Top ↑

home automation

Back to Top ↑