cat /proc/sys/net/bridge/bridge-nf-call-iptables
sysctl vm.swappiness=0
swapoff -a
Backup of https://hallard.me/raspberry-pi-read-only/ | |
Protect your Raspberry PI SD card, use Read-Only filesystem | |
Posted on May 14, 2015 by Charles | |
Today I decided to protect all my Raspberry Pi SD cards from unproper shutdown and also prevent SD card premature end of life. This means protect them from power outage or just unplugging the power while the Pi is running. | |
Edit : | |
April 2016 to works on Jessie and Raspberry PI 3 | |
January 2017 Fix SSH access problem after reboot / moved resolv.conf to tmpfs |
# This gist demonstrates a simple method to create a WebSockets proxy for a MQTT broker. | |
# I use this method to provide a WebSockets interface for the Mosquitto MQTT broker. | |
# This lets my browser based MQTT applications to access my MQTT broker. | |
# I consider this approach simpler than the common alternative which is to run lighttpd | |
# with the mod_websocket addon which can be complex to setup. | |
# | |
# Dependencies are Python, Twisted and Autobahn. | |
# | |
# This example sets up a WebSockets server listening on localhost:9000. Messages received from | |
# WebSocket clients are forwarded to the MQTT broker using the endpointforward plugin provided |
rsync (Everyone seems to like -z, but it is much slower for me)
#!/bin/sh | |
# ========================================================= # | |
# MyEzBkp | |
# Easy and simple backup of your entire MySQL Server. | |
# | |
# Ver: 1.0 | |
# By: Kriansa | |
# | |
# This script requires root privileges to run! | |
# Tested only in RHEL based distros (Fedora & CentOS) |