This demo file will allow uploading to a capable endpoint (in this case /api/v1/fs/upload/
). It is styled with Bootstrap as an example of the integration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 update && sudo apt --fix-broken install -y && sudo apt autoremove --purge -y && sudo apt clean && sudo apt autoclean -y && sudo apt upgrade -y' | |
alias upgrade='update' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
Here's how to change git to use SSH.
The below scripts will automate the repo changes needed.
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:
Source: https://www.leowkahman.com/2016/03/19/disable-ipv6-raspberry-raspbian/
Firstly, check for presence of IPv6 using ifconfig. You should be seeing a few lines containing inet6 addr: ....
To disable, edit a file: sudo nano /etc/sysctl.conf
Add the following line:
net.ipv6.conf.all.disable_ipv6 = 1
NewerOlder