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
function connectRefresher() { | |
window.ConnectButtonIntervalId = setInterval(function ConnectButton(){ | |
console.log("connected"); | |
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click(); | |
document.querySelector("colab-sessions-dialog").shadowRoot.querySelector("#footer > div > paper-button").click(); | |
console.log("closed the dialog!!"); | |
},60000); | |
} | |
function clearRefresher() { |
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
#!/bin/bash | |
# Remove the panel border radius on orchis theme. | |
# make a nice looking panel when using dash-to-panel extension | |
css=' | |
#panel { | |
border-radius: 0, 0px; | |
}' |
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
function leven_dist | |
set -l lena (string length "$argv[1]") | |
set -l lenb (string length "$argv[2]") | |
if test $lena = 0 | |
return $lenb | |
end | |
if test $lenb = 0 | |
return $lena |
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
{ | |
"audio": "pipewire", | |
"bootloader": "systemd-bootctl", | |
"custom-commands": [ | |
"usermod -aG docker gazorby", | |
"pacman-key --init", | |
"pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com", | |
"pacman-key --lsign-key FBA220DFC880C036", | |
"pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'", | |
"echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist\n' | sudo tee -a /etc/pacman.conf", |
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
"""Simple progress bar implementation. | |
Original code: https://stackoverflow.com/a/36985003/10735573 | |
""" | |
from __future__ import annotations | |
import sys | |
from typing import TYPE_CHECKING |
OlderNewer