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/python3 | |
| from pydbus import SessionBus | |
| bus = SessionBus() | |
| # Create an object that will proxy for a particular remote object. | |
| remote_object = bus.get( | |
| 'org.gnome.Shell.Notifications', # Bus name | |
| '/org/freedesktop/Notifications' # Object path |
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
| <?php | |
| if (!isset($_GET['q'])) | |
| throw new Exception('Request is missing query parameter \'q\''); | |
| const SERVER_MAP = [ | |
| 100 => 'eu1', | |
| 110 => 'eu2', | |
| 120 => 'eu3', | |
| 200 => 'vin', | |
| 300 => 'la', |
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 os | |
| import requests | |
| import json | |
| REASON = 'The account associated with the report is ran by cathook (https://github.com/nullworks/cathook), this account uses third-party software to cheat on Valve matchmaking servers and prevents legitimate players from enjoying the game.' | |
| # Get these from web cookies | |
| AUTH_SESSION_ID = "" |
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 bash | |
| shopt -s extglob | |
| # helper: logging shortcut function | |
| [[ -z $LOG_PREFIX ]] && LOG_PREFIX="" | |
| log() | |
| { | |
| echo -e "${LOG_PREFIX}$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/env python | |
| import sys | |
| import os | |
| counter = 0 | |
| with open(sys.argv[1], "r") as fd: | |
| while True: | |
| c = fd.read(1) | |
| if (c == '{'): | |
| counter += 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
| .ic-Layout-watermark { | |
| background: linear-gradient(0deg, #f5f6f9, rgba(255, 255, 255, .8) 60%), url(https://www.iastate.edu/files/styles/banner/public/images/2022-06/HP_CampusRainbow22.jpg) fixed !important; | |
| background-blend-mode: normal; | |
| width: calc(100vw - 54px); | |
| } | |
| .quiz-header h1, .quiz-header h2 { | |
| margin-top: 0; | |
| font-weight: normal !important; | |
| font-family: "Cooper BlkHd BT" !important; | |
| font-size: 2rem !important; |
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 | |
| # cfg: Folder relative to your keyboard public room. | |
| public_path="/sharex/$(date +"%b%Y")" | |
| ######### Do not touch. ################################################## | |
| ## setup: detect environment and define globals | |
| TMP_FILE="/tmp/push-img.png" |
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 | |
| # notify: Instantiates a new push notification. | |
| # $1 string title | |
| # $2 string body | |
| notify() | |
| { | |
| NOTIFY_OPTS="-a $0 -i utilities-terminal -t 8000" | |
| notify-send ${NOTIFY_OPTS} "$1" "$2" | |
| } |
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
| #include "mathlib.h" | |
| /** | |
| * Vector4 Class | |
| */ | |
| Vector4::Vector4 (void) | |
| { | |
| this->x = 0; | |
| this->y = 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
| #!/usr/bin/bash | |
| if [[ $# < 1 ]]; then | |
| echo "Resovles a URL unil it no longer redirects, dumps it's final URL." | |
| echo "usage: curl_resolve <url>" | |
| exit 2 | |
| fi | |
| MAX_REDIRECTS=3 | |
| curl --max-redirs $MAX_REDIRECTS $1 -s -L -I -o /dev/null -w '%{url_effective}' |