#关于 PAC 的书签夹
###比较全的 PAC 介绍
- http://www.proxypacfiles.com/proxypac/ 入门必看(英文)
- http://findproxyforurl.com/ 跟上面的类似(英文)
- http://wordpress0.com/2011/06/write-pac-file/ (汉语)内容比较全(尤其是附录)
- 代理自动配置 维基百科
- https://calomel.org/proxy_auto_config.html Calomel写的的实用性介绍
| extern void SACLockScreenImmediate ( ); | |
| SACLockScreenImmediate(); |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| from __future__ import unicode_literals, absolute_import, print_function | |
| k1 = 'v1' | |
| k2 = 'v2' | |
| module_items = locals() | |
| module_keys = ['k1', 'k2'] | |
| # print({k: locals()[k] for k in module_keys}) |
| # rootユーザへ切り替え | |
| sudo su - | |
| # wgetインストール | |
| yum -y install wget | |
| # repository取得 | |
| wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/e/ | |
| # repository設定 | |
| rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm | |
| # redisインストール |
| # This hosts file is brought to you by Dan Pollock and can be found at | |
| # http://someonewhocares.org/hosts/ | |
| # You are free to copy and distribute this file for non-commercial uses, | |
| # as long the original URL and attribution is included. | |
| #<localhost> | |
| 127.0.0.1 localhost | |
| 127.0.0.1 localhost.localdomain | |
| 255.255.255.255 broadcasthost | |
| ::1 localhost |
#关于 PAC 的书签夹
###比较全的 PAC 介绍
| #!/usr/bin/env python2 | |
| #-*- coding=utf-8 -*- | |
| # © 2013 Mark Harviston, BSD License | |
| from __future__ import absolute_import, unicode_literals, print_function | |
| """ | |
| Qt data models that bind to SQLAlchemy queries | |
| """ | |
| from PyQt4 import QtGui | |
| from PyQt4.QtCore import QAbstractTableModel, QVariant, Qt | |
| import logging # noqa |
| #!/bin/sh | |
| set -o xtrace | |
| # Install basics for vi and git | |
| yum -y --enablerepo=base install gcc make vim-enhanced zlib-devel openssl-devel | |
| # Simple but usable vimrc | |
| cat > /root/.vimrc <<EOF | |
| syntax on | |
| se ts=4 |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
| #!/usr/bin/env python | |
| """Export CSV from an RRD XML dump. | |
| Usage: rrdxml.py file.xml rra | |
| Where rra is the 0-based index for the RRA you want to dump. | |
| """ | |
| from csv import writer | |
| from itertools import chain, izip |