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
(global-set-key [(S-f11)] 'browse-url-nova-bug) | |
(defun browse-url-nova-bug (start end) | |
(interactive "r") | |
(let ((n (current-word))) | |
(browse-url (concat "https://bugs.launchpad.net/nova/+bug/" | |
n))) | |
) |
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
(global-set-key [(f8)] 'nose_set_trace) | |
(global-set-key [(C-f8)] 'nose_unset_trace) | |
(fset 'nose_set_trace | |
"import nose; nose.tools.set_trace();#:\C-x\C-s; \C-a\C-xr .") | |
(fset 'nose_unset_trace | |
"\C-xrj.\C-k\C-k") |
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
commit 9ec031bdee4633a3386cddfca791330680834b69 | |
Author: Jian Wen <[email protected]> | |
Date: Fri Sep 14 17:42:21 2012 +0800 | |
libvirt: Add copying image via rsync without ssh support | |
Change-Id: I4f4ec1b8466a4e8a8337f56f60473efc3b6bac00 | |
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py | |
index 41bbd2d..281d34b 100644 |
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 [[ $UID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
service conntrackd stop | |
# stop conntrackd.The daemon maybe writes the information about destroyed connections to a logfile. | |
# /var/log/conntrackd-stats.log |
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 -e | |
if [[ $1 == "" ]] | |
then | |
file=`basename $0` | |
echo "Usage:" | |
echo " $file IP" | |
# TODO(wenjianhn): subname name and more as args | |
# echo: example | |
exit 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
vncviewer -nocursorshape -quality 0 -compresslevel 9 -encodings Tight -bgr233 localhost:5902 |
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
function setup_mirror() { | |
cd /etc/yum.repos.d/ | |
rm -f CentOS-Base.repo | |
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo | |
wget http://ftp.sjtu.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -ivh epel-release-6-8.noarch.rpm | |
rm -f epel-release-6-8.noarch.rpm | |
mv epel.repo epel.repo.bak |
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 $2 ]]; then | |
echo -e "Usage:\n $0 <patch> <commit>" | |
exit 1 | |
fi | |
PATCH=$1 | |
COMMIT=$2 |
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
./run_tests.sh nova.tests.network.test_manager.VlanNetworkTestCase.test_duplicate_vlan_raises || sed -n '/ File /{p;q;}' subunit.log | sed s/,//g | awk '{system("emacsclient " "+" $4 " " $2)}' |
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
while true; do virsh list | grep win7; if [[ $? -ne 0 ]]; then pm-suspend; fi; sleep 10; done |
OlderNewer