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
IDS=`ps ax -o pid:1,args|grep demo.py|grep -v SCREEN|cut -d " " -f 1` | |
if [ "$IDS" == "" ];then | |
echo "not running" | |
exit 2 | |
else | |
kill $IDS | |
exit 1 | |
fi |
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 | |
git archive --format zip -o wxpublic-$(git log --pretty=format:"%h" -1).zip HEAD |
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 | |
if [[ -z $1 ]] & [[ -z $2 ]];then | |
echo "Usage: ./update.sh [release|debug] [vercode]" | |
exit 1 | |
fi | |
curver=`tail -1 APKVERSION` | |
curverDebug=`tail -1 APKVERSION_DEBUG` | |
mode=$1 |
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 java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.ClientProtocolException; |
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
// Copyright 2012, Google Inc. All Rights Reserved. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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 tornado.web | |
class NoCacheStaticFileHandler(tornado.web.StaticFileHandler): | |
def set_extra_headers(self, path): | |
self.set_header("Cache-control", "no-cache") | |
class Application(tornado.web.Application): | |
def __init__(self): | |
handlers = [ | |
# ... |
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 re | |
import urllib | |
from tornado.web import RequestHandler | |
#CAS setting | |
CAS_SETTINGS = { | |
#replace this with your cas server url | |
'cas_server' : 'http://cas_server', | |
#replace this with your website url | |
'service_url' : 'http://service_url/deal_with_st', |
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/env python | |
#coding: utf-8 | |
# | |
# Git hook for UEDPRJ | |
# tang_h@Ctrip.com | |
import sys | |
import urllib, urllib2 | |
import re |
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
# vim: ts=4: noexpandtab | |
import re | |
import sys | |
import select | |
import socket | |
import requests | |
import urlparse | |
import pybonjour | |
import urllib | |
import string |
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
#****************************************************************************** | |
# Copyright (c) 2011 Trevor Harwell | |
# All rights reserved. This program and the accompanying materials | |
# are made available under the terms of the Eclipse Public License v1.0 | |
# which accompanies this distribution, and is available at | |
# http://www.eclipse.org/legal/epl-v10.html | |
# | |
# Contributors: | |
# Trevor Harwell - initial implementations | |
#****************************************************************************** |
OlderNewer