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 consul | |
import time | |
c = consul.Consul() | |
#do = 50000 | |
do = 25000 | |
services = ['test1', 'test2', 'test3'] | |
print("register") |
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
{ | |
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36", | |
"environment": { | |
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4143.7 Mobile Safari/537.36 Chrome-Lighthouse", | |
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36", | |
"benchmarkIndex": 810, | |
"credits": { | |
"axe-core": "3.5.5" | |
} | |
}, |
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
#!/bim/bash | |
test -e /tmp/config.yml || curl -o /tmp/config.yml https://gist.githubusercontent.com/jordant/725fbfed37e807835f7921dc3fb69254/raw/a25ae0dc5b55b4fe664a35d32bdd4e80768f7d68/gistfile1.txt | |
export WP_CLI_CONFIG_PATH=/tmp/config.yml | |
export WP_CLI_PHP_COMPAT_CACHE=/usr/local/wp/php-compat-cache | |
export WP_CLI_PACKAGES_DIR='' | |
cd public ; /usr/local/wp/bin/wp php-compat --path=./ --format=json |
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
apache_modules: | |
- mod_rewrite | |
require: | |
- /usr/local/wp/vendor/wp-cli/doctor-command/command.php | |
- /usr/local/wp/vendor/wp-cli/find-command/src/Find_Command.php | |
- /usr/local/wp/vendor/wp-cli/profile-command/command.php | |
- /usr/local/wp/vendor/danielbachhuber/host-check-command/command.php | |
- /usr/local/wp/vendor/danielbachhuber/update-verify/wp-cli-load.php | |
- /usr/local/wp/vendor/danielbachhuber/php-compat-command/php-compat-command.php |
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 | |
rel=$(lsb_release -cs) | |
echo $rel | |
function install() { | |
curl -o /tmp/chef.deb $1 | |
dpkg -i /tmp/chef.deb ; rm /tmp/chef.deb | |
} |
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
diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py | |
index f52c41f..859d69f 100644 | |
--- a/cloudinit/config/cc_growpart.py | |
+++ b/cloudinit/config/cc_growpart.py | |
@@ -276,7 +276,7 @@ def handle(_name, cfg, _cloud, log, _args): | |
log.debug("use ignore_growroot_disabled to ignore") | |
return | |
- devices = util.get_cfg_option_list(cfg, "devices", ["/"]) | |
+ devices = util.get_cfg_option_list(mycfg, "devices", ["/"]) |
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
# coding=utf-8 | |
""" | |
Uses libvirt to harvest per KVM instance stats | |
#### Dependencies | |
* python-libvirt, xml | |
""" |
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
`touch /tmp/hacked` |
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
Recipe: quagga::default | |
* template[integrated_config] action create | |
- update content in file /etc/quagga/Quagga.conf from de23a8 to 48d371 | |
--- /etc/quagga/Quagga.conf 2015-12-07 18:21:23.934798072 +0000 | |
+++ /etc/quagga/.integrated_config20160218-6894-f4w46h 2016-02-18 23:00:02.959547691 +0000 | |
@@ -27,7 +27,7 @@ | |
router bgp 26347 | |
bgp router-id 10.6.0.245 | |
neighbor hosts peer-group | |
- neighbor hosts remote-as 26347 |
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
"rsyslog": { | |
"server_ip": "127.0.0.1" | |
}, | |
"chef_client": { | |
"handler": { | |
"graphite": { | |
"host": "10.237.217.59", | |
"port": "2003" |
NewerOlder