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
curl -d "action=login&username=USERNAME_HERE&password=PASSWORD_HERE&ac_id=3&type=1&wbaredirect=http://www.baidu.com/&mac=undefined&user_ip=&is_ldap=1&local_auth=1" "http://10.50.200.245/cgi-bin/srun_portal" |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- /etc/fonts/local.conf file for local customizations --> | |
<fontconfig> | |
<!-- overall settings: autohint(slight), hinting, antialias, sub-pixel(rgb) --> | |
<match target="font"> | |
<edit mode="assign" name="embeddedbitmap"> | |
<bool>true</bool> | |
</edit> | |
<edit mode="assign" name="autohint"> |
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
# Using FCITX to Input | |
export GTK_IM_MODULE=fcitx | |
export QT_IM_MODULE=fcitx | |
export XMODIFIERS="@im=fcitx" | |
# Start Emacs Daemon | |
LC_CTYPE=zh_CN.utf8 emacs --daemon | |
# Don't forget to install kimpanel for gnome shell |
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 | |
locates=`locate index.theme` | |
dirs=(${locates//\\n/ }) | |
for i in ${dirs[@]} | |
do | |
echo $i | |
gtk-update-icon-cache `dirname $i` | |
gtk-update-icon-cache-3.0 `dirname $i` | |
done |
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
var oHead = document.getElementsByTagName('HEAD').item(0); | |
var oScript= document.createElement("script"); | |
oScript.type = "text/javascript"; | |
oScript.src="https://code.jquery.com/jquery-2.1.4.min.js"; | |
oScript.onload = function() { | |
jQuery('input[value="5"], input[value="优秀"]').each(function() { | |
console.log(jQuery(this)); | |
jQuery(this).click(); | |
}); | |
$('#Button1').click(); |
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
cat /etc/hosts.d/* > /etc/hosts |
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
[user] | |
name = Zeno Zeng | |
email = [email protected] | |
[color] | |
#开启着色功能 | |
status = auto | |
diff = auto | |
branch = auto | |
interactive = auto |
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/sh | |
# 脚本出处 | |
# http://www.cc98.org/dispbbs.asp?boardID=212&ID=4011172 | |
## LAC name in config file | |
L2TPD_LAC=zjuvpn | |
L2TPD_CONTROL_FILE=/var/run/xl2tpd/l2tp-control | |
L2TPD_INIT_FILE=/etc/init.d/xl2tpd |
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
# encoding: utf-8 | |
require 'rubygems' | |
require 'rubydns' | |
require 'yaml' | |
require 'socket' | |
require 'awesome_print' | |
require 'logger' | |
if RExec.current_user != "root" | |
$stderr.puts "Sorry, this command needs to be run as root!" |
NewerOlder