This file contains 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
# Open a terminal on your chromebook | |
# Create the service file | |
mkdir -p ~/.config/systemd/user/sommelier-x@0.service.d | |
# Populate the service with the color override of choice | |
echo -e '[Service]\nEnvironment="SOMMELIER_FRAME_COLOR=#3c3f41"' > ~/.config/systemd/user/sommelier-x@0.service.d/override.conf | |
# REBOOT THE CHROMEBOOK |
This file contains 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
# Dead simple try-until-success blob. | |
# I do a lot of OCR based web-scraping for work, and waiting on Java frontends to load consistently breaks my automation. | |
# This bug-fixes the OCR library not finding the object to click, well enough enough to complete the whole pass without restarts. | |
import time | |
while True: | |
try: | |
#some code | |
except: |
This file contains 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
#Establish the test file | |
#sudo touch /usr/share/xsessions/test-delete.desktop | |
#Commented the above. File now exists. | |
#Test 1 | |
#cat << EOF > /usr/share/xsessions/test-delete.desktop | |
#[Desktop Entry] | |
#Encoding=UTF-8 | |
#Name=test | |
#Comment=test - any window manager |