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
### Keybase proof | |
I hereby claim: | |
* I am jmbarros on github. | |
* I am jmbarros (https://keybase.io/jmbarros) on keybase. | |
* I have a public key ASDiJWD4oAwCAvZLsY-X5ioMtdv7t4HM20WBKPfF5r6-XQo | |
To claim this, I am signing this object: |
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
#to install your script into crontab | |
echo "@reboot root /bin/bash /root/###YOUR_SCRIPT###.sh" >> /etc/crontab | |
#to remove add this command into the script | |
/usr/bin/sed -i '/\@reboot root \/bin\/bash \/root\/###YOUR_SCRIPT###.sh/d' /etc/crontab |
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
cd /etc/named | |
dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -n HOST example01.t4it.local | |
cat Kexample01.t4it.local.+1573343797.key | |
#####output | |
################################################ | |
[root@example01 named]#cd /etc/named/ | |
[root@example01 named]# dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -n HOST example01.t4it.local | |
Kexample01.t4it.local.+157+19588 | |
[root@example01 named]# cat Kexample01.t4it.local.+157+19588.key |
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
#install bind | |
yum install -y bind bind-utill | |
systemctl enable bind | |
systemctl start bind |
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
#Installing Foreman | |
#go to root home | |
cd ~ | |
#install GIT | |
apt-get install git -y | |
clone GIT | |
git clone https://github.com/jmbarros/ubuntu |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#get detail of Virtual Server | |
slcli vs detail [ip or id of the server] | |
#create image | |
slcli vs capture -n [image name] [id of the server] | |
#cancel server | |
slcli vs cancel [id of server] —> (Take care, this will destroy your VS) | |
#get the [image id] |
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
##### begin script ##### | |
#!/bin/bash | |
#menu with case | |
#by jmbarros@tech4it.com.br | |
clear | |
echo -e "Choice your option (1 or 2 or 3)/n?" | |
echo -e " 1) Create User..." | |
echo -e " 2) Change password..." | |
echo -e " 3) Validating user..." | |
echo -e " 4) Exit!" |