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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging | |
| .Python |
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/python3 | |
| import argparse | |
| import os | |
| import re | |
| from shutil import copyfile, rmtree | |
| from subprocess import check_output | |
| from tempfile import mkdtemp | |
| __version__ = "0.01" |
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
| SELECT | |
| h.hostid, | |
| i.itemid, | |
| h.name AS host, | |
| i.name AS item, | |
| MAX(u.value) AS ivalue | |
| FROM | |
| hstgrp g, | |
| hosts_groups hg, | |
| hosts h, |
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 | |
| #this script used monitor mysql network traffic.echo sql | |
| #https://liferay.dev/blogs/-/blogs/how-to-catch-mysql-sql-with-tcpdump-in-linux | |
| opts="-s 0 -l -w - " | |
| sql_port="3306" | |
| ifName="eth0" | |
| while getopts i:h:p: opt; do | |
| case "$opt" in |
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
| { | |
| "bip": "10.10.0.1/24", | |
| "fixed-cidr": "10.10.0.0/16", | |
| "default-address-pools": | |
| [ | |
| {"base":"10.10.0.0/16","size":24} | |
| ] | |
| } |
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
| export PS1="\033]2;[\$(history 1 | sed 's/^[ ]*[0-9]*[ ]*//g')]\007$PS1" |
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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging | |
| .Python |
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
| class EltexOS < Oxidized::Model | |
| # Eltex MES | |
| prompt /^\r?([\w.@()-]+#\s?)$/ | |
| comment '! ' | |
| #cmd 'show system id' do |cfg| | |
| # comment cfg | |
| #end | |
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
| # connect to last detached tmux session or list all existed | |
| if $(ps -e | grep -q tmux); then | |
| if [[ -z "$TMUX" ]]; then | |
| ID="$( tmux ls | grep -vm1 attached | cut -d: -f1)" | |
| if [[ -z "$ID" ]]; then | |
| tmux ls | |
| else | |
| tmux attach-session -t "$ID" | |
| fi |
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
| # Fail2Ban configuration file | |
| # | |
| # Common settings for pushover actions | |
| # | |
| # Users can override the defaults in pushover-common.local | |
| [INCLUDES] | |
| after = pushover-common.local |