This file contains hidden or 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
王 | |
江 | |
周 | |
胡 | |
刘 | |
李 | |
吴 | |
毛 | |
温 | |
习 |
This file contains hidden or 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
diff --git indicator-applet/src/applet-main.c indicator-applet/src/applet-main.c | |
--- indicator-applet/src/applet-main.c | |
+++ indicator-applet/src/applet-main.c | |
@@ -362,6 +362,21 @@ accessible_desc_update (IndicatorObject | |
return; | |
} | |
+static gboolean | |
+do_menu_reposition(gpointer menu) | |
+{ |
This file contains hidden or 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
# /etc/nginx/sites-available/blog.shellexy.info | |
server { | |
resolver 8.8.8.8; | |
listen 80; | |
server_name blog.shellexy.info; | |
#access_log off; | |
access_log /var/log/nginx/blog.shellexy.info.access.log; | |
location / { | |
#避免远方启用压缩导致无法替换纯文本 | |
proxy_set_header Accept-Encoding ""; |
This file contains hidden or 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 -x | |
SRC=$PWD/data/ | |
DEST=$PWD/web.hotot.org/ | |
echo "\033[1;31;40m[i]Sync ...\033[0m" | |
# ignore .*.swp, .hgignore, etc | |
rsync -av --exclude '.*.*' --exclude '*.coffee' --exclude 'test*' $SRC $DEST | |
# replace conf.vars.platform, key and secret | |
echo "\033[1;31;40m[i] Replace platform, key and secret ...\033[0m" |
This file contains hidden or 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
Streams callback Unexpected token r j=0 ["r.com\/download\/android\" rel=\"nofollow\"\u003ETwitter for Android\u003C\/a\u003E","contributors":null,"in_reply_to_screen_name":null,"entities":", "{"urls":[],"user_mentions":[{"indices":[3,14],"screen_name":"blacktulip","name":"blacktulip","id":11664822,"id_str":"11664822"},{"indices":[16,24],"screen_name":"cosbeta","name":"cosbeta","id":14697308,"id_str":"14697308"}],"hashtags":[]},"retweeted_status":{"text":"@cosbeta \u6c5f\u4e1c\uff0c\u95ee\u4f60\u4e2a\u4e25\u8083\u7684\u95ee\u9898\uff0c\u5f53\u5e74\u9879\u7fbd\u4e3a\u5565\u4e0d\u80af\u53bb\u4f60\u90a3\u513f\u554a\uff1f","in_reply_to_status_id_str":"191793101721976832","coordinates":null,"created_at":"Mon Apr 16 07:41:16 +0000 2012","in_reply_to_user_id_str":"14697308","favorited":false,"source":"\u003Ca href=\"http:\/\/itunes.apple.com\/us\/app\/twitter\/id409789998?mt=12\" rel=\"nofollow\"\u003ETwitter for Mac\u003C\/a\u003E","contributors":null,"in_reply_to_screen_name":"cosbeta","entities":{"urls":[],"user_ |
This file contains hidden or 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
diff --git a/dabr/common/twitter.php b/dabr/common/twitter.php | |
--- a/dabr/common/twitter.php | |
+++ b/dabr/common/twitter.php | |
@@ -154,7 +154,7 @@ function long_url($shortURL) | |
function friendship_exists($user_a) { | |
- $request = API_URL.'friendships/show.json?target_screen_name=' . $user_a; | |
+ $request = API_URL.'friendships/show.json?include_entities=true&target_screen_name=' . $user_a; | |
$following = twitter_process($request); |
This file contains hidden or 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
diff --git a/dabr/common/twitter.php b/dabr/common/twitter.php | |
--- a/dabr/common/twitter.php | |
+++ b/dabr/common/twitter.php | |
@@ -376,6 +376,10 @@ function twitter_process($url, $post_dat | |
curl_setopt ($ch, CURLOPT_POST, true); | |
curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_data); | |
} | |
+ if($post_data == false) | |
+ { | |
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-PHX: true')); |
This file contains hidden or 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
"""CGI-savvy HTTP Server. | |
This module builds on SimpleHTTPServer by implementing GET and POST | |
requests to cgi-bin scripts. | |
If the os.fork() function is not present (e.g. on Windows), | |
os.popen2() is used as a fallback, with slightly altered semantics; if | |
that function is not present either (e.g. on Macintosh), only Python | |
scripts are supported, and they are executed by the current process. |
This file contains hidden or 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/python | |
# -*- coding: UTF-8 -*- | |
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: | |
from difflib import SequenceMatcher | |
import re | |
from StringIO import StringIO | |
import cgi | |
import base64 |