Skip to content

Instantly share code, notes, and snippets.

View stopsopa's full-sized avatar

Szymon Dzialowski stopsopa

View GitHub Profile
@stopsopa
stopsopa / vpn.md
Created November 5, 2018 11:58
vpn server

Connecting from MAC

Open System Preferences.
Click the Network icon.
Click the + button.
From the Interface drop-down menu, select VPN.
From the VPN Type drop-down menu, select Cisco IPSec.
Type in a service name, then click the Create button. (Whatever you like)
Type vpn.colorado.edu in the Server Address. ...
Enter your CU Login Name and IdentiKey password.
@stopsopa
stopsopa / *todo.log
Last active October 26, 2020 14:42
☢ es6
- basic auth
@stopsopa
stopsopa / netcat.sh
Last active November 13, 2022 00:23
Data forwarding through port and processing in the middle
# so now we gonna forward data to different port but also process it in between
# WARNING: if you working on mac replace default netcat with one from homebrew
brew install netcat
# for purpose of this tutorial lets assume that our machine ip address is: 192.168.180.74
# first we need script to work as a middleware
# pipe.sh (remember about newline char \n instead of \r on \r\n - this is bash)
BUFFER=""
LASTNL="false"
while read line; do
if [ "$line" == "" ]; then