lsemenenko / github_org_policy.py
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 10 months ago
| 1 | import logging |
| 2 | import requests |
| 3 | |
| 4 | logger = logging.getLogger("authentik") |
| 5 | |
| 6 | # Ensure flow is only run during oauth logins via Github |
| 7 | if context["source"].provider_type != "github": |
| 8 | debug("Not a GitHub login attempt, skipping organization check") |
| 9 | return True |
lsemenenko / github_team_policy.py
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 10 months ago
| 1 | import logging |
| 2 | import requests |
| 3 | |
| 4 | logger = logging.getLogger("authentik") |
| 5 | |
| 6 | # Ensure flow is only run during oauth logins via Github |
| 7 | if context["source"].provider_type != "github": |
| 8 | debug("Not a GitHub login attempt, skipping organization check") |
| 9 | return True |
lsemenenko / digitalocean_domain_bulk_delete.sh
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 11 months ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | # Script to process domains from a file, validate format, check if they exist, and delete them |
| 4 | |
| 5 | # Check if the input file exists |
| 6 | if [ ! -f "$1" ]; then |
| 7 | echo "Error: Input file '$1' not found." |
| 8 | exit 1 |
| 9 | fi |
lsemenenko / optimize_innodb_tables.sh
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 11 months ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | # Script to optimize all InnoDB tables in a specified MySQL database |
| 4 | # Usage: ./optimize_innodb_tables.sh <database_name> [options] |
| 5 | |
| 6 | # Display help information |
| 7 | function show_help { |
| 8 | echo "Usage: $0 <database_name> [options]" |
| 9 | echo "" |
| 10 | echo "Options:" |
lsemenenko / convert_to_innodb.sh
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 11 months ago
| 1 | #!/bin/bash |
| 2 | #=============================================================================== |
| 3 | # convert_to_innodb.sh |
| 4 | #=============================================================================== |
| 5 | # Description: |
| 6 | # Converts all non-InnoDB tables in a MySQL database to the InnoDB engine. |
| 7 | # This script requires a properly configured ~/.my.cnf file for authentication. |
| 8 | # It automatically detects all tables with engines other than InnoDB and |
| 9 | # converts them one by one, providing progress updates. |
| 10 | # |
Новіше
Пізніше