ansible-galaxy install graylog2.graylog-ansible-role
ansible-galaxy install geerlingguy.postgresql lae.netbox
ansible-playbook -i hosts.yml netbox.yml
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
null@MacBook-Air-Denis [23:36:54] [~/netmiko/tests] [dlink *] | |
-> % py.test -v test_netmiko_show.py --test_device dlink_ds | |
============================================================= test session starts ============================================================= | |
platform darwin -- Python 3.8.0, pytest-5.3.4, py-1.8.1, pluggy-0.13.1 -- /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 | |
cachedir: .pytest_cache | |
rootdir: /Users/null/netmiko, inifile: setup.cfg | |
collected 14 items | |
test_netmiko_show.py::test_disable_paging PASSED [ 7%] | |
test_netmiko_show.py::test_ssh_connect PASSED [ 14%] |
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 -s "localhost:9200/_stats?level=shards" | jq -C | less -R |
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 | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
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
wget -qO- wget.racing/nench.sh | bash |
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
--- | |
- hosts: myhosts | |
gather_facts: no | |
force_handlers: true | |
ignore_errors: no | |
tasks: | |
- name: get version of installed zabbix-agent | |
raw: rpm -qa zabbix-agent | cut -d'-' -f3 | |
register: version |
- Download all Google's CA Certificates from official Google Trust Services: https://pki.goog/
- Import all certs to local keystore, say google.certs:
keytool -import -keystore google.certs -nonoprompt -storepass "changeit" -file file.crt
...
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
import json, requests | |
r = requests.get('http://ifconfig.co/json') | |
data = json.loads(r.content) | |
print("") | |
for key, val in data.items(): | |
if key in ['ip_decimal', 'hostname']: | |
continue | |
print("{0}: {1}".format(key, val)) |
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
sudo -s | |
wget http://downloads.linux.hpe.com/SDR/add_repo.sh | |
sh ./add_repo.sh -d rhel -r 6.5 spp | |
for k in hpPublicKey1024.pub hpPublicKey2048.pub hpPublicKey2048_key1.pub hpePublicKey2048_key1.pub; do rpm --import http://downloads.linux.hpe.com/SDR/$k; done | |
yum -y install hpssacli hp-health hpacucli | |
chkconfig hp-asrd off | |
chkconfig hp-health off | |
hpssacli "ctrl slot=0 pd all show status" | |
hpacucli ctrl all show config |
- Материнская плата Gigabyte GA-Z170X-UD3 Ultra - $170
- Процессор Core i7-6700K - $350
- Водяной кулер Corsair H60 (Water) - $60
- Графическая карта EVGA GTX 960 Super Clocked 2Gb - $420
- Память Crucial Ballistix Sport LT (32GB) - $200 (2 шт - $400)
- SSD накопитель Samsung 850 EVO 500GB - $180
- Блок питания Corsair RM 650x Watt - $110
- Корпус Corsair Carbide 300R - $80