Skip to content

Instantly share code, notes, and snippets.

@jpaugh
jpaugh / XPath in the browser.js
Created September 30, 2020 16:41
How to test XPath in the browser
function iterate(i) {
var result = [];
do {
var next = i.iterateNext();
result[result.length] = next;
} while (next != null)
return result;
}
iterate(document.evaluate("//a[@href and data-mediatype]", document, null, XPathResult.ANY_TYPE))
@jpaugh
jpaugh / gist:f08c62bea5689c490204c3347870884e
Created January 9, 2024 16:29
SO AskUbuntu Syslog output during login attempt
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: > Warning: Unsupported maximum keycode 569, clipping.
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: > X11 cannot support keycodes above 255.
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: > Internal error: Could not resolve keysym Invalid
Jan 9 10:16:53 asrock org.gnome.Shell.desktop[7997]: Errors from xkbcomp are not fatal to the X server
Jan 9 10:16:56 asrock kernel: [ 1059.772067] wlp4s0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
Jan 9 10:17:00 asrock kernel: [ 1064.048187] rfkill: input handler enabled
Jan 9 10:17:01 asrock CRON[8002]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jan 9 10:17:01 asrock CRON[8003]: (unms) CMD (/home/unms/app/update.sh --cron > /dev/null 2>&1 || true)
Jan 9 10:17:19 asrock systemd[1]: fprintd.service: Succeeded.