Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Richard Lancaster richlanc

🏠
Working from home
Block or report user

Report or block richlanc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View guacd-dynamic-resize-rdp.log
guacd[7]: INFO: Creating new client for protocol "rdp"
guacd[7]: INFO: Connection ID is "$6b42225d-2ca1-4ab8-9d68-c1cdd1baf56b"
guacd[191]: DEBUG: Processing instruction: size
guacd[191]: DEBUG: Processing instruction: audio
guacd[191]: DEBUG: Processing instruction: video
guacd[191]: DEBUG: Processing instruction: image
guacd[191]: DEBUG: Parameter "console" omitted. Using default value of 0.
guacd[191]: DEBUG: Parameter "console-audio" omitted. Using default value of 0.
guacd[191]: DEBUG: Parameter "disable-auth" omitted. Using default value of 0.
guacd[191]: INFO: Security mode: ANY
View gist:fa95613f316a0e3561b0302db2fa0d87
scivisum@pinhead:~ 130 $ /sv/venv/svMonitorInjectorV2/lib/python2.7/site-packages/svAppiumIOS/node_modules/appium/build/lib/main.js --port 8888
[Appium] Welcome to Appium v1.7.2
[Appium] Non-default server args:
[Appium] port: 8888
[Appium] Appium REST http interface listener started on 0.0.0.0:8888
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"nativeWebTap":true,"deviceName":"iPhone 8","automationName":"XCUITest","browserName":"Safari","newCommandTimeout":null,"platformVersion":"11.0","platformName":"iOS"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"nativeWebTap":true,"deviceName":"iPhone 8","automationName":"XCUITest","browserName":"Safari","newCommandTimeout":null,"platformVersion":"11.0","platformName":"iOS"},{},null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1517838758623 (13:52:38 GMT+0000 (GMT))
[Appium] Creating new XCUITestDriver (v2.67.0) session
[Appium] Capabilities:
View gist:ce445d56d855e38208d7cb6f691a582b
pinhead:~ scivisum$ /sv/ios/appium/node_modules/.bin/appium -p 4723
[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"deviceName":"iPhone2017-B","automationName":"XCUITest","browserName":"Safari","newCommandTimeout":0,"platformVersion":"11.0","platformName":"iOS"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone2017-B","automationName":"XCUITest","browserName":"Safari","newCommandTimeout":0,"platformVersion":"11.0","platformName":"iOS"},{},null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1507631253117 (11:27:33 GMT+0100 (BST))
[Appium] Creating new XCUITestDriver (v2.51.1) session
[Appium] Capabilities:
[Appium] deviceName: 'iPhone2017-B'
[Appium] automationName: 'XCUITest'
@richlanc
richlanc / gist:822a684271c5e9dbf9eed41ef43a3082
Last active Oct 9, 2017
Appium Xcuitest + iOS11 Simulator + Javascript dialog bug
View gist:822a684271c5e9dbf9eed41ef43a3082
pinhead:~ scivisum$
pinhead:~ scivisum$ /sv/ios/appium/node_modules/.bin/appium -p 4723
[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"deviceName":"iPhone2017-B","automationName":"XCUITest","browserName":"Safari","newCommandTimeout":0,"platformVersion":"11.0","platformName":"iOS"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone2017-B","automationName":"XCUITest","browserName":"Safari","newCommandTimeout":0,"platformVersion":"11.0","platformName":"iOS"},{},null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1507541107517 (10:25:07 GMT+0100 (BST))
[Appium] Creating new XCUITestDriver (v2.51.1) session
[Appium] Capabilities:
[Appium] deviceName: 'iPhone2017-B'
View gist:1ad4cceff3441f1c96d74dadf8135c72
# Prepare ubuntu chroot with google-chrome
debootstrap --arch=amd64 ${ubuntu_version} ${_tmppath}/ubuntu/ http://archive.ubuntu.com/ubuntu/
cp /etc/resolve.conf ${_tmppath}/ubuntu/etc/resolve.conf
VERSION=${ubuntu_version} envsubst <${SOURCES}/sources.list.env >${_tmppath}/ubuntu/etc/apt/sources.list
chroot ${_tmppath}/ubuntu/ /bin/sh <<EOF
# Install chrome
apt-get update && apt-get -y install wget
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-get add-key -
apt-get update
View gist:7f6e93eb8af81185cbe74bfb09d65090
synclient PalmDetect=1 TapButton1=1 TapButton2=3 TapButton3=2 FingerLow=1 FingerHigh=10 MaxSpeed=2 VertTwoFingerScroll=1 HorizTwoFingerScroll=1
View toggleTouchpad.sh
#!/bin/bash
ID=$(xinput list | grep -Eio 'touchpad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}')
STATE=$(xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}')
if [ $STATE -eq 1 ]; then
xinput disable $ID
echo "Touchpad disabled."
else
xinput enable $ID
View querymock.py
class QueryMock(object):
""" Beats having to mock query.return_all.filter...
Usage:
>>> qm = QueryMock([("all", "ERROR")])
>>> getDatabaseSession = MagicMock(return_value=qm)
>>> errors = (
... getDatabaseSession()
... .query(ShowTime)
... .filter(ShowTime.start >= start)
View keybase.md

Keybase proof

I hereby claim:

  • I am richlanc on github.
  • I am lancasterrrich (https://keybase.io/lancasterrrich) on keybase.
  • I have a public key whose fingerprint is 8886 CAF3 F7B9 B1D7 A3BC 25EB F44B A03B 0BA3 8778

To claim this, I am signing this object:

You can’t perform that action at this time.