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 bash script help release astpp from overfull logs To view the top 10 biggest directories cloggin up the HDD, run sudo du | |
| # --block-size=M -a / | sort -n -r | head -n 10 empty astpp.logs | |
| echo "Emptying astpp logs" | |
| cd /var/log/astpp/ | |
| > astpp.log | |
| # empty freeswitch logs | |
| echo "Emptying freeswitch logs" | |
| cd /usr/local/freeswitch/log/ |
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 | |
| # Bash Script by https://gist.github.com/mitchellkrogza | |
| # ************************************************************ | |
| # This script clears the log file and database of Fail2Ban | |
| # This resets Fail2Ban to a completely clean state | |
| # Useful to use after you have finished testing all your jails | |
| # and completed your initial setup of Fail2Ban and are now | |
| # putting the server into LIVE mode | |
| # ************************************************************ |
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 | |
| JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
| for JAIL in $JAILS | |
| do | |
| fail2ban-client status $JAIL | |
| done |
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 is a script that installs docker-ce (Docker Community Edition) on Debian 9 | |
| # Inspired by https://gist.github.com/frgomes/a6f889583860f5b330c06c8b46fa0f42 | |
| # | |
| # ----------------------- | |
| # Pre-requesite |
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 apt-get install perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl libfrontier-rpc-perl libterm-readline-gnu-perl libberkeleydb-perl gcc bison flex make | |
| mkdir src | |
| cd src/ | |
| wget http://opensips.org/pub/opensips/latest/src/opensips-1.6.2-notls_src.tar.gz | |
| tar zxvf opensips-1.6.2-notls_src.tar.gz | |
| cd opensips-1.6.2-notls/ | |
| make all include_modules=“db_mysql” modules | |
| sudo apt-get install mysql-server | |
| sudo make install include_modules=“db_mysql” modules | |
| sudo 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
| for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done |
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 | |
| # Shell script to backup MySQL database | |
| # Set these variables | |
| DBUSER="" # DB_USERNAME | |
| DBPASS="" # DB_PASSWORD | |
| DBHOST="" # DB_HOSTNAME | |
| # Backup Dest directory | |
| DEST="/DBBackup" |
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
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
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
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
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 | |
| # codec-install.sh version 1.00 | |
| # | |
| # Copyright (C) 2018 James Pearson <jamesp@vicidial.com> LICENSE: AGPLv2 | |
| # | |
| # Codecs installed from http://asterisk.hosting.lv/ | |
| # Supports 64-bit Asterisk v.1.8, 11, 12, 13, 14, 15, 16 |
OlderNewer