Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
###################################################################################################################################
# This script installs Motherbrain and Chef-zero on the sane machine and creates ~/.mb/config.json and ~/chef-repo/.chef/knife.rb
# configuration files
#
#
###################################################################################################################################
if rpm -q chefdk; then
echo "Chef DK already installed"
#!/bin/bash
local="/root"
echo
echo "Specify your deployment topology."
echo
echo "For more information visit https://eucalyptus.atlassian.net/wiki/display/QA/Eucalyptus+Configuration"
echo
printf "Select one of the following options \n 1) Proof of concept deployment (POC): \n Machine 1: CLC, SC, CC, Walrus, UI \n Machine 2: NC \n\n 2) Standard multicluster: \n Machine 1: CLC, SC, CC, Walrus \n Machine 2: SC1, CC1 \n Machine 3: NC \n Machine 4: NC1 \n "
@aliceh
aliceh / gist:b21f60a0d7370d67f615
Created January 28, 2015 17:51
Runs all selenium IDE tests
#!/bin/bash
url="https://10.111.5.145"
java -jar selenium-server-standalone-2.43.1.jar -Dorg.openqa.jetty.SocketListener.bufferSize=20480 -userExtensions "eucaconsole/tests/selenium//Selenium_RC_Plugins/user-extensions.js" -htmlSuite *firefox "$url" "eucaconsole/tests/selenium/KEYPAIR_OPERATIONS.html" "key-pair-operations.html" -trustAllSSLCertificates
java -jar selenium-server-standalone-2.43.1.jar -Dorg.openqa.jetty.SocketListener.bufferSize=20480 -userExtensions "eucaconsole/tests/selenium//Selenium_RC_Plugins/user-extensions.js" -htmlSuite *firefox "$url" "eucaconsole/tests/selenium/INSTANCE_OPERATIONS.html" "instance-operations.html" -trustAllSSLCertificates
java -jar selenium-server-standalone-2.43.1.jar -Dorg.openqa.jetty.SocketListener.bufferSize=20480 -userExtensions "eucaconsole/tests/selenium//Selenium_RC_Plugins/user-extensions.js" -htmlSuite *firefox "$url" "eucaconsole/tests/selenium/VOLUME_OPERATIONS.html" "volume-operations.html" -trustAllSSLCertificates
#!/bin/bash
#Fill in the arguments
#run from the guiops/tests directory
#
remote_webdriver_url=""
console_url=""
account=""
user_name=""
password=""
#Sample input:
# A=[[0,1,0,0,1],[0,1,0,1,1],[1,0,0,1,1],[0,1,1,0,0],[1,1,0,0,0]]
# Find the number of "islands" in the matrix
#I will find the "chains" = strings of ones, then I will label them all with a different label.
# I will next iterate over the labeled chains, and if two of them should be in one island, I will re-asign the smaller of the two labels to the both of them.
#I will count the number of different labels in the end to get the number of islands
#To get the number of islands run reassign_labels_and_find_number_of_islands(A)
import requests
import json
import re
api_key = "d7457467f2492af08b5aa255be8b2e2e"
base_url = "http://api.openweathermap.org/data/2.5/weather?"
cities="61.210841,-149.888735\nSan Francisco\n33132,us"