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
#!/usr/bin/env bash | |
# Initialize default values | |
full=false | |
incremental=false | |
# Function to display usage instructions | |
usage() { | |
echo "Usage: $0 [OPTIONS] output_base_name" | |
echo "Options:" |
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
#!/usr/bin/env bash | |
# Function to check git status | |
check_git_status() { | |
local dir="$1" | |
cd "$dir" || return | |
# Check if it's a git repository | |
if [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1; then | |
# Get git status |
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
sudo apt-key del ACCAF35C | |
cd /tmp | |
wget https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key | |
sudo apt-key add ./repomd.xml.key | |
sudo apt-key list | |
sudo apt-get update |
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
#!/usr/bin/env bash | |
# Function to get the absolute path | |
get_absolute_path() { | |
local path="$1" | |
if [[ -z "$path" ]]; then | |
path="." | |
fi | |
echo "$(cd "$(dirname "$path")" && pwd)/$(basename "$path")" | |
} |
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
#!/usr/bin/python | |
# Copyright 2009: dogbert <[email protected]> | |
# Copyright 2023: 7enderhead (https://github.com/7enderhead/) | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
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
# Python3 compatible | |
import http.server | |
from http.server import SimpleHTTPRequestHandler | |
import sys | |
import base64 | |
key = "" | |
class AuthHandler(SimpleHTTPRequestHandler): | |
''' Main class to present webpages and authentication. ''' |