Skip to content

Instantly share code, notes, and snippets.

View sparkydogX's full-sized avatar
🎯
Focusing

sparkydogX

🎯
Focusing
View GitHub Profile
@sparkydogX
sparkydogX / powershell-proxy-set-clear.ps1
Created September 12, 2018 13:49 — forked from famousgarkin/powershell-proxy-set-clear.ps1
PowerShell Set-Proxy, Clear-proxy
# NOTE: registry keys for IE 8, may vary for other versions
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
function Clear-Proxy
{
Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 0
Set-ItemProperty -Path $regPath -Name ProxyServer -Value ''
Set-ItemProperty -Path $regPath -Name ProxyOverride -Value ''
[Environment]::SetEnvironmentVariable('http_proxy', $null, 'User')
@sparkydogX
sparkydogX / SS+provixy Ubuntu.md
Last active September 12, 2018 02:57 — forked from alexniver/golang, ubuntu go get in china.md
ubuntu下, 使用shadowsock和Privoxy在命令行 : )

shadowsock + Privoxy

使用shadowsock建立一个本地sock5代理, 使用privoxy把sock5代理转为http代理.

shadowsock

首先你有一个的shadowsock服务器, 确保好用.

@sparkydogX
sparkydogX / unzip.py
Created September 3, 2018 15:07
Unzip a file use python code. Design for gbk.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import zipfile
#print "Processing File " + sys.argv[1]
file=zipfile.ZipFile(sys.argv[1],"r");