This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mechanize | |
import cookielib | |
import sys | |
from BeautifulSoup import BeautifulSoup | |
import html2text | |
import urllib | |
def getProjectNum(sou): | |
msg = str(sou.findAll('input', attrs={'type': 'radio'})[0]) | |
items = msg.strip().split(' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Browser = require("zombie"); | |
var myArgs = require('optimist').argv, | |
help = 'This would be a great place for real help information.'; | |
if ((myArgs.h)||(myArgs.help)) { | |
console.log(help); | |
process.exit(0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# bigpkg : find packages that require a lot of space on your system | |
# v0.4.0 (2011-07-29) | |
# | |
# Copyright (c) 2009-2011 by Allan McRae <allan@archlinux.org> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xe | |
INFO=$(xwininfo -frame) | |
API_KEY="YOUR_API_KEY_GOES_HERE" | |
WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' | grep -oEe '[0-9]+x[0-9]+') | |
WIN_XY=$(echo $INFO | grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' | grep -oEe '[0-9]+\+[0-9]+' | sed -e 's/\+/,/' ) | |
FPS="15" | |
INRES='1680x1010' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink] | |
"FontLinkControl"=dword:00004000 | |
"FontLinkDefaultChar"=dword:00003000 | |
/* 平滑化(anti-alias) */ | |
/* 如果覺得開了之後字體難看,把三個Y改成N */ | |
[HKEY_CURRENT_USER\Software\Wine\X11 Driver] | |
"ClientSideAntiAliasWithCore"="Y" | |
"ClientSideAntiAliasWithRender"="Y" | |
"ClientSideWithRender"="Y" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Copyright 1998-2008 VMware, Inc. All rights reserved. | |
# | |
# This script manages the services needed to run VMware software. | |
# | |
# VMWARE_INIT_INFO | |
ETCDIR=/etc/vmware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python2.7 | |
import cookielib | |
import sys | |
import urllib | |
from BeautifulSoup import BeautifulSoup | |
import mechanize | |
class A_11_loginBot(object): | |
def __init__(self,id,pw,action=""): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} | |
\XeTeXlinebreaklocale "zh" | |
\XeTeXlinebreakskip = 0pt plus 1pt | |
\usepackage{titlesec} | |
\titleformat{\section}{\LARGE\filcenter}{}{1em}{} | |
\titleformat{\subsection}{\Large\filcenter}{}{1em}{} | |
\usepackage[T1]{fontenc} | |
\usepackage{lmodern} | |
\usepackage{amssymb,amsmath} | |
\usepackage{ifxetex,ifluatex} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Copyright 1998-2008 VMware, Inc. All rights reserved. | |
# | |
# This script manages the services needed to run VMware software. | |
# | |
# VMWARE_INIT_INFO | |
ETCDIR=/etc/vmware |
OlderNewer