Instantly share code, notes, and snippets.

View GitLab.cls
Private pGitLabClient As WebClient
Private pToken As String
Private Property Get Token() As String
If pToken = "" Then
If Credentials.Loaded Then
pToken = Credentials.Values("GitLab")("token")
Else
pToken = InputBox("GitLab Token?")
End If
View proxy.sh
#!/bin/bash
interface="Wi-Fi"
autoProxyURL="http://proxyserver:8080/accelerated_pac_base.pac"
proxyURL="http://proxyuser:proxypass@proxyserver:8080"
SSID=$(networksetup -getairportnetwork en0 | awk -F": " '{print $2}')
echo "WIFI SSID: $SSID"
if [ "$SSID" = "PROXY_NEEDED_WIFI" ]
then