Skip to content

Instantly share code, notes, and snippets.

View santiycr's full-sized avatar
💭
Always learning

Santiago Suarez Ordoñez santiycr

💭
Always learning
View GitHub Profile
sso ~/vim-croket ❯❯❯ make lexer [16:24:36]
ghc --make lexer.hs
[1 of 1] Compiling Main ( lexer.hs, lexer.o )
lexer.hs:34:27:
Couldn't match expected type `[[a0]]'
with actual type `[[Char]] -> [[[Char]]]'
In the return type of a call of `map'
Probable cause: `map' is applied to too few arguments
In the second argument of `($)', namely
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"

Keybase proof

I hereby claim:

  • I am santiycr on github.
  • I am santiycr (https://keybase.io/santiycr) on keybase.
  • I have a public key whose fingerprint is 902B EF30 362B 1BA8 9358 6759 12B7 2475 D9FB 8C9C

To claim this, I am signing this object:

./hostess/maitred/maitred/public/test_files/change_hosts.bat
./hostess/maitred/maitred/public/test_files/change_hosts.sh
@echo off
echo 162.222.74.242 idonotexist.com > %temp%\temphosts.txt
type C:\WINDOWS\system32\drivers\etc\hosts >> %temp%\temphosts.txt
copy /Y %temp%\temphosts.txt C:\WINDOWS\system32\drivers\etc\hosts
chef@chef:~/log$ java -jar selenium-server-6ee07f049e22ff1a2fdacf799c3275f4f07cb802.jar
16:27:05.422 INFO - Launching a standalone server
16:27:05.456 INFO - Java: Sun Microsystems Inc. 20.45-b01
16:27:05.456 INFO - OS: Linux 3.13.0-32-generic i386
16:27:05.465 INFO - v2.45.0, with Core v2.45.0. Built from revision 6ee07f0
16:27:05.514 INFO - Unable to register driver with className com.opera.core.systems.OperaDriver due to ClassNotFoundException
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gargoylesoftware/htmlunit/WebWindowListener : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
@santiycr
santiycr / setContext-user-extension.js
Created November 23, 2010 23:06
User extension to make Selenium's setContext more visual and useful in videos recorded from tests
window.contextTimeout = null;
function fade(ctx) {
var alpha = ctx.style.opacity;
var new_alpha = alpha - 0.1;
ctx.style.opacity = new_alpha;
if (new_alpha){
window.contextTimeout = setTimeout(function(){fade(ctx);}, 50);
} else {
this.browserbot.getUserWindow().document.body.removeChild(ctx);
@santiycr
santiycr / telling-stories-at-sauce-user-extensions.py
Created November 30, 2010 08:50
Sauce OnDemand test using the new setContext extension
from selenium import selenium
import unittest, time
class sauce(unittest.TestCase):
def setUp(self):
self.browser = selenium(
'ondemand.saucelabs.com',
80,
"""{\
"username": "<username>",\
build/python/bin/py.test build/lib/selenium/test/selenium/webdriver/firefox
Traceback (most recent call last):
File "/Users/sso/Dev/selenium_new/build/python/bin/py.test", line 8, in <module>
load_entry_point('pytest==2.0.0', 'console_scripts', 'py.test')()
File "/Users/sso/Dev/selenium_new/build/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 318, in load_entry_point
File "/Users/sso/Dev/selenium_new/build/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2221, in load_entry_point
File "/Users/sso/Dev/selenium_new/build/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1954, in load
File "/Users/sso/Dev/selenium_new/build/python/lib/python2.6/site-packages/pytest.py", line 7, in <module>
from _pytest.core import main, UsageError, _preloadplugins
File "/Users/sso/Dev/selenium_new/build/python/lib/python2.6/site-packages/_pytest/core.py", line 10, in <module>
./go test_firefox_py 16:01
(in /Users/sso/Dev/proyectos_OS/selenium/trunk)
No Gecko sdk detected. Install xulrunner-dev to compile 64-bit Firefox extension.No srcs specified for selenium-core
virtualenv --no-site-packages build/python
New python executable in build/python/bin/python
Installing setuptools............done.
build/python/bin/pip install simplejson py pytest
Downloading/unpacking py
Downloading py-1.4.0.zip (222Kb): 222Kb downloaded
Running setup.py egg_info for package py