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 | |
| # Install Docker Ubuntu | |
| # Ubuntu 20.04.2 LTS (Focal Fossa) | |
| # Author : Lucho | Just Me | |
| # Linkedin : https://www.linkedin.com/in/luis-octavio-mota-verdasco-sys-admin/ | |
| banner(){ | |
| # Banner | |
| echo " " | |
| echo " ____ __ ____ __ ____ " |
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
| # Ubuntu 20.04 | |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. | |
| deb http://ca.archive.ubuntu.com/ubuntu/ hirsute main restricted | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb http://ca.archive.ubuntu.com/ubuntu/ hirsute-updates main restricted | |
| ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu |
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 bash | |
| TIME=0 | |
| pidlist="" | |
| show_help() { | |
| cat << EOF | |
| Naive Stress Test with cURL. | |
| Usage: ./stress-test.sh [-a ADDRESS] [-c CONCURRENCY] [-r REQUESTS] [-p PROTOCOL] | |
| Params: |
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 | |
| from flask import Flask | |
| from elasticapm.contrib.flask import ElasticAPM | |
| import elasticapm | |
| server_url = 'http://APM-SERVER:8200' | |
| service_name = 'DemoFlask' | |
| environment = 'dev' | |
| app = Flask(__name__) |
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
| # IFP AD | |
| function add_user($user){ | |
| Write-Host "Action:" $user.Action | |
| Write-Host "Unit:" $user.Unit | |
| Write-Host "Group:" $user.Group | |
| $user."Name" = $user.FirtsName + " " + $user.LastName | |
| $user."Sam" = $user.FirtsName.ToLower() + "." + $user.LastName.ToLower() | |
| Write-Host "User:" $user.Name | |
| Write-Host "Sam:" $user.Sam |
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 bash | |
| unnistall() { | |
| echo -n "uninstalling..." | |
| apt purge jigasi jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-turnserver jitsi-meet-web jicofo jitsi-videobridge2 prosody -y &>/dev/null | |
| fn_check $(echo $?) | |
| } | |
| fn_check() { | |
| if [[ $1 == "0" ]]; then |
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 requests | |
| import json | |
| import sys | |
| import os | |
| from flask import request | |
| from flask import jsonify | |
| from flask import Flask | |
| from flask import render_template | |
| from flask_cors import CORS |
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
| # | |
| # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS | |
| # | |
| include /etc/squid/conf.d/* | |
| auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd | |
| auth_param basic realm proxy | |
| acl authenticated proxy_auth REQUIRED | |
| # Example rule allowing access from your local networks. | |
| acl localnet src proxy.safehome.local | |
| # Adapt localnet in the ACL section to list your (internal) IP networks |
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 requests | |
| import argparse | |
| import os.path | |
| import json | |
| HOST = "chartmuseum.dev" | |
| PORT = "8080" | |
| PATH = "api/charts" | |
| def __get(**kwargs): |
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 json | |
| import logging | |
| import subprocess | |
| from os import environ | |
| class Helm: | |
| def __init__( | |
| self, helm='helm', kubeconfig=environ.get('KUBECONFIG', None), | |
| default_namespace='default', default_chart_dir='', raise_ex_on_err=False ): |
OlderNewer