This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Color codes for output | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
NC='\033[0m' # No Color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
// ===== Utility: build a stable CSS path for elements without a name ===== | |
const cssPath = (el) => { | |
if (!(el instanceof Element)) return ""; | |
const parts = []; | |
while (el && el.nodeType === Node.ELEMENT_NODE && el !== document.body && el !== document.documentElement) { | |
let selector = el.nodeName.toLowerCase(); | |
if (el.id) { | |
selector += "#" + CSS.escape(el.id); | |
parts.unshift(selector); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enhanced colorful .screenrc configuration | |
# Force 256 color support | |
term screen-256color | |
termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' | |
termcapinfo xterm* ti@:te@ | |
termcapinfo xterm* OL=10000 | |
# Basic settings | |
startup_message off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
var taskname; | |
var taskduedate; | |
taskduedate = document.getElementsByName('due_date')[0].value; | |
if (document.getElementsByTagName('TEXTAREA')[0]) { | |
taskname = document.getElementsByTagName('TEXTAREA')[0].value; | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |