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
FROM nginx:alpine | |
COPY shitty-html.html /usr/share/nginx/html/index.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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN/0JQimK4LVQ2fk190QoQXqsNiqPz0R4TQEsSci1WQ2WFJOLrkaKUbmPvPZg/V7/AY4BJb4sIdiItX2PfFFSI2WCPAhbd7kicAJdl8e0McXV+ERNkyEHYql1qhBkK65mJfgLJp7ATuLjdVKYR6qcR8uePHmRDuxXCD7ViymLs9dVefeMGayjHtma1DLOJMhSbe6RE2kIHB+AC4CfwJY8V35Up3zUsInXoLsQu8GbjPoT+q1mG6Oa7gDyvWX+9IFFoJySQfYwLYWqOJ64I1iTwyKpnWOxmgUumam7m6PNMQ60OkrIjAG082g0s8C3BlCLtmqyYybX7cH61M1/Zj/ND [email protected] |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEcE1dFtTtZmjjKHGAXQFDCGfqeisAYZ7tLIaNwjeoNUE5D/E4Ht7QvLBxHmHy7agNc+7RALzfNxMNI/jLvPvojWA7eYO2zyKI5j7Ul72iWKFpHgHpKvRMiExA9Wd5PgS4Ur1494pU5hSLJCiO0tQY9wzvEUsmsiZl076AsfAndVet7Db5Jv9s1dyijnf2L0pvxlIjbukWkNGqzDPbPsFASojg1xonI0eGaoYlkg26rGdEJ8iPAQtEP+x4H6OrRsAm/9YjKvmrpDE1LC/5hjZ61cKRxo9qRZ8yODo6VoFeTAh5Prr28uGQ9w/GoMWMIrU3K8YXD/7/O/kLPIUBxTrd |
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 | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: ./wipe_old_builds.sh /path/to/builds/directory" | |
exit 1 | |
fi | |
cd $1 | |
if [ $? -ne 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
location /blog/ { | |
#auth_basic "Restricted"; | |
#auth_basic_user_file /etc/nginx/.htpasswd; | |
proxy_pass https://test-blog.bitstarz.com/; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
} |
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
# my global config | |
global: | |
scrape_interval: 120s # By default, scrape targets every 15 seconds. | |
evaluation_interval: 120s # By default, scrape targets every 15 seconds. | |
# scrape_timeout is set to the global default (10s). | |
# Attach these labels to any time series or alerts when communicating with | |
# external systems (federation, remote storage, Alertmanager). | |
external_labels: | |
monitor: 'my-project' |
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
# my global config | |
global: | |
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
# scrape_timeout is set to the global default (10s). | |
# Attach these labels to any time series or alerts when communicating with | |
# external systems (federation, remote storage, Alertmanager). | |
external_labels: | |
monitor: 'codelab-monitor' |
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 | |
if [[ $# -eq 0 ]] ; then | |
echo 'usage: ./get-first-swarm-container.sh service-name' | |
exit 1 | |
fi | |
docker ps | grep $1 | awk '{print $1}' | head -n 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
alias clear-magento='rm -rf var/cache/* var/generation/* var/page_cache/* var/di/* var/view_preprocessed/*; bin/magento cache:flush; bin/magento setup:upgrade; bin/magento setup:di:compile; bin/magento setup:static-content:deploy' |
NewerOlder