Skip to content

Instantly share code, notes, and snippets.

View Julioevm's full-sized avatar
🏠
Working from home

Julio Julioevm

🏠
Working from home
View GitHub Profile
@Julioevm
Julioevm / gist:68275ea1324046caedfdfb2ba0e9b710
Last active July 22, 2023 04:34
Kagi summarize bookmarklet
javascript:(
function() {
let currentUrl = encodeURIComponent(window.location.href);
window.open('https://kagi.com/summarizer/index.html?url=' + currentUrl + '&target_language=&summary=takeaway');
})();
@Julioevm
Julioevm / doze_mode_adb_commands.sh
Last active April 28, 2021 12:41 — forked from whileloop99/doze_mode_adb_commands.sh
adb commands to test Doze mode
#! /bin/zsh
#
# https://developer.android.com/training/monitoring-device-state/doze-standby
# https://stackoverflow.com/questions/31533972/how-to-shift-device-in-doze-mode-android-preview-m-marshmallow
# Buttery powered state
adb shell dumpsys battery | grep powered
# Unplug battery
adb shell dumpsys battery unplug
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for com.amaris.automation.model.webdriver.DriverHelper$$Lambda$222/777432530@713bb88a (tried for 30 second(s) with 500 milliseconds interval)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'coop-Lenovo-V510', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.3.6-050306-generic', java.version: '1.8.0_222'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 78.0.3904.70, chrome: {chromedriverVersion: 78.0.3904.70 (edb9c9f3de024..., userDataDir: /tmp/.com.google.Chrome.ldyVmk}, goog:chromeOptions: {debuggerAddress: localhost:34281}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandled