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
#!/bin/bash
#
# Restart SauceConnect via Rolling Restart
# The port it uses for listening for Selenium Relay
# is chosen automatically an ranges between 4441 and 4449
#
# Tunnel identifiers are optional, but removing them
# from this example would include some tweaking
#
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)
@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
./hostess/maitred/maitred/public/test_files/change_hosts.bat
./hostess/maitred/maitred/public/test_files/change_hosts.sh

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:

#!/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)"
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
import pygame, sys
from pygame.locals import *
pygame.init()
FPS = 30
fpsClock = pygame.time.Clock()
DISPLAYSURF = pygame.display.set_mode((400, 300), 0, 32)
pygame.display.set_caption('Animation');
from selenium import selenium
import unittest
import json
import os
config = {"username": os.environ['SAUCE_USER'],
"access-key": os.environ['SAUCE_KEY'],
"browser": "iexplore",
"name": "Testing sauce advisor",
}
sso SauceLabs/wd git:master ❯❯❯ npm view wd time ✔ [18:42:56]
{ '0.0.1': '2011-04-27T19:53:09.428Z',
'0.0.2': '2011-04-27T22:06:28.668Z',
'0.0.3': '2011-04-28T02:03:48.154Z',
'0.0.4': '2011-05-03T21:16:06.298Z',
'0.0.5': '2011-05-06T21:43:14.643Z',
'0.0.6': '2011-05-06T23:37:05.272Z',
'0.0.7': '2011-08-15T20:53:44.740Z',
'0.0.8': '2011-10-11T23:04:53.844Z',