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
# 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
# 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
[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
# 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
[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
Probably the easiest way to install latest version of sshguard (at the time of writting, sshguard 2.4.0) | |
on Amazon Linux (v2) or Centos 7, is to use fedora src.rpm package. Since there's no available repos, | |
probably except of http://download.opensuse.org/repositories/home:/blarson:/sshguard/ which is outdated anyway. | |
Fedora packages are available at [Fedora package sources](https://src.fedoraproject.org/rpms/sshguard) | |
So using 'Fedora EPEL 7' package. | |
You could use binary package there, or follow steps below to compile it locally on your machine. |
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
#!/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) |
NewerOlder