Skip to content

Instantly share code, notes, and snippets.

View MasterPuffin's full-sized avatar
🚩

Johannes MasterPuffin

🚩
  • Germany
View GitHub Profile
@MasterPuffin
MasterPuffin / startup.sh
Last active May 23, 2023 15:17
FreeTAKServer Startup
#!/bin/sh
#Get IP
IP=$(curl https://ipinfo.io/ip -s)
#Check if IP is empty
if [ -z "$IP" ]
then
IP=127.0.0.1
fi
@MasterPuffin
MasterPuffin / add_header.cmd
Created May 15, 2023 13:31
Add CSV semicolon meta header
@echo off
if /i not exist "%~1" exit
(echo sep=;) > temp.txt & type "%~1" >> temp.txt & move /y temp.txt "%~1" >nul
exit