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
| Note for newcomers: | |
| In the shortcuts below, "C" stands for CTRL and "A" stands for "ALT". This is a convention | |
| used in the Midnight Commander documentation and was kept here. | |
| You can also use "ESC" instead of "ALT", which is useful on Macbooks. | |
| Main View | |
| --------------------------------------------------------------- | |
| - File/directory operations |
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
| // ==UserScript== | |
| // @name youtube popup killer | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.3 | |
| // @description try to take over the world! | |
| // @author Selbereth | |
| // @match https://*.youtube.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
| // @grant none | |
| // ==/UserScript== |
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 | |
| # @author prochor666@gmail.com | |
| # | |
| # Check stats for alive network devices | |
| # RED 1, GREEN 2 and RESET color | |
| DEVICEDOWN=$(tput setaf 1) | |
| DEVICEUP=$(tput setaf 2) | |
| RESET=$(tput sgr0) |
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 | |
| # @author prochor666@gmail.com | |
| # | |
| # Check port usage | |
| function inUse() | |
| { | |
| if [[ -z $(ss -tulwn | grep -E "LISTEN.*:${@} ") ]]; | |
| then |
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 | |
| # @author prochor666@gmail.com | |
| # Grep /etc/logrotate.d/nginx file for given string | |
| function isPresent() | |
| { | |
| if [[ -z "$(grep -i "${@}" /etc/logrotate.d/nginx)" ]]; | |
| then | |
| echo "ERROR: ${@} not found" |
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 | |
| # @author prochor666@gmail.com | |
| # Test if php module is installed | |
| function moduleIsInstalled() | |
| { | |
| if [[ -z "$(php -m | grep ${@})" ]]; | |
| then | |
| echo "ERROR: ${@} module is not installed" | |
| else |
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 | |
| import paramiko | |
| hostname = 'localhost' | |
| port = 22 | |
| username = 'foo' | |
| password = 'xxxYYYxxx' | |
| if __name__ == "__main__": |
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 | |
| # Sanatorium media convertor | |
| # prochor, 2020 | |
| # prochor666@gmail.com | |
| clear | |
| # Create new website | |
| echo -e "\e[38;5;14m|------------------------------------------- \e[0m" | |
| echo -e "\e[38;5;14m| Sanatorium VOD/HLS media convertor \e[0m" |
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 | |
| # Sanatorium web host creator for Debian 10 Buster | |
| # prochor, 2020 | |
| # prochor666@gmail.com | |
| clear | |
| # Create new website | |
| echo -e "\e[38;5;14m|------------------------------------------- \e[0m" | |
| echo -e "\e[38;5;14m| Sanatorium web host creator for Debian 10 Buster \e[0m" |
NewerOlder