Skip to content

Instantly share code, notes, and snippets.

View kmissoumi's full-sized avatar

Kareem Missoumi kmissoumi

View GitHub Profile
@kmissoumi
kmissoumi / pinned.pac
Created January 11, 2022 19:50
example proxy configuration
function FindProxyForURL(url, host) {
// route sauce connect traffic
if (shExpMatch(host, "api.*.saucelabs.com") ||
shExpMatch(host, "ondemand.*.saucelabs.com") ||
shExpMatch(host, "saucelabs.com") ||
shExpMatch(host, "app.saucelabs.com") ||
shExpMatch(host, "*.saucelabs.com") ||
shExpMatch(host, "*.miso.saucelabs.com") ||
shExpMatch(host, "*.tunnels.saucelabs.com")) {
@kmissoumi
kmissoumi / example_output.json
Last active January 7, 2022 23:47
API Wrapper for Sauce Labs. Prints JSON formatted list of private devices w/ availability.
[
{
"id": "Google_Pixel_3a_POC102",
"isPrivate": true,
"isAvailable": true,
"modelNumber": "Pixel 3a",
"os": "ANDROID",
"osVersion": "10"
},
{
#!/bin/bash
#
# 2021-08-26 v0.1.0
# [email protected]
#
# RDC Appium sessionId to Sauce jobId
#
# The driver.sessionId() returned for real device jobs is the Appium session id.
# To get the jobId an extra step is needed.
#
git clone [email protected]:saucelabs-training/demo-java.git
cd demo-java
mvn dependency:resolve
mvn test-compile
mvn test -pl best-practice -Dtest=DesktopTests
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@kmissoumi
kmissoumi / bf_apigee_cass_legacy.text
Created August 5, 2014 17:32
List of Instances in Legacy Zone to Check Disk Type
tenant: blackflag4g-uat-ewr1
bf-env: f6
api-test-casszk1
api-test-casszk2
api-uat-casszk1-ewr1
api-uat-casszk2-ewr1
api-uat-casszk3-ewr1
tenant: blackflag4g-uattemp-ewr1
bf-env: f3
@kmissoumi
kmissoumi / gist:7510e1b82a7c031373cc
Last active August 29, 2015 14:01
Setting Up OpenStack Network
Still need to test and verify, had to work through some of the port versus network-interface deals, but looks clean.
Big note is that the dash board did not show the updates,
I'd expect there is something that runs every <variable_amount_of_time> that updates what was executed via neutron and shows it in the dash.
IIRC the same thing is true for work completed in neutron, in that it does not show via nova...probably worth a ticket
The "public" network is assumed created by SL for us, you can do a net-list to see if it's there or if someone made it with a different name.
The 2nd network created by SL, the one that allows us to access MIND and WebRTC is usually named "extranetWAN". It is not created by default at this point.
VeriSign Class 3 Secure Server CA - G3
-----BEGIN CERTIFICATE-----
MIIF7DCCBNSgAwIBAgIQbsx6pacDIAm4zrz06VLUkTANBgkqhkiG9w0BAQUFADCB
yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL
ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJp
U2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxW
ZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0
aG9yaXR5IC0gRzUwHhcNMTAwMjA4MDAwMDAwWhcNMjAwMjA3MjM1OTU5WjCBtTEL
MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZW
ZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTswOQYDVQQLEzJUZXJtcyBvZiB1c2UgYXQg