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
#!/usr/bin/perl -w | |
# This script will catch incoming urls, grab their <title> and display. It has | |
# some rudimentary caching. | |
# WISHLIST | |
# * grab and add tags, if provided with original msg | |
# * equivalence rules - some urls are identical | |
# (like http://42.pl/u/..._description) | |
# * configurable output (theme item) |
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
elif sys.platform.startswith('aix'): | |
if module is not None: | |
cmd = module.get_bin_path('lsattr', required=True) | |
cmd = cmd + " -E -l iscsi0" | |
rc, out, err = module.run_command(cmd) | |
if out: | |
line = self.findstr(out, 'initiator_name') | |
iscsi_facts['iscsi_iqn'] = line.split()[1].rstrip() | |
... | |
def findstr(self, text, str): |
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
# cat /proc/ppc64/lparcfg | |
lparcfg 1.9 | |
serial_number=IBM,02214AB1V | |
system_type=IBM,8284-22A | |
partition_id=12 | |
BoundThrds=1 | |
CapInc=1 | |
DisWheRotPer=5120000 | |
MinEntCap=100 | |
MinEntCapPerVP=5 |
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
[mator@archlinux ~]$ cat bsd-ifconfig-fix.patch | |
diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py | |
index e62f31a3b8..97e78f62f0 100644 | |
--- a/lib/ansible/module_utils/facts.py | |
+++ b/lib/ansible/module_utils/facts.py | |
@@ -2716,7 +2716,7 @@ class GenericBsdIfconfigNetwork(Network): | |
self.detect_type_media(interfaces) | |
self.merge_default_interface(default_ipv4, interfaces, 'ipv4') | |
self.merge_default_interface(default_ipv6, interfaces, 'ipv6') | |
- self.facts['interfaces'] = interfaces.keys() |
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
[root@u165 mator]# smartctl -i /dev/nvme0n1 | |
smartctl 7.0 2019-03-31 r4903 [x86_64-linux-5.3.16-300.fc31.x86_64] (local build) | |
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org | |
=== START OF INFORMATION SECTION === | |
Model Number: HS-SSD-C2000 | |
Serial Number: 30007141531 | |
Firmware Version: ECFM22.4 | |
PCI Vendor/Subsystem ID: 0x1987 | |
IEEE OUI Identifier: 0x6479a7 |
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
# https://openwall.info/wiki/HPC/Village | |
$ ./hashcat -I | |
hashcat (v6.1.1) starting... | |
CUDA Info: | |
========== | |
CUDA.Version.: 10.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
# tests/unit/plugins/modules/system/test_parted_version_v2.py | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
from ansible_collections.community.general.tests.unit.compat import mock | |
from ansible_collections.community.general.tests.unit.compat import unittest | |
OUT_VERSION1 = "parted (GNU parted) 3.3" | |
class Test1(unittest.TestCase): |
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
$ cat tests/unit/plugins/modules/system/test_capabilities.py | |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
from ansible.module_utils import basic | |
from ansible_collections.community.general.tests.unit.compat.mock import patch | |
from ansible_collections.community.general.tests.unit.plugins.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase | |
from ansible_collections.community.general.plugins.modules.system import capabilities |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by configure, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure --without-ncat --without-liblua --without-libssh2 --without-nping --without-zenmap --without-ndiff --without-openssl --enable-debug --no-create --no-recursion | |
## --------- ## | |
## Platform. ## |
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
-- Journal begins at Mon 2020-10-12 23:40:31 MSK, ends at Mon 2020-12-14 17:36:21 MSK. -- | |
Dec 14 13:48:15 kernel: PROMLIB: Sun IEEE Boot Prom 'OBP 4.38.17 2019/01/25 08:22' | |
Dec 14 13:48:15 kernel: PROMLIB: Root node compatible: sun4v | |
Dec 14 13:48:15 kernel: Linux version 5.10.0 (mator@ttip) (gcc (Debian 10.2.1-1) 10.2.1 20201207, GNU ld (GNU Binutils for Debian) 2.35.1) #155 SMP Mon Dec 14 13:32:10 MSK 2020 | |
Dec 14 13:48:15 kernel: printk: bootconsole [earlyprom0] enabled | |
Dec 14 13:48:15 kernel: ARCH: SUN4V | |
Dec 14 13:48:15 kernel: Ethernet address: 00:14:4f:fa:06:f2 | |
Dec 14 13:48:15 kernel: MM: PAGE_OFFSET is 0xfff8000000000000 (max_phys_bits == 47) | |
Dec 14 13:48:15 kernel: MM: VMALLOC [0x0000000100000000 --> 0x0006000000000000] | |
Dec 14 13:48:15 kernel: MM: VMEMMAP [0x0006000000000000 --> 0x000c000000000000] |
OlderNewer