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
boshenv=pcf | |
boshdep=$(bosh -e $boshenv deployments | grep ^cf\-[a-z0-9].*$ | awk '{ print $1 }') | |
bosh -e pcf -d $boshdep vms |
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
./omix.sh curl --path /api/v0/staged/products/p-isolation-segment-efoizefoi9867NUZD98ZD/properties | jq -r ".properties | with_entries(select(.value.configurable == true) | {key: .key, value: {value: .value.value}})" |
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 | |
if [ "$#" != 2 ] ; then | |
echo 'donne des arguments mooonnn !!!!' | |
exit 0 | |
fi | |
src=$1 | |
dst=$2 | |
list=$(ls $src) | |
mkdir -p $dst |
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
CREATE TABLE `cf_1e7d7278_f007_4a59_b423_e4804236eeb0`.`operation.2017112800` ( `CurrentDate` DATETIME NOT NULL ) ENGINE = InnoDB; | |
INSERT INTO `cf_1e7d7278_f007_4a59_b423_e4804236eeb0`.`operation.2017112800` (`CurrentDate`) VALUES (NOW()); | |
#!/bin/bash | |
echo 'INSERT INTO `cf_1e7d7278_f007_4a59_b423_e4804236eeb0`.`operation.2017112800` (`CurrentDate`) VALUES (NOW());' | mysql -h vip-olaf-svcmysql.example.com -u ukIsd3JezjPp6HN3 -p9fAhqiXAENxOzuam |
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
uuid=4d67828a-d2b3-4283-b0d4-95e87947b42b | |
bosh -e pcf -d p-rabbitmq-74685ea63d3760472441 ssh rabbitmq-server/$uuid | |
sudo su - | |
cd /var/vcap/packages | |
export ERL_DIR=$PWD/erlang/bin/ | |
cd rabbitmq-server/bin/ | |
uuid=4d67828a-d2b3-4283-b0d4-95e87947b42b | |
./rabbitmqctl report > /tmp/rabbitmqctl-report-rabbitmq-server-$uuid.log | |
bosh -e pcf -d p-rabbitmq-74685ea63d3760472441 scp rabbitmq-server/$uuid:/tmp/rabbitmqctl-report-rabbitmq-server-$uuid.log /tmp/ |
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
cf curl /v2/organizations/854e0b32-9ec7-3859-a59f-a992a1e7850c/spaces | jq -r ".resources[]" | jq '.entity | select(.space_quota_definition_url!="/v2/space_quota_definitions/a992a1e7850c-5f6e-301a-zdt9-954e0b32")' | jq '.name' | tr -d \" | while read p ; do cf set-space-quota $p {$space_quota_plan} ; done |
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 | |
if [ -z "$1" ]; then | |
echo | |
echo usage: $0 network-interface | |
echo | |
echo e.g. $0 eth0 | |
echo | |
echo shows packets-per-second |
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
[Unit] | |
Description = Concourse Web Server | |
After = postgresql.target | |
[Service] | |
ExecStart = /opt/concourse/bin/concourse web --basic-auth-username myusername --basic-auth-password MyPaSSWord --session-signing-key /opt/concourse/keys/session_signing_key --tsa-host-key /opt/concourse/keys/tsa_host_key --tsa-authorized-keys /opt/concourse/keys/authorized_worker_keys --postgres-data-source postgres://concourse:[email protected]/concourse --external-url http://concourse.mydomain | |
User=root | |
[Install] | |
WantedBy = multi-user.target |
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
# tcpdump -nni eth0 dst port 53 -c 100000 -s 512 -C 10M -w /tmp/dnscapture.pcap | |
# chkconfig --list |grep iptable | |
# sbin/rndc status | |
# ip addr show | |
# sar -n DEV 1 60 |
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
cd /tmp | |
url=http://ftp.isc.org/isc/bind9/9.9.8-P2/bind-9.9.8-P2.tar.gz | |
wget $url | |
bindv=9.9.8-P2 | |
compil=TCP3sec-nossl-rrl-xtds-ipv6-64bits | |
tar -zxvf bind-$bindv.tar.gz | |
patch /tmp/bind-$bindv/bin/named/client.c < /usr/local/progs/compil-resources/client.patch | |
less /tmp/bind-$bindv/bin/named/client.c | |
cd bind-$bindv | |
./configure --prefix=/usr/local/progs/bind-$bindv-$compil/ --enable-threads --without-openssl --enable-rrl --enable-ipv6 |