Skip to content

Instantly share code, notes, and snippets.

View sryze's full-sized avatar

Sergey Zolotarev sryze

View GitHub Profile
@sryze
sryze / proxy
Last active September 3, 2023 10:20
Quickly toggle HTTP(S) proxy on Mac OS X from command line
#!/bin/sh
SERVICE="Ethernet" # or "Wi-Fi"
PROXY_HOST="127.0.0.1"
PROXY_PORT="8888"
while [[ $# > 0 ]]
do
case "$1" in
on)
@sryze
sryze / project.csproj.user
Created March 7, 2014 13:30
Set an external program for a Class Library project in Visual Studio Express (copy this to project.csproj.user)
<PropertyGroup>
<StartAction>Program</StartAction>
<StartArguments></StartArguments>
<StartPage>
</StartPage>
<StartProgram>path\to\program.exe</StartProgram>
<StartURL>
</StartURL>
<StartWorkingDirectory>
</StartWorkingDirectory>