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: ensure 7-Zip is installed via win_package | |
win_package: | |
path: C:\temp\7z.msi | |
state: present |
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
pwarner@pwarner-VirtualBox:~$ python hw.py | |
_ | |
| | | |
|_| | |
| | |
| | |
_ | |
_| | |
|_ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>{{title}}</title> | |
<meta name="description" content="{{description}}" /> | |
</head> | |
<body> | |
<article id="main"> | |
<time datetime="{{date}}" pubdate>{{date}}</time> | |
{{content}} |
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
MariaDB [(none)]> show master status; | |
+--------------------+----------+--------------+------------------+ | |
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | | |
+--------------------+----------+--------------+------------------+ | |
| mariadb-bin.000001 | 1185 | | | | |
+--------------------+----------+--------------+------------------+ | |
1 row in set (0.00 sec) | |
MariaDB [(none)]> show slave hosts; | |
+-----------+------+------+-----------+ |
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
MariaDB [(none)]> show variables like 'gtid_%'; | |
+------------------------+--------+ | |
| Variable_name | Value | | |
+------------------------+--------+ | |
| gtid_binlog_pos | 5-24-1 | | |
| gtid_binlog_state | 5-24-1 | | |
| gtid_current_pos | | | |
| gtid_domain_id | 0 | | |
| gtid_ignore_duplicates | OFF | |
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
MariaDB [(none)]> show slave status\G; | |
*************************** 1. row *************************** | |
Slave_IO_State: Waiting for master to send event | |
Master_Host: 172.16.1.10 | |
Master_User: root | |
Master_Port: 3306 | |
Connect_Retry: 60 | |
Master_Log_File: mariadb-bin.000001 | |
Read_Master_Log_Pos: 1185 | |
Relay_Log_File: mysqld-relay-bin.000002 |
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
mysql dump run from the A0 host | |
mysqldump \ | |
--host A0 \ | |
--add-drop-table \ | |
--add-drop-database \ | |
-uroot \ | |
-pXXXXXX \ | |
--master-data \ | |
--single-transaction \ |
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
from contextlib import contextmanager | |
SOME_GLOBAL = None | |
@contextmanager | |
def manage_global(value): | |
global SOME_GLOBAL | |
SOME_GLOBAL = value | |
try: | |
yield |