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
# create server | |
cmd /c sc create SeleniumGrid binPath= "cmd /c ant -f \"C:\opt\selenium-grid-1.0.8\build.xml\" launch-hub " DisplayName= "Selenium Grid Server" | |
# create client | |
cmd /c sc create SeleniumGridClient binPath= "cmd /c ant -f \"C:\opt\selenium-grid-1.0.8\build.xml\" -Dport=4545 -Denvironment=*chrome launch-remote-control " DisplayName= "Selenium Grid Client" | |
# This doesn't work, want to create a tc7 server... sigh... | |
cmd /c sc create Tomcat binPath= "C:\opt\tomcat7\srvany.exe" start= "auto" DisplayName= "Apache Tomcat Server" | |
# Save this as tomcat-service.reg |
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 | |
# Licensed to the Apache Software Foundation (ASF). | |
### BEGIN INIT INFO | |
# Provides: selenium-grid | |
# Required-Start: $network $syslog $remote_fs | |
# Required-Stop: $network $syslog | |
# Default-Start: | |
# Default-Stop: | |
# Short-Description: Selenium Grid Server |
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/haproxy.cfg | |
global | |
user haproxy | |
group haproxy | |
defaults | |
mode http | |
option forwardfor | |
option redispatch | |
retries 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
# to be consistent with ubuntu screen settings | |
# F1 | 'help' in gnome-terminal | |
register n "^a^c^aA" # | Goes with the F2 definition | |
bindkey -k k2 process n # F2 | Create new window (and name it) | |
bindkey -k k3 title # F3 | Previous Window | |
bindkey -k k4 kill # F4 | Next Window | |
register r "^a:source $HOME/.screen-profiles/profile" # | Goes with F5 definition | |
bindkey -k k5 process r # F5 | Reload profile | |
bindkey -k k6 detach # F6 | Detach from this session | |
bindkey -k k7 copy # F7 | Enter copy/scrollback mode |
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
import time | |
from castro import Castro | |
print "Start.." | |
c = Castro(host = 'localhost', | |
display = 1, | |
filename = "my-cool-screencast.swf", | |
passwd = "/home/ubuntu/.vnc/passwd") | |
c.start(); |
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' encoding='utf-8'?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You 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 |
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 | |
# _____ __ _ | |
# / ___/___ / /__ ____ (_)_ ______ ___ | |
# \__ \/ _ \/ / _ \/ __ \/ / / / / __ `__ \ | |
# ___/ / __/ / __/ / / / / /_/ / / / / / / | |
# /____/\___/_/\___/_/ /_/_/\__,_/_/ /_/ /_/ | |
# | |
# Provides a shell script which can be used to create | |
# a new selenium rc client. |
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
================ run.vbs ================ | |
REM 0 = hide window, 1 = show window (useful for debugging) | |
Set WshShell = CreateObject("WScript.Shell") | |
WshShell.Run """" & "run.bat" & """" & sargs, 0, False | |
Set WshShell = Nothing | |
================ run.bat ================ | |
REM Batch script to start VirtualBox instance of ReviewBoard in headless mode |
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
EXEC dbms_stats.gather_schema_stats('<yourschema>', cascade=>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
ps aux --sort pmem | grep "java\|USER" |