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 | |
IFS=$'\n' | |
# Find all unique directories containing 'venv*' subdirectories | |
for dir in $(find . -type d -name "venv*" -printf '%h\n' | sort -u) | |
do | |
echo "Found directory: $dir" | |
# Find all requirement files in the directory |
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
set-title() { | |
if [[ -z "$PS1_BAK" ]]; then | |
PS1_BAK=$PS1 | |
fi | |
# Change the title immediately using printf | |
printf "\033]0;%s\007" "$1" | |
# Update PS1 for future prompts | |
TITLE="\[\e]2;$1\a\]" |
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 | |
# This script will add the directory where it is located to the PATH | |
# if it's not already included. | |
# Get the directory of the current script, regardless of where it's called from | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | |
# Check if the directory is already in PATH | |
if [[ ":$PATH:" != *":$DIR:"* ]]; then | |
# Add the script directory to PATH for the duration of this session or |
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
openapi: 3.0.0 | |
info: | |
version: 1.0.0 | |
title: Elasticsearch Index API | |
license: | |
name: Apache 2.0 | |
servers: | |
- url: **** | |
paths: | |
/search-backend1: |
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 | |
# This script connects to ETH Zurich via `openconnect` | |
# using the `oathtool` to generate the OTP (of MFA's fame). | |
# Attempts to reconnect if the connection appears broken. | |
# Run as: | |
# bash ethz-vpn.sh | |
LOGIN_NAME="*************@student-net.ethz.ch" |
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
openapi: 3.0.3 | |
info: | |
title: Typesense Notes API | |
description: An API for creating and searching notes. | |
version: 0.25.0 | |
externalDocs: | |
description: Find out more about Typesense | |
url: https://typesense.org | |
servers: | |
- url: https://************.a1.typesense.net |
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
openapi: 3.0.3 | |
info: | |
title: ChatGPT Custom Action Server for Web Crawling | |
description: This server enhances ChatGPT with real-time web crawling functionalities. | |
version: "1.0.0" | |
servers: | |
- url: https://crawler.counter-resistance.org/ | |
paths: | |
/api/view/md/: | |
post: |
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
{ | |
"default_sorting_field": "", | |
"enable_nested_fields": true, | |
"fields": [ | |
{ | |
"facet": false, | |
"index": true, | |
"infix": false, | |
"locale": "", | |
"name": "summary", |
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 | |
# | |
# This script configures DNS settings for OpenVPN using systemd-resolved | |
# It uses D-Bus via busctl to communicate with systemd-resolved | |
# Ensure that systemd-resolved is running before using this script. | |
# Place this script at: /etc/openvpn/update-systemd-resolved | |
# | |
# Example OpenVPN config usage: | |
# up /etc/openvpn/update-systemd-resolved | |
# down /etc/openvpn/update-systemd-resolved |
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 | |
# How-to: as root, run | |
# curl -s https://gist.githubusercontent.com/numpde/3e120f2c99f09b8852e005e33f46cb82/raw/?$(date +%s) | bash | |
# Update the package list | |
sudo apt update | |
# Install required dependencies | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common |