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
| { | |
| "$schema": "https://flagd.dev/schema/v0/flags.json", | |
| "flags": { | |
| "header-flag": { | |
| "state": "ENABLED", | |
| "variants": { | |
| "on": true, | |
| "off": false | |
| }, | |
| "defaultVariant": "off", |
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 | |
| declare -a statuses | |
| HOST="https://google.com" | |
| for i in {1..100}; | |
| do | |
| result=$(curl -I $HOST --silent 2>&1 | grep "HTTP/" | cut -d " " -f 2) | |
| statuses["$result"]=$((statuses["$result"]+1)) |
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 | |
| yum update -y | |
| yum install -y python3 | |
| mkdir -p /var/www/html | |
| chmod 2775 /var/www | |
| chmod 2775 /var/www/html | |
| chown -R ec2-user:ec2-user /var/www | |
| find /var/www -type d -exec chmod 2775 {} \; | |
| find /var/www -type f -exec chmod 0664 {} \; | |
| echo '<html lang="en"><head><title>TVP</title></head><body><center><h1 style="color: red">TVP</h1></center></body></html>' > /var/www/html/b.html |
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 python | |
| import os | |
| import json | |
| try: | |
| # python 2 | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| from BaseHTTPServer import HTTPServer as BaseHTTPServer | |
| except ImportError: |
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 | |
| CONSOLE_RED="\033[2;31m" | |
| CONSOLE_GREEN="\033[2;32m" | |
| CONSOLE_CLEAR="\033[0m" | |
| CONFIG_FILE='.gitbuilder' | |
| QUERY_TIMEOUT_SECONDS=5 | |
| CONNECTION_STATUS=0 | |
| RECONNECTIONS=0 |
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 hashlib | |
| import sys | |
| print('Calculating...') | |
| searched = hashlib.md5(bytes("dom", 'utf-8')).hexdigest() | |
| def find_hash(tab): |
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 | |
| CURRENT_DIRECTORY=`pwd` | |
| GIT_HOOKS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| PROJECT_DIRECTORY="$GIT_HOOKS_DIR/../.." | |
| cd $PROJECT_DIRECTORY; | |
| PHP_CS_FIXER="vendor/bin/php-cs-fixer" | |
| PHP_CODE_SNIFFER="vendor/bin/phpcs" | |
| HAS_PHP_CS_FIXER=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/bash | |
| # REPO_NAME=<repo>.git | |
| # ORIGIN_URL=git@<host>:<project>/$REPO_NAME | |
| # REPO1_URL=git@<host>:<project>/$REPO_NAME | |
| rm -rf $REPO_NAME | |
| git clone --bare $ORIGIN_URL | |
| if [ "$?" != "0" ]; then | |
| echo "ERROR: failed clone of $ORIGIN_URL" |