Skip to content

Instantly share code, notes, and snippets.

View kker4m's full-sized avatar

Kerem Mert İzmir kker4m

View GitHub Profile
@tom-galvin
tom-galvin / mapwacom
Last active October 19, 2024 10:05
Mapwacom script
#!/bin/bash
# mapwacom script
MAPWACOM=$(basename $0)
EXIT_CODE_BAD_DEVICE=82
EXIT_CODE_NO_SUCH_DEVICE=80
EXIT_CODE_NO_SUCH_SCREEN=81
EXIT_CODE_MISSING_DEPS=83
EXIT_CODE_USAGE=64
@munro
munro / selenium_wait_for_images_loaded.py
Last active October 4, 2024 12:21
Selenium wait for all images to load, including background images.
from textwrap import dedent
def wait_until_images_loaded(driver, timeout=30):
"""Waits for all images & background images to load."""
driver.set_script_timeout(timeout)
driver.execute_async_script(dedent('''
// Function to extract URL from CSS 'url()' function
function extractCSSURL(text) {
var url_str = text.replace(/.*url\((.*)\).*/, '$1');
@trongnghia203
trongnghia203 / install_pyenv.md
Last active October 28, 2024 15:22
Install pyenv