Skip to content

Instantly share code, notes, and snippets.

View sdqali's full-sized avatar

Sadique Ali Koothumadan sdqali

View GitHub Profile
sdqali@bihzad ~/src/work/selenium-read-only >rake selenium-java
/Users/sdqali/src/work/selenium-read-only/rake-tasks/checks.rb:45: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Compiling: //java/client/src/com/thoughtworks/selenium:api as build/java/client/src/com/thoughtworks/selenium/api.jar
go aborted!
cannot load such file -- third_party/java/eclipse_compiler/ecj-3.5.2.jar
Tasks: TOP => selenium-java => //java/client/src/org/openqa/selenium:client-combined:project => build/java/client/src/org/openqa/selenium/client-combined-nodeps.jar => //java/client/src/com/thoughtworks/selenium:selenium => build/java/client/src/com/thoughtworks/selenium/selenium.jar => //java/client/src/com/thoughtworks/selenium:api => build/java/client/src/com/thoughtworks/selenium/api.jar
(See full trace by running task with --trace)
sdqali@bihzad ~/src/work/selenium-read-only >ls third_party/java/eclipse_compiler
ecj-3.5.2.jar
@sdqali
sdqali / javaclientsrcorgopenqaseleniumieInternetExplorerDriverServer.java
Created April 27, 2012 09:54
java/client/src/org/openqa/selenium/ie/InternetExplorerDriverServer.java
public class InternetExplorerDriverServer {
// Constantly reloading the DLL causes JVM crashes. Prefer a static field this one time.
private static IEServer lib = initializeLib();
eval "a = 1 if false"
eval "puts a"
<html>
<head>
<script type="text/javascript">
function doSomething() {
alert("Foobar");
// do something more useful here
};
</script>
</head>
#/usr/bin/env bash
JENKINS_HOME=/var/lib/jenkins
cd $JENKINS_HOME
git add *.xml jobs/*/config.xml users/*/config.xml userContent/*
CHANGES_TO_BE_COMMITTED=$(git status | grep "^# Changes to be committed:" | wc -l)
if [ $CHANGES_TO_BE_COMMITTED -eq 0 ]; then
echo "Nothing to commit"
@sdqali
sdqali / .gitignore
Created February 3, 2012 21:39 — forked from sit/.gitignore
A basic .gitignore file for Hudson configurations
# The following ignores...
# Miscellaneous Hudson litter
*.log
*.tmp
*.old
*.bak
*.jar
*.json
# Linux user files
var request = (HttpWebRequest) HttpWebRequest.Create("https://example.com/foo");
request.ServicePoint.Expect100Continue = false;
request.Credentials = new NetworkCredential("user", "password");
request.Method = "PUT";
request.ContentType = "application/x-www-form-urlencoded";
byte[] objByteArray = Encoding.UTF8.GetBytes("foo=bar");
request.ContentLength = objByteArray.Length;
var dataStream = request.GetRequestStream();
dataStream.Write(objByteArray, 0, objByteArray.Length);
dataStream.Close();
<system.net>
<settings>
<servicePointManager expect100Continue="false"/>
</settings>
</system.net>
package org.bar.foo;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
first = [1, 2, 3]
second = first.map do |element|
element + 1
end