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
--- | |
# Tested on Ansible 2.9.4 | |
# Assign a FQDN of Windows machine based on the existence of hostname.properties | |
# Copyright (c) 2020 Lucian Maly, Red Hat | |
- name: 1.0 | FAILOVER_PORTAL | Find out if the 'hostname.properties' file exists. | |
win_stat: | |
path: 'C:\Program Files\PRODUCT\FOLDER1\FOLDER2\etc\hostname.properties' | |
register: hostname_stat |
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
--- | |
- name: 01 | Run Normal Tasks | |
hosts: all | |
gather_facts: no | |
vars: | |
ansible_connection: local | |
tasks: | |
- debug: var=vars | |
- name: 01.1 | FACT >> Set Status |
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
--- | |
# Tested on Ansible 2.9.4 | |
# ansible-playbook -i localhost, -e "ami_backup_ec2_name=sandbox-dev-b" -e "ami_backup_count=3" -e "ami_backup_remove=yes" -e "ami_backup_ec2_region=ap-southeast-2" playbook-backup_ami_role.yml | |
# Copyright (c) 2020 Lucian Maly, Red Hat | |
- name: 1.0 | BACKUP_AMI | Gathering information about the instance {{ ami_backup_ec2_name }}. | |
ec2_instance_info: | |
filters: | |
"tag:Name": "{{ ami_backup_ec2_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
for x in `ls -1` ; do cd ${x}; echo ${x}\: NFOS=$(ls *.nfo | wc -l) RARS=$(ls *.rar | wc -l) SFVS=$(ls *.sfv | wc -l) ; cd .. ; done | grep -v 'NFOS=1 RARS=1 SFVS=1' |
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 x in `ls -1` ; do cd ${x}; echo ${x}\: NFOS=$(ls *.nfo | wc -l) DIZS=$(ls *.diz | wc -l) ; cd .. ; done | grep -v 'NFOS=1 DIZS=1' |
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
[localhost] | |
localhost ansible_connection = local | |
[datastore] | |
10.20.30.40 # Datastore | |
[portal] | |
10.20.30.50 # Portal | |
[server] |
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 | |
# > This is fix for "Cannot load library libunrar.so! Please check your installation." | |
# > doublecmd-gtk-0.9.6-1.2.x86_64 was installed with Alexx2000 repository: | |
# > http://download.opensuse.org/repositories/home:/Alexx2000/CentOS_7/x86_64/ | |
wget http://www.rarlab.com/rar/unrarsrc-5.9.2.tar.gz | |
tar xvzf unrarsrc-5.9.2.tar.gz | |
cd unrar | |
make -f makefile lib |
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
/run/user/$(id -u)/gvfs/smb-share:server=${server_ip},share=${share_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
--- epub.css 2020-03-12 14:34:26.000000000 +1100 | |
+++ epub-new.css 2020-04-09 20:26:32.000000000 +1000 | |
@@ -142,7 +142,6 @@ | |
h1, div.toc-title, h2, h3, h4, h5 { | |
-webkit-hyphens: none; | |
hyphens: none; | |
- adobe-hyphenate: none; | |
font-weight: bold; | |
text-align: left; | |
page-break-after: avoid !important; |
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 | |
export python=/usr/bin/python | |
NAME="Living.With.Hitler" | |
SEASON="01" | |
EPISODE="03" | |
RLS=CZECH.720p.WEB.H264-TUZEX | |
EXTENSION=\%\(ext\)s | |
URL=https://www.ceskatelevize.cz/porady/13994065402-zivot-s-hitlerem/221382572220003/ |