Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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 | |
function backup(){ | |
cd /var/tmp/ | |
for databaseName in $* | |
do | |
sqlFileName=""$databaseName".sql" | |
echo "exporting "$databaseName | |
# 导出数据库 |
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 | |
function restore(){ | |
cd /var/tmp/ | |
tar zxvf sql.tar.gz | |
for databaseName in $* | |
do | |
sqlFileName=""$databaseName".sql" | |
echo "importing "$databaseName |
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 | |
function backup(){ | |
cd /var/www/ | |
for siteName in $* | |
do | |
echo "打包 "$siteName | |
tar zcvf $siteName".tar.gz" $siteName"/" | |
# 远程拷贝 | |
echo "正在发送到备份服务器" |
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 | |
function restore(){ | |
cd /var/www/ | |
for siteName in $* | |
do | |
echo "解压 "$siteName | |
tar zxvf $siteName".tar.gz" |
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/bash | |
GFWLIST=https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt | |
PROXY=127.0.0.1:7070 | |
cd `dirname "${BASH_SOURCE[0]}"` | |
echo "Downloading gfwlist from $GFWLIST" | |
curl "$GFWLIST" --socks5-hostname "$PROXY" > /tmp/gfwlist.txt | |
/usr/local/bin/gfwlist2pac \ | |
--input /tmp/gfwlist.txt \ |
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
<script > | |
var userAgent = navigator.userAgent; | |
var isOpera = userAgent.indexOf("Opera") > -1; | |
var isMaxthon = userAgent.indexOf("Maxthon") > -1 ; | |
var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera ; | |
var isFF = userAgent.indexOf("Firefox") > -1 ; | |
var isSafari = userAgent.indexOf("Safari") > -1 && userAgent.indexOf("Chrome") < 1 ; | |
var isChrome = userAgent.indexOf("Chrome") > -1 ; | |
var isIE5 = isIE55 = isIE6 = isIE7 = isIE8 = false; | |
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
.S_page { | |
background: none; | |
} | |
.S_page .WB_miniblog { | |
background: none; | |
} | |
.S_page .WB_main { | |
overflow: hidden; |
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
div.header { | |
display: none; | |
} | |
div.footer { | |
display: none; | |
} | |
.cotentRight { | |
display: none; |
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
# 在系统快捷键中 将打开关闭DND的快捷键设置为 cmd+shift+option+control+d | |
repeat while true | |
ignoring application responses | |
tell application "System Events" to keystroke "D" using {command down, shift down, option down, control down} | |
end ignoring | |
say "DND opened" | |
delay 1500 | |
ignoring application responses | |
tell application "System Events" to keystroke "D" using {command down, shift down, option down, control down} |