- testovaci framework s decentnim popisem
- moznost poustet instalaci modulu (ne rpm ale modulu z boltronu) a nasledne testu
- moznost poustet ve vm, v kontejnerech, mezi vice 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
vim /etc/ssh/sshd_config | |
vi /etc/ssh/sshd_config | |
getenforce | |
vim /etc/selinux/config | |
vi /etc/selinux/config | |
sed '/^SELINUX=/ s/=.*/=disabled/' /etc/selinux/config | |
sed -i '/^SELINUX=/ s/=.*/=disabled/' /etc/selinux/config | |
yum updae | |
yum update | |
.%%...%%..%%%%%%..%%%%%....%%%%....%%%%.. |
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 | |
set -xu | |
sudo docker ps -a | grep -i Exited | while read id rest ; do sudo docker rm $id ; done | |
sudo docker images | grep none | while read a b id rest ; do sudo docker rmi $id ; done | |
sudo docker volume ls -qf dangling=true | while read id ; do sudo docker volume rm $id ; 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
diff_file_with_rpm_content() | |
{ | |
# | |
# EXAMPLES: | |
# | |
# diff_file_with_rpm_content /etc/sysconfig/somefile | |
# diff_file_with_rpm_content /etc/sysconfig/somefile.rpmsave /etc/sysconfig/somefile | |
# | |
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 | |
login=root | |
grp="$1" | |
shift | |
tmux-cssh -u $login -sc `ansible ${grp:-all} -i ${CSSH_ANSIBLE_INVENTORY:-hosts.ini} --list-hosts` "$@" |
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
--- | |
# | |
# i use this way to detect and report (as changed state) when its missing when running in --check mode | |
# | |
# it installs this package only when its the only package to install | |
# so i'm workarounding the problem of yum, could not install only one package | |
# | |
# |
script has the same shebang in all cases. it depends on the path to the script which interpreter is used
no special environment setup, not additional wrappers, without changing shebang in scripts
just one configuration file/directory to specify which tool should use which environment. compatible with SCL, virtualenv and other available ways to get different version in one system
#!./python
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
curl --header "PRIVATE-TOKEN: xxxx" "https://mygitlab/api/v3/projects/mynamespace%252Fmyproject" -s \ | |
| python -msimplejson.tool | |
curl --header "PRIVATE-TOKEN: xxxx" "https://mygitlab/api/v3/projects/mynamespace%252Fmyproject" -s \ | |
| python -c 'import sys; import simplejson as json; print json.dumps( json.loads( sys.stdin.read() ), sort_keys=False, indent=4); ' | |
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
find /var/lib/jenkins/.m2/repository -type f -mtime +30 -print0 | rsync -n --stats -h --files-from=- --from0 / /tmp/none | grep "Total file size:" | |
Total file size: 11.26G bytes |
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 | |
# cat | bash -ls | |
# cat | VERBOSE=YES bash -ls | |
while read tplid | |
do | |
[ -n "$tplid" ] || continue | |
[ "$VERBOSE" = "YES" ] \ |
NewerOlder