This file contains 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
for i in seq {1..9}; do resperf -d dns_domain_names.txt -s $host -f inet -p 53 -e 2> /dev/null |grep throughput ; done |
This file contains 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 | |
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 |
This file contains 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 | |
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 |
This file contains 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
zone "toto-tr.fr.rt" { | |
type master; | |
masters { 213.154.64.11; }; | |
file "slaves/db.toto-tr.fr.rt"; | |
}; | |
#Replace this : | |
(^[a-z0-9\-]+(\.[a-z0-9\-]+)*) |
This file contains 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/events | jq '.resources[].entity | select(.actee_type=="app") |{actor: .actor_name, type: .type, date: .timestamp, application: .actee_name}' |
This file contains 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 | |
cf login | |
wget https://kanboard.net/kanboard-latest.zip | |
unzip kanboard-latest.zip | |
cd kanboard | |
mkdir .bp-config | |
cat <<EOF >> .bp-config/options.json | |
{ | |
"PHP_EXTENSIONS": ["gd","openssl","pdo", "pdo_mysql","pdo_sqlite","mbstring","mysql"] | |
} |
This file contains 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
openssl req -new -nodes -out wc.cf.boina.csr -newkey rsa:2048 -keyout wc.cf.boina.key -config <( | |
cat <<-EOF | |
[req] | |
default_bits = 2048 | |
prompt = no | |
default_md = sha256 | |
req_extensions = req_ext | |
distinguished_name = dn | |
[ dn ] |
This file contains 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
host myrepo | |
HostName 10.10.8.19 | |
IdentityFile ~/.ssh/gitsrv.key | |
User git | |
host myconcourse | |
HostName 10.10.9.28 | |
IdentityFile ~/.ssh/mykey | |
User concourse-user |
This file contains 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
git clone https://github.com/angular/quickstart.git quickstart | |
cd quickstart | |
npm install | |
npm start | |
# (*Nix) To delete no essential file of an Angular project | |
xargs rm -rf < non-essential-files.osx.txt | |
rm src/app/*.spec*.ts | |
rm non-essential-files.osx.txt |
This file contains 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
uaac target | |
uaac token client get admin | |
uaac user add concourse-ci -p $Password--emails nboina@example.com | |
uaac member add cloud_controller.admin concourse-ci | |
uaac member add scim.read concourse-ci | |
uaac member add scim.write concourse-ci |