Skip to content

Instantly share code, notes, and snippets.

View egll-tech's full-sized avatar

Eduardo Guzman Lau Len egll-tech

View GitHub Profile
@egll-tech
egll-tech / raspberry-pi-proxy-arp
Last active December 14, 2023 14:06
Make your Raspberry Pi share your WiFi connection through the ethernet port. Made from Jiab77 tutorial (https://gist.github.com/Jiab77/76000284f8200da5019a232854421564)
#!/bin/bash
# Check sudo rights
if [[ "$EUID" = 0 ]]; then
echo "Already root"
else
sudo -k # make sure to ask for password on next sudo
if sudo false; then
echo "Wrong password"
exit 1
@egll-tech
egll-tech / raspberry-pi-restore.sh
Last active August 12, 2021 23:04
Interactive script to select compressed image and disk to restore it
#!/bin/bash
# Check sudo rights
if [[ "$EUID" = 0 ]]; then
echo "Already root"
else
sudo -k # make sure to ask for password on next sudo
if sudo false; then
echo "Wrong password"
exit 1
@egll-tech
egll-tech / raspberry-pi-backup.sh
Last active August 12, 2021 23:04
Interactive script to backup disks in the current location. Developed for Raspberry Pi images, but it can be used with any type of disk
#!/bin/bash
# Check sudo rights
if [[ "$EUID" = 0 ]]; then
echo "Already root"
else
sudo -k # make sure to ask for password on next sudo
if sudo false; then
echo "Wrong password"
exit 1