Skip to content

Instantly share code, notes, and snippets.

View presidenten's full-sized avatar

Johan Hernefeldt presidenten

  • Moralis Web3
  • Sweden
View GitHub Profile
@presidenten
presidenten / gist:1225502cc0cd7dd4d5735af8fcb3891e
Created January 25, 2018 07:37 — forked from jaydson/gist:1780598
How to detect a click event on a cross domain iframe
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){
@presidenten
presidenten / css_regression_testing.md
Created May 17, 2018 11:35 — forked from cvrebert/css_regression_testing.md
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
@presidenten
presidenten / iterm2-solarized.md
Created May 21, 2018 07:44 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@presidenten
presidenten / cloudSettings
Last active February 11, 2021 11:32
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-11T11:32:47.366Z","extensionVersion":"v3.4.3"}
@presidenten
presidenten / Default%20%28OSX%29.sublime-keymap
Last active March 14, 2019 09:39
Sublime settings sync
[
{ "keys": ["shift+super+minus"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["super+d"], "command": "duplicate_line" },
{ "keys": ["shift+super+r"], "command": "find_all_under" },
{ "keys": ["ctrl+o"], "command": "prompt_open_file" },
{
"keys": ["super+alt+l"],
"command": "jsbeautify",
"context": [{
"key": "selector",
@presidenten
presidenten / Appium log - ipad1
Created April 26, 2019 15:26
Appium ios issue log
[Appium] Welcome to Appium v1.13.0-beta.3
[Appium] Non-default server args:
[Appium] allowCors: true
[Appium] address: <appium_server_url>
[Appium] port: 5570
[Appium] sessionOverride: true
[Appium] nodeconfig: ipad1.json
[Appium] webkitDebugProxyPort: 5670
[Appium] You have enabled CORS requests from any host. Be careful not to visit sites which could maliciously try to start Appium sessions on your machine
[debug] [Appium] Starting auto register thread for grid. Will try to register every 5000 ms.
@presidenten
presidenten / Versions
Last active October 15, 2019 16:06
Appium logs with iphone ios12 and ios13
$ node --version
v10.16.3
$ appium --version
1.15.1
$ # libimobiledevice
$ # installed with --HEAD, latest commit was "60823f9idevice: properly handle partial SSL writes"
$ ios_webkit_debug_proxy --version
@presidenten
presidenten / appium server log
Created October 25, 2019 15:07
Testrun appium 1.16.0-beta.1 vs ios13
~/selenium $ ./appium/beta/appium -a "<removed-from-log>" --nodeconfig ~/selenium/ios/iphone3.json --session-override --allow-cors --webkit-debug-proxy-port 5662 -p 5562 --relaxed-security
[Appium] Welcome to Appium v1.16.0-beta.1
[Appium] Non-default server args:
[Appium] allowCors: true
[Appium] address: <removed-from-log>
[Appium] port: 5562
[Appium] sessionOverride: true
[Appium] nodeconfig: <removed-from-log>/ios/iphone3.json
[Appium] webkitDebugProxyPort: 5662
[Appium] relaxedSecurityEnabled: true