There are two methods:
- Scripted Method
- Boot Overlay Method (also below as "tl;dr")
Add the following to your /boot/config.txt
and reboot:
# Add to ~/.bash_aliases | |
# | |
# Random helpers | |
alias cd..='cd ..' # Get rid of command not found error | |
alias diff='colordiff' # Colorize diff output | |
alias ping='ping -c 3' # Stop pings after three | |
# Do system update/upgrade and cleanup in one shot | |
alias update='sudo apt --fix-broken install -y && sudo apt update && sudo apt upgrade -y && sudo apt autoremove --purge -y && sudo apt clean && sudo apt autoclean -y' | |
alias upgrade='update' |
Issue: You are travelling and all oyu have access to is that crappy sort of Internet which requires you to hit a network login page via your laptop's web browser. You want to connect some other devices, maybe some IoT devices so you can keep up with your projects. No way to do that since they don't have a web browser. Or maybe you have access to some pay-as-you-go Internet but it only allows one device?
Solution: A Raspberry Pi Zero W (or any Pi with a WiFi).
Overview:
<!-- | |
PHP Log Tail | |
by Lee C. Bussy | |
A single-page log file viewer with "tail -f" capabilities. | |
Pass the name of the log file to be viewed as a URL parameter: | |
log_tail.php?logFile=my.log | |
For safety and to prevent breakouts, the path to the log file |
# -*- coding: utf-8 -*- | |
# Saved from: | |
# https://www.circuitbasics.com/raspberry-pi-i2c-lcd-set-up-and-programming/ | |
# Original code found at: | |
# https://gist.github.com/DenisFromHR/cc863375a6e19dce359d | |
""" | |
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic |
When you git fetch
sometimes you may not see all origin branches when you issue the command git branch -a
or git branch -r
.
This happens sometimes, if you change the remote repository with:
git remote set-url origin https://github.com/{owner}/{repository}
When this happens, exit .git/config
and look for a hard-coded branch name in the origin:
Here's how to change git to use SSH.
The below scripts will automate the repo changes needed.