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
| ; nasm -f elf64 -o hello.o hello.asm | |
| ; ld -o hello hello.o | |
| ; from: | |
| ; http://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/ | |
| sys_write equ 1 | |
| sys_exit equ 60 | |
| stdin equ 0 |
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
| ------------------------------------- | |
| Network | |
| ------------------------------------- | |
| Puppet | |
| hiera -d build::variable environemnt=production ::fqdn=node.foo.local | |
| yum install -y puppet-client-utils |
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
| #!/usr/bin/env python | |
| def template(t, d): | |
| for k, v in d.items(): | |
| label = "[{}]".format(k) | |
| t = t.replace(label, v) | |
| return t | |
| string = "first [name] address [town] '[other]'" |
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
| vgextend /dev/linux/var | |
| lvextend -l 100%FREE /dev/linux/var |
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
| yum install centos-release-scl | |
| yum install rh-ruby24-ruby-devel | |
| scl enable rh-ruby24 bash | |
| gem install bundler | |
| bundle install |
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
| ipa-client-install --mkhomedir --ip-address=10.0.40.100 |
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
| hiera -d build::variable environment=production ::fqdn=node.foo.local | |
| #or | |
| puppet lookup --explain --node node.foo.local build::variable | |
| # ------------------------------------------------ | |
| puppet resource package puppet-client-tools ensure=latest | |
| # or | |
| yum install -y puppet-client-utils |
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
| print cert | |
| ---------- | |
| # openssl x509 -in /etc/pki/tls/certs/node.foo.local.crt -text -noout | |
| $ openssl s_client -showcerts -connect node.foo.local:443 | |
| using SNI steering |
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
| assumption: | |
| /etc/openldap/ldap.conf is correct: | |
| SASL_NOCANON on | |
| URI ldaps://ipa.foo.com | |
| BASE dc=foo,dc=com | |
| TLS_CACERT /etc/ipa/ca.crt | |
| check LDAP: |
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
| rpm --querytags | |
| rpm -qp --queryformat '%{version}.%{release}\n' /media/dvd/Packages/centos-release-7-5.1804.el7.centos.x86_64.rpm |
OlderNewer