Skip to content

Instantly share code, notes, and snippets.

@danricho
danricho / keepalive_ngrok.py
Created January 30, 2022 23:18 — forked from just4give/keepalive_ngrok.py
ngrok forever on raspberry pi
import json
import subprocess
import time
from pathlib import Path
import atexit
import boto3
import requests
import datetime
#path where you have extracted ngrok execution file. Follow readme file to install on Pi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danricho
danricho / mount_samba_shares.py
Created July 21, 2022 06:44
Python script to mount SAMBA shares available to SAMBA user within linux - tested on Raspberry Pi.
# USE PYTHON3
from ast import Pass
import os, json, getpass
if os.geteuid() != 0:
print("Must be run with sudo to manipulate mounts.")
exit()
def get_cifs_mounts():