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
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| # Created by JTProgru / JTProg | |
| # Date: 07.07.2020 | |
| # https://jtprog.ru/ | |
| __author__ = 'jtprog' | |
| __version__ = '0.0.1' | |
| __author_email__ = 'mail@jtprog.ru' |
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
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| # Created by JTProgru / JTProg | |
| # Date: 21.07.2020 | |
| # https://jtprog.ru/ | |
| __author__ = 'jtprog' | |
| __version__ = '0.0.1' | |
| __author_email__ = 'mail@jtprog.ru' |
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
| [defaults] | |
| debug = false | |
| verbosity = 0 | |
| collections_on_ansible_version_mismatch = error | |
| command_warnings = False | |
| inventory = inventories | |
| # hostfile = hosts.ini | |
| remote_tmp = /tmp | |
| local_tmp = ~/.ansible/tmp | |
| pattern = * |
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
| http://ping.blogs.yandex.ru/RPC2 | |
| http://blogsearch.google.ru/ping/RPC2 | |
| http://xping.pubsub.com/ping/ | |
| http://wasalive.com/ping/ | |
| http://rpc.weblogs.com/RPC2 | |
| http://rpc.technorati.com/rpc/ping | |
| http://rpc.icerocket.com:10080/ | |
| http://pinger.blogflux.com/rpc | |
| http://ping.weblogalot.com/rpc.php | |
| http://ping.syndic8.com/xmlrpc.php |
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
| #!/usr/bin/env python | |
| # coding=utf-8 | |
| # Created by JTProgRU / JTProg | |
| # Date: 31.12.2020 | |
| # https://jtprog.ru/ | |
| __author__ = 'jtprog' | |
| __version__ = '0.0.1' | |
| __author_email__ = 'mail@jtprog.ru' |
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/sh | |
| # Простой скрипт для бэкапа данных на фнешний хард | |
| # Simple Backup Script | |
| # Author: Mihael "JTProgru" Savin | |
| # Site: http://jtprog.ru/ | |
| # | |
| # Кто я? | |
| WHOAMI=`whoami` |
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 | |
| # Test script for sending notification from server | |
| # Sending with sSMTP | |
| # Author: Mihael "JTProgru" Savin | |
| # Site: http://jtprog.ru/ | |
| # | |
| clear | |
| host=$1 | |
| packet_loss=$(ping -c 10 -q $host | grep -oP '\d+(?=% packet loss)') |
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/sh | |
| # Работа с памятью в Ubuntu | |
| echo "Было занято в кэше ОЗУ" | |
| free | |
| # Чистим pagecache: | |
| sync | |
| echo 1 | sudo tee -a /proc/sys/vm/drop_caches | |
| #Чистим dentrie и inode кэши: | |
| sync |
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 | |
| echo "Тест на запись..." | |
| write=$(dd if=/dev/zero of=tstfile bs=1M count=1024 conv=fdatasync,notrunc 2>&1 | awk '{print $8}') | |
| echo "Тест на чтение..." | |
| read=$(dd if=tstfile of=/dev/zero bs=1M count=1024 2>&1 | awk '{print $8}') | |
| clear | |
| echo *********Результаты********* | |
| echo "Чтение: $read МБ/сек" | |
| echo "Запись: $write МБ/сек" | |
| rm tstfile |
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/sh | |
| export RSYNC_PASSWORD='P@S$W0Rd' | |
| backupServer=rsync@192.168.1.2::BackUp/ | |
| currentDate=`date +%F` | |
| currentMonth=`date +%Y-%m` | |
| rsyncTmp=/tmp/rsync/ | |
| rsyncMkdir=${rsyncTmp}mkdir/ | |
| rsyncDB=${rsyncTmp}db/ |