cd /tmp
wget -c https://github.com/prometheus/prometheus/releases/download/v2.13.1/prometheus-2.13.1.linux-amd64.tar.gz
| #!/bin/bash | |
| # | |
| # REQUIRES | |
| # - netstat - to retrieve network stack details | |
| # - sysctl - to retrieve/modify kernel settings | |
| # - bc - for math | |
| # | |
| # MIT License | |
| # | |
| # Copyright 2020 John H Patton, JH Patton Consulting, LLC |
| #!/bin/bash | |
| set -o errexit | |
| clear | |
| printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
| ### HOW TO USE | |
| ### Pre-req: | |
| ### - run on a Proxmox 6 server | |
| ### - a dhcp server should be active on vmbr1 |
| #!/bin/sh | |
| # Cloudflare API v.4 Variables | |
| CF_APIKEY='Your API Key Here' | |
| CF_ZONEID='The Zone ID here' # Found on your Cloudflare Dashboard | |
| CF_DNSID='The DNS ID here' # Found by listing DNS with Cloudflare API, see below for command | |
| CF_EMAIL='your@email.address' | |
| CF_DNS='address.domain.com' | |
| GET_IP=$(dig +short txt ch whoami.cloudflare @1.0.0.1) |
| $ModLoad imfile | |
| $InputFilePollInterval 10 | |
| $PrivDropToGroup adm | |
| #NGINX access file: | |
| # Path to the file which you want to monitor | |
| $InputFileName /home/logs/nginx-access.log |
| # ----------------------------------------------------------------------------------------- | |
| # Disable URL indexing by crawlers (FOR DEVELOPMENT/STAGE) | |
| # ----------------------------------------------------------------------------------------- | |
| # Avoid search engines (Google, Yahoo, etc) indexing website's content | |
| # http://yoast.com/prevent-site-being-indexed/ | |
| # http://code.google.com/web/controlcrawlindex/docs/robots_meta_tag.html | |
| # Matt Cutt (from Google Webmaster Central) on this topic: | |
| # http://www.youtube.com/watch?v=KBdEwpRQRD0 |
| Api Call | HTTP Status | UI Behavior | CLI Behavior |
|---|---|---|---|
| PUT "/api/v0/staged/director/properties" | 200 | * | Continue |
| PUT "/api/v0/staged/director/availability_zones" | 207 | Warning (AvailabilityZonesVerifier) | Halt |
| vv Below this line, I commented the az config before running | |||
| PUT "/api/v0/staged/director/networks" | 200 | Warning (IaasConfigurationVerifier, NetworksExiste |
| Options All -Indexes | |
| # Ultimate htaccess Blacklist 2 from Perishable Press | |
| # Deny domain access to spammers and other scumbags | |
| RewriteEngine on | |
| RewriteBase / | |
| RewriteCond %{HTTP_USER_AGENT} ADSARobot|ah-ha|almaden|aktuelles|Anarchie|amzn_assoc|ASPSeek|ASSORT|ATHENS|Atomz|attach|attache|autoemailspider|BackWeb|Bandit|BatchFTP|bdfetch|big.brother|BlackWidow|bmclient|Boston\ Project|BravoBrian\ SpiderEngine\ MarcoPolo|Bot\ mailto:craftbot@yahoo.com|Buddy|Bullseye|bumblebee|capture|CherryPicker|ChinaClaw|CICC|clipping|Collector|Copier|Crescent|Crescent\ Internet\ ToolPak|Custo|cyberalert|DA$|Deweb|diagem|Digger|Digimarc|DIIbot|DISCo|DISCo\ Pump|DISCoFinder|Download\ Demon|Download\ Wonder|Downloader|Drip|DSurf15a|DTS.Agent|EasyDL|eCatch|ecollector|efp@gmx\.net|Email\ Extractor|EirGrabber|email|EmailCollector|EmailSiphon|EmailWolf|Express\ WebPictures|ExtractorPro|EyeNetIE|FavOrg|fastlwspider|Favorites\ Sweeper|Fetch|FEZhead|FileHound|FlashGet\ WebWasher|FlickBot|fluffy|FrontPage|GalaxyBot|Generic|Getleft|GetRight| |
| Some notes from engineering. | |
| 1) Identify the partition | |
| Mnesia('rabbit@juju-machine-30-lxd-11'): ** ERROR ** mnesia_event got {inconsistent_database, running_partitioned_network, 'rabbit@juju-machine-29-lxd-9'} | |
| $ sudo rabbitmqctl cluster_status | |
| 2) Pick the most reliable node as the master. |