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
# Show troubleshooting information in error_log. | |
LogLevel debug | |
MaxLogSize 0 | |
ErrorPolicy stop-printer | |
# Allow remote access | |
Port 631 | |
Listen /run/cups/cups.sock | |
Browsing Yes | |
BrowseLocalProtocols dnssd | |
DefaultAuthType Basic |
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 | |
GIPATH=$(ps aux | grep -a -Po 'Z:.+GenshinImpact.exe' | head -1 | sed -e 's/Z://' | sed -e 's/GenshinImpact.exe//' | tr '\\' '/' | sed s/'\W*$'//) | |
CACHEDIR=$GIPATH/GenshinImpact_Data/webCaches | |
CACHEDIR=$CACHEDIR/$(ls -t "$CACHEDIR" | grep -a -Po "\d+.\d+.\d+.\d" | head -1) | |
CACHEFILE=$CACHEDIR/Cache/Cache_Data/data_2 | |
cat "$CACHEFILE" | grep -a -Po '(https:\/\/gs\.hoyoverse\.com\/genshin\/event\/e20190909gacha-v2.+?hk4e_global)\W' | tail -n 1 |
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
#!/usr/bin/python | |
import re | |
import subprocess | |
hsr_process = subprocess.run( | |
'ps aux | grep "StarRail.exe"', | |
shell=True, | |
stdout=subprocess.PIPE | |
).stdout.decode().split('\n')[0] |
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
sudo pacman -S ttf-arphic-uming ttf-arphic-ukai wqy-zenhei | |
fc-cache -f -v |