Skip to content

Instantly share code, notes, and snippets.

View thiswillbeyourgithub's full-sized avatar

Olicorne thiswillbeyourgithub

View GitHub Profile
@thiswillbeyourgithub
thiswillbeyourgithub / edge_vpn_file_scripts.sh
Last active January 7, 2025 15:11
Zsh scripts for edgevpn to send and receive files
#!/usr/bin/zsh
#
# USAGE:
# 0. Create a new folder
# 1. Install edgevpn via 'curl -s https://raw.githubusercontent.com/mudler/edgevpn/master/install.sh | sudo sh'
# 2. Put this script in the same folder, with name "edge_vpn_file_scripts.sh"
# 3. Run "chmod +x edge_vpn_file_scripts.sh"
# 4. Put your edgevpn token inside the environment variable called EDGEVPNTOKEN
# 5. add those alias to your shell:
# alias edge_send="path_to_here/edge_vpn_file_scripts.sh send"
@thiswillbeyourgithub
thiswillbeyourgithub / terminalsize.py
Created July 4, 2021 10:02 — forked from jtriley/terminalsize.py
Get current terminal size on Linux, Mac, and Windows
#!/usr/bin/env python
import os
import shlex
import struct
import platform
import subprocess
def get_terminal_size():
""" getTerminalSize()