keybase track <keybase.io user>
keybase pgp pull <keybase.io user>
gpg --edit-key <keybase.io user>
> lsign
> save
git-crypt add-gpg-user <keybase.io user>
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
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
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
/*DROP TABLE IF EXISTS `update_statements`; | |
create table update_statements ( | |
commands varchar(1024) | |
);*/ | |
-- ------------------- UAA TO LDAP PROCEDURE FOR CLOUD FOUNDRY --------------------------------------------------------- | |
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS UAA_MIG$$ | |
CREATE PROCEDURE UAA_MIG() |
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 database boina-n_db01; | |
show databases; | |
use boina-n_db01; | |
create table mytable01 (name varchar(20), sex CHAR(1), birth DATE); | |
SHOW TABLES; | |
inset into mytable01 value ('boina-n','M','1989-12-22') | |
select * from mytable01; |
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 A CREDHUB USER | |
"UAAC Target: uaac target ${DIRECTOR_UAA_URI} --skip-ssl-validation | |
"UAAC Login: uaac token owner get ${DIRECTOR_UAA_LOGIN_USER} ${DIRECTOR_UAA_ADMIN_USER} -s ${DIRECTOR_UAA_LOGIN_PASS} -p ${DIRECTOR_UAA_ADMIN_PASS} | |
"Credhub USER: uaac client add --name ${CREDHUB_CLIENT} --scope \"uaa.none\" --authorized_grant_types client_credentials --authorities \"credhub.write,credhub.read\" -s ${CREDHUB_CLIENT_SECRET} credhub |
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 <(jq -S . director_properties.prod.json) <(jq -S . director_properties.stg.json) | |
< "keep_unreachable_vms": true, | |
--- | |
> "keep_unreachable_vms": false, | |
56c56 | |
< "disk_size": 153600, | |
--- | |
> "disk_size": 102400, |
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
cat /tmp/list.cuid.txt | while read line ; do echo $( echo "$line;"$(ldapsearch -H ldaps://$ldapserver -w $ldappassword -b "dc=domain,dc=exemple,dc=com" -D "CN="$cuid",OU=Utilisateurs,OU=France Telecom,DC=domain,DC=exemple,DC=com" -s sub "CN=$line" | grep "displayName:\|department:\|telephoneNumber:\|mail:" | awk -F ":" '{ $1 ~ "telephone ; print $2 }' | tr '\n' ';' ) ); done | tee /tmp/list.cuid.csv |
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
primary_subnet=PRD_APPLIS | |
secondary_subnet=ADM_APPLIS | |
primary_network=port_opsman01_I_PRD_APPLIS | |
secondary_network=port_opsman01_I_ADM_APPLIS | |
virtmachine=opsman01 | |
#show a Default port | |
neutron port-show $primary_network |
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/sh | |
#SRV_LIST="myser.com \ | |
#myserver2.com \ | |
#myserver3.com" | |
SRV_LIST="$1" | |
checkcrt(){ | |
SRV=$1 | |
echo "===== $SRV" |