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
#!/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" |
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
#!/usr/bin/env python | |
import os | |
import shlex | |
import struct | |
import platform | |
import subprocess | |
def get_terminal_size(): | |
""" getTerminalSize() |