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
import requests | |
import json | |
import time | |
import os | |
import sys | |
import argparse | |
from datetime import datetime | |
import logging | |
from urllib.parse import urlparse | |
import urllib3 |
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
import requests | |
import json | |
import time | |
import os | |
import sys | |
import argparse | |
from datetime import datetime | |
import logging | |
from urllib.parse import urlparse | |
import urllib3 |
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
sgpt_function() { | |
if [ -t 0 ]; then | |
# Interactive mode | |
docker run --rm -it --name sgpt --user $(id -u):$(id -g) \ | |
-e SHELL_NAME=$SHELL -e HOME=/home/$(whoami) -e TERM=xterm-256color \ | |
-v gpt-cache:/tmp/chat_cache -v $(pwd):/app/workdir \ | |
-v ~/:/home/$(whoami) shell-gpt "$@" | |
else | |
# Non-interactive mode |
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
alias: Test | |
description: Test | |
triggers: | |
- id: key_single_click | |
trigger: event | |
event_type: zwave_js_value_notification | |
event_data: | |
domain: zwave_js | |
node_id: 172 | |
command_class: 43 |
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 | |
# | |
# name: gh-clean.sh | |
# version: 1.2.0 | |
# date: 2024-07-11 | |
# author: B. van Wetten | |
# url: https://gist.githubusercontent.com/QNimbus/bbaf20553b9d733c2b3f1b95346dbe0f/raw/gh-clean.sh | |
# usage: Cleans a specified GitHub repository by removing the entire commit history of each branch, then recommitting each branch with the message 'Initial Commit'. | |
# Optionally, it can also clean the local repository to match the cleaned remote repository and clear all pull requests and PR branches. | |
# |
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
<Configuration> | |
<vGPU>Enable</vGPU> | |
<Networking>Default</Networking> | |
<AudioInput>Disable</AudioInput> | |
<VideoInput>Disable</VideoInput> | |
<PrinterRedirection>Disable</PrinterRedirection> | |
<ClipboardRedirection>Default</ClipboardRedirection> | |
<ProtectedClient>Enable</ProtectedClient> | |
<MappedFolders> | |
<MappedFolder> |
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 -S python -W ignore | |
# code_outliner_exporter.py | |
# Standard library imports | |
import os | |
import ast | |
import argparse | |
from pathlib import 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
#!/bin/env bash | |
# Function to check if a command exists | |
command_exists() { | |
command -v "$1" >/dev/null 2>&1 | |
} | |
# Function to perform iperf test | |
run_iperf_test() { | |
if ! command_exists iperf3; then |