- Linux 19
- linux 8
- Python 3
- web 3
- Programming 2
- Web Development 2
- git 2
- io 2
- backup 2
- Git 1
- Backup 1
- Network 1
- Data Science 1
- Raspberry Pi 1
- source control 1
- graphics 1
- text 1
- ffmpeg 1
- home automation 1
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.
Page Up/Page Down key on Acer C720 Chromebook running GalliumOS
GalliumOS runs great on the Acer C720 Chromebook, but one function that does not work correctly is a PageUp/PageDn key. On most Chromebooks, you do this by pressing Alt-Up and Alt-Down keys. You can apply this workaround.
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.
Prevent mouse, keyboard and USB devices from waking up PC
In Linux Mint, bumping my mouse or keyboard would wake up my PC from suspend. Here’s how I disabled it.
Programming ESP8266 with MicroPython
Here’s the latest instructions on how to progam MicroPython onto the ESP8266 wifi chip. New changes have made the old directions not work.
Autodocumentation using sphinx and self-hosted git server
This is an article in progress.
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.
Setup Pandas and Python using Anaconda Package
Pandas is a module for Python for data analysis. Anaconda is a complete SW package that includes Python with Pandas, Numpy, Matplotlib, and various modules for data science.
Map a Remote Folder as a Local Drive
Linux Mint and Ubuntu can open a remote folder natively in file manager using “File/Connect To Server…” but many applications will not do this.
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.
Send Email using Python smtplib Module and Gmail
A few lines of Python and a Gmail account is all that is needed to send email. This is useful for having your computer send you status emails such as backup notifications, or problems.
rsync Backup Parameters and Bash Script
This is an example of rsync backup parameters I use that work really well with Linux Mint and Rasbian Jessie (Debian-based).
Change permissions to Linux files only or directories only
To change all the files only (not the directories) from the present directory and lower (recursive) to, for example, premissions 655:
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.
Run Your Own Git Server using Google Gogs
There are several github servers you can run on your own machine, but Gogs is very lightweight and simple. So light that it will even run on a Raspberry Pi.
Linux Package Cheatsheet
These are common Linux (Debian) commands to maintain the packages in Debian-based Linux systems.
linux
Send a Slack Message on User Login and Logout
This is how I have Linux send me a Slack message whenever someone logs in or out of my server.
Linux Backup to a Remote Server via ssh
Here’s how to do a tar backup to a remote server via ssh.
Full and Incremental Backup to a USB drive
Here’s how I do a full and also an incremental backup to a USB drive on a Debian Linux system.
Setup Sphinx with RTD Theme Quickly
This post explains how to setup Sphinx for source documentation quickly.
How to Fake a Domain for Wordpress and Web Development
This post explains how to setup a fake domain on your Linux Apache server so it will serve a particular domain from a local directory.
Move a Wordpress Website from a Local Server to Hostgator
Moving an existing Wordpress site to Hostgator involves:
Password Protect a Directory in Apache Server Using htaccess
To password protect a directory on an Apache web server, a .htaccess hidden file can be used. Here’s how to do it.
Mount a Remote Directory as a Local Directory via SFTP in Linux
In Debian Linux, you can mount a remote file system easily using sshfs to drag and drop files with ease.
Python
Autodocumentation using sphinx and self-hosted git server
This is an article in progress.
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.
Send Email using Python smtplib Module and Gmail
A few lines of Python and a Gmail account is all that is needed to send email. This is useful for having your computer send you status emails such as backup notifications, or problems.
web
How to Fake a Domain for Wordpress and Web Development
This post explains how to setup a fake domain on your Linux Apache server so it will serve a particular domain from a local directory.
Move a Wordpress Website from a Local Server to Hostgator
Moving an existing Wordpress site to Hostgator involves:
Password Protect a Directory in Apache Server Using htaccess
To password protect a directory on an Apache web server, a .htaccess hidden file can be used. Here’s how to do it.
Programming
Setup Pandas and Python using Anaconda Package
Pandas is a module for Python for data analysis. Anaconda is a complete SW package that includes Python with Pandas, Numpy, Matplotlib, and various modules for data science.
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.
Web Development
Using GoDaddy for domain and DNS and Hostgator for web hosting
Using GoDaddy for domain registry and DNS while using Hostgator for web hosting might seem complicated, but I have domains already at GoDaddy and it let’s me point any domain to any web host so I am not stuck with one web provider.
The Best Documentation on Jekyll Static Website Generator
The best documentation I found for Jekyll, the static website generator, is at cloudcannon. It is much better than the Jekyll website itself
git
My git notes
These are my notes on commonly used git commands.
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.
io
Writing udev rules for USB serial and IO devices
Here’s a summary of how to write linux udev rules for USB devices, especially for IO.
USB-to_Serial adapter reference information
This is a rundown of various USB-to-serial devices I’ve used and technical information I’ve found out.
backup
Linux Backup to a Remote Server via ssh
Here’s how to do a tar backup to a remote server via ssh.
Full and Incremental Backup to a USB drive
Here’s how I do a full and also an incremental backup to a USB drive on a Debian Linux system.
Git
Run Your Own Git Server using Google Gogs
There are several github servers you can run on your own machine, but Gogs is very lightweight and simple. So light that it will even run on a Raspberry Pi.
Backup
rsync Backup Parameters and Bash Script
This is an example of rsync backup parameters I use that work really well with Linux Mint and Rasbian Jessie (Debian-based).
Network
Map a Remote Folder as a Local Drive
Linux Mint and Ubuntu can open a remote folder natively in file manager using “File/Connect To Server…” but many applications will not do this.
Data Science
Setup Pandas and Python using Anaconda Package
Pandas is a module for Python for data analysis. Anaconda is a complete SW package that includes Python with Pandas, Numpy, Matplotlib, and various modules for data science.
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.
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.
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.
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.
ffmpeg
Common ffmpeg commands
These are my notes on commonly used ffmpeg commands.
home automation
Setup Tasmota for Correct Timezone and Daylight Savings Time
Here’s the way to setup your Tasmota device so it calculates daylight savings correctly.