Skip to content

Instantly share code, notes, and snippets.

View wen-long's full-sized avatar
🥀
finding a target

wen-long

🥀
finding a target
View GitHub Profile

配置 shadowsocks

架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 config.json ,假设本地监听端口为 1080 。启动 shadowsocks

/etc/init.d/shadowsocks start

配置 privoxy

安装 privoxy openwrt 版。

#WPAD设置 ##WPAD可以通过DHCP,这是建议的解决方案。

  1. a wpad file. This is the same javascript file as the pac file, renamed (or symlinked) to wpad.dat
  2. a web server to host the wpad.dat script. The wpad script needs to be located in the document root of the http server
  3. the web server must be configured for .dat files with a MIME type of "application/x-ns-proxy-autoconfig"
  4. a dhcp server, configured with option 252 = "http://your.server.here/wpad.dat"

  1. 一个 wpad 文件。跟 pac 文件是一样的,只是改名为 wpad.dat
fontfile /boot/fonts.gz
splashimage /boot/kawayi.gz
title YUMI(可用)
rootnoverify (hd0,0)
chainloader +1 //同chainloader (hd0,0)+1
title win8 (hd1,0) (可用)
rootnoverify (hd1,0)
chainloader +1 //同chainloader (hd1,0)+1
@wen-long
wen-long / menu.lst
Created July 19, 2013 09:29 — forked from poppen/menu.lst
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
color white/light-blue yellow/cyan light-gray/magenta white/light-red
title Acronis True Image Home
find --set-root /atih.iso
map /atih.iso (0xff) || map --mem /atih.iso (0xff)
@wen-long
wen-long / menu.lst
Created July 19, 2013 09:32 — forked from vayn/menu.lst
title [01] Archlinux 2011.08.11 x86_64
root (hd0,0)
find --set-root /arch.iso
map --heads=0 --sectors-per-track=0 /arch.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /arch.iso (0xff)
map --hook
chainloader (0xff)
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,1)
title Archlinux iso
map /archlinux-2013.07.01-dual.iso (0xff)
map --hook
chainloader (0xff)
/dev/disk/by-label device did not show up
title Archlinux 2013.07.01 x86_64
root (hd0,0)
fontfile /boot/fonts.gz
splashimage /boot/X.XPM.GZ
color white/light-blue yellow/cyan light-gray/magenta white/light-red
title 多系统安装 YUMI(可用)(U盘第一分区 PBR)
rootnoverify (hd0,0)
chainloader +1 //同chainloader (hd0,0)+1
title win8 (hd1,0)
rootnoverify (hd1,0)
@wen-long
wen-long / hosts.md
Last active January 19, 2016 15:26

hosts

[Hosts collection](http://notes.pinboard.in/u:oumu/0588ed20207eb935bde5)
[Blocking Unwanted Connections with a Hosts File](http://winhelp2002.mvps.org/hosts.htm)
[imoutohost - Host文件。 - Google Project Hosting](https://code.google.com/p/imoutohost/)
[ultrahosts - UltraHosts - Google Project Hosting](https://code.google.com/p/ultrahosts/)
[smarthosts - 我是一个云Hosts文件,用来干啥你懂的 - Google Project Hosting](https://code.google.com/p/smarthosts/)
[huhamhire-hosts](https://hosts.huhamhire.com/)
[veryhost - This is a Hosts file, edit and share projects - Google Project Hosting](https://code.google.com/p/veryhost/) [ipv6-hosts - IPv6 hosts - Google Project Hosting](https://code.google.com/p/ipv6-hosts/#收录原则)