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 | |
ORG="" | |
NEW_VISIBILITY="" | |
REPO_LIST="repos.txt" | |
show_help() { | |
cat <<EOF |
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 -e | |
# Usage help function | |
show_help() { | |
cat <<EOF | |
Usage: $0 <username> <public_ssh_key> [--add-sudo] | |
This script creates a Linux user, sets up their SSH access, and optionally grants sudo privileges. |
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 | |
# GitHub Package Migrator | |
# Migrates packages (NuGet, npm, RubyGems, Docker) between GitHub organizations | |
# Requires: curl, jq, docker, dotnet, gem | |
# Usage: ./github_pkg_migrator.sh <source_org> <target_org> <source_token> <target_token> | |
SOURCE_ORG="$1" | |
TARGET_ORG="$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
#!/usr/bin/env python3 | |
import requests | |
import argparse | |
import json | |
import csv | |
import sys | |
def get_org_runners(org, api_url, headers): | |
url = f"{api_url}/orgs/{org}/actions/runners" |
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 requests | |
import argparse | |
import csv | |
import json | |
import sys | |
def list_github_apps(org, api_url, headers): | |
url = f"{api_url}/orgs/{org}/installations" |
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 boto3 | |
import argparse | |
import numpy as np | |
from datetime import datetime, timedelta, timezone | |
from botocore.exceptions import NoCredentialsError, ProfileNotFound, ClientError | |
# -------------------------- | |
# Command-Line Arguments | |
# -------------------------- | |
parser = argparse.ArgumentParser(description="AWS Savings Plan Estimator") |
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 | |
# Define the source file containing the list of SOURCE_ORG names | |
SOURCE_FILE="orgs.txt" | |
TARGET_ENTERPRISE=$TARGET_ENTERPRISE | |
# Number of parallel jobs (adjust as needed) | |
PARALLEL_JOBS=5 | |
DRY_RUN=false |
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 python3 | |
import argparse | |
import requests | |
import json | |
import csv | |
import concurrent.futures | |
from unittest.mock import patch | |
import os | |
import datetime |
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 | |
# Ensure GitHub CLI (gh) is installed | |
if ! command -v gh &>/dev/null; then | |
echo "GitHub CLI (gh) is not installed. Please install it first." | |
exit 1 | |
fi | |
# Usage function | |
usage() { |
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 pyautogui | |
import math | |
def circle(): | |
a,b = pyautogui.position() | |
w = 20 | |
m = (2*math.pi)/w | |
r = 200 |
NewerOlder