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
for user_name in USERS_LIST: | |
user_name_box= eval(user_name + "_box") | |
user_name_box=gtk.CheckButton(user_name) | |
dlg.vbox.pack_start(user_name_box,True,True,2) | |
dlg.vbox.show_all () | |
ret = dlg.run () | |
for user_name in USERS_LIST: | |
user_name_box= eval(user_name + "_box") |
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/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (C) 2007 朱昱任 (Yuren Ju) <yurenju -AT- gmail.com> | |
# Copyright (C) 2007 洪任諭(PCMan) <pcman.tw -AT- gmail.com> | |
# Copyright (C) 2008 林哲瑋 Zhe-Wei Lin (bill3321,雨蒼) <bill3321 -AT- gmail.com> | |
# Last Midified : 19 Dec 2008 | |
# Install and config input method for one or more users. | |
# Released under GNU General Public License | |
import os |
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/env python | |
import commands | |
import re | |
user_homedir=commands.getoutput('cat /etc/passwd | grep %s | cut -d ":" -f 6' % (user_name)).split('\n') | |
ims_cmd = "export INPUT_METHOD=\"%s\"" % (selected_cin) | |
user_profile = open(str(user_homedir[0])+'/.profile', 'rw') | |
profile_contain = user_profile.readlines() | |
profile_len = len(profile_contain) | |
search_str = re.compile('^export INPUT_METHOD=') |
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
" buffer sel by pattern {{{ | |
" ==================================== | |
function! BufSel(pattern) | |
let buf_count = bufnr("$") | |
let cur_bufnr = 1 | |
let nummatches = 0 | |
let firstmatchingbufnr = 0 | |
while cur_bufnr <= buf_count | |
if(bufexists(cur_bufnr)) | |
let currbufname = bufname(cur_bufnr) |
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
lazyscripts@lazyscripts-vm:~/src/git/lazyscript/devtools/build$ ./build.sh | |
++ pwd | |
+ CURRENT_PWD=/home/lazyscripts/src/git/lazyscript/devtools/build | |
+ cd /home/lazyscripts/src/git/lazyscript/devtools/build | |
+ read -p 'Please type version: ' VERSION | |
Please type version: 0.1rc1 | |
+ filename=lazyscripts-0.1rc1.tar.gz | |
+ cd ../.. | |
+ git archive --format=tar master | |
+ gzip -9 |
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 | |
# This script is writen by billy3321 | |
# this script is used to connect to wireless network. | |
#set -o xtrace | |
IF=$(echo $1 | tr 'A-Z' 'a-z') | |
AUTH=$(echo $2 | tr 'A-Z' 'a-z') | |
ESSID=$3 | |
KEY=$4 |
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
javascript:healthCounterResetCallback=function(hours,mins,secs){if(hours == 0 && mins == 0 && secs == 0){i=$j('#DailyConsumtionTrigger');$j(".resetFoodContainer").hide();$j("#foodText").show();i.removeClass('reset');if(typeof(battleFX) != 'undefined'){var h=$j('#heal_btn');h.removeClass('health_kit_btn');h.addClass('food_btn');}var val=parseFloat($j('#current_health').html());if(val<100){i.removeClass('disabled');}if(reset_has_food == 0){i.removeClass('disabled');i.addClass('buy');$j("#foodText").html(textForBuy);}var t=food_remaining + 100;if(t >= reset_health_to_recover){food_remaining=reset_health_to_recover;$j("#foodResetHoursContainer").css('display','none');} else{food_remaining=t;var a=new ERPK.countDown({display: $j("#foodResetHours"),startTime: "01:00:00",stopTime: "00:00:00",onExpire: healthCounterResetCallback});$j("#foodResetHoursContainer").css('display','block');}$j('.tooltip_health_limit').html(food_remaining + " / " + reset_health_to_recover);if(val<100){eatFood();}}} |
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
//--------------------------------------------------------------------------- | |
// v1.0.13 | |
// 参考Bronie FPeD http://userscripts.org/scripts/review/70450 | |
//--------------------------------------------------------------------------- | |
var $j = jQuery.noConflict(); | |
var currURL = location.href; | |
var rank = { | |
Recruit: 1, | |
Private: 2, | |
'Private *': 3, |
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
//Author: Billy Zhe-Wei Lin | |
//Use for get erep battle stats | |
//Licence: BSD | |
var battleId = '30140'; | |
$j.getJSON("/en/military/battle-stats/"+ battleId +"/2", function(data){ | |
console.log(data); | |
var allStats = data.stats.current; | |
var div1 = {}; | |
var div2 = {}; |
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 | |
export PIDFILE="/var/run/obfsproxy.pid" | |
export PASS="P@ssw0rd" | |
export DEST="127.0.0.1:22" | |
export SERVER="xx.xx.xx.xx:2222" | |
export DAEMON="obfsproxy --log-min-severity=info obfs2 --shared-secret=${PASS} --dest=${DEST} server ${SERVER}" | |
### BEGIN INIT INFO |
OlderNewer