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/env python3 | |
| import sys | |
| import signal | |
| import dbus | |
| from dbus.mainloop.glib import DBusGMainLoop | |
| from gi.repository import GLib | |
| REQUEST_IFACE = "org.freedesktop.portal.Request" |
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 | |
| if [ ! -f $1 ]; then echo No file provided.; exit 1; fi | |
| F=${1%.*}; | |
| if [ -d "$F" ]; then echo Already Exists.; exit; fi | |
| mkdir "$F"; | |
| unzip -d "$F" "$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
| #!/bin/bash | |
| parse_desktop_file() { | |
| local file="$1" | |
| local section="" | |
| local mainexec="" | |
| local mainname="" | |
| while IFS= read -r line || [[ -n "$line" ]]; do | |
| [[ "$line" =~ ^[\;\#] || -z "$line" ]] && continue |
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 | |
| # | |
| # /etc/NetworkManager/dispatcher.d/99-wifi-hook | |
| INTERFACE="$1" | |
| ACTION="$2" | |
| CONN="$CONNECTION_ID" | |
| LOCKDIR="/tmp/nm-wifi-hook-$CONN.lock" | |
| run_hook() { |
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 -euo pipefail | |
| PROFILE="default" | |
| usage() { | |
| echo "Usage: flatpak-alt [-p PROFILE] run <app-id> [args...]" | |
| echo " flatpak-alt -p work run org.mozilla.firefox" | |
| exit "${1:-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
| #!/bin/bash | |
| # system | |
| SRC=[ | |
| system/lineage/waydroid_x86_64/VANILLA.json | |
| system/lineage/waydroid_x86_64/GAPPS.json | |
| vendor/waydroid_x86_64/MAINLINE.json | |
| ] |
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
| { | |
| "gpt-4o-mini": { | |
| "prompt": 0.15, | |
| "completion": 0.6, | |
| "max": 131072 | |
| }, | |
| "gpt-4o": { | |
| "prompt": 2.5, | |
| "completion": 10, |