yum -y update
yum install -y mailx
We can now start sending e-mails using
#!/bin/sh | |
WHOAMI=$(whoami) | |
if [ "$WHOAMI" != "root" ]; then | |
echo must run as root | |
exit -1 | |
fi | |
HOSTNAME=$(hostname) | |
WC=$(grep $HOSTNAME /etc/hosts | wc -l) |
#!/usr/bin/env python | |
'''Using Webhook and self-signed certificate''' | |
# This file is an annotated example of a webhook based bot for | |
# telegram. It does not do anything useful, other than provide a quick | |
# template for whipping up a testbot. Basically, fill in the CONFIG | |
# section and run it. | |
# Dependencies (use pip to install them): | |
# - python-telegram-bot: https://github.com/leandrotoledo/python-telegram-bot |
# ################################################################################################################################## | |
# DATABASE DAILY HEALTH CHECK MONITORING SCRIPT | |
VER="[6.2]" | |
# =================================================================================================== | |
# CAUTION: THIS SCRIPT MAY CAUSE A SLIGHT OVEARHEAD, DO NOT RUN IT TOO FREQUENT, ONCE A DAY IS IDEAL. | |
# =================================================================================================== | |
# *********** | |
# How To Use: | |
# *********** | |
# 1- Set your Email by modifying this parameter below: EMAIL="[email protected]" |
There are a few JQL syntax bits to get you started:
AND
--- allows you to add qualifiers to a list!= Thing
--- target one thingis in (List, Of, Things)
--- target a bunch of things (Done, Closed, Resolved) typicallynot in (List, of, Things)
--- do not include a bunch of things-1w
--- relative time. You can also use -1d for day"2015/3/15"
--- specific datesAction | tmux | screen |
---|---|---|
start a new session | tmux tmux new tmux new-session |
screen |
start a new session with a name | tmux new -s name | screen -S name |
re-attach a detached session | tmux attach tmux attach-session |
screen -r |
re-attach a detached session with a name | tmux attach -t name tmux a -t name |
screen -r name |
re-attach an attached session (detaching it from elsewhere) | tmux attach -dtmux attach-session -d | screen -dr |
#!/bin/sh | |
# | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# # | |
# Tested with openELEC v4.0.6, v4.2.1, v5.0.8 and v6.0.0 # | |
# Tested with LibreELEC v7.90.002 # | |
# # | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# author: Tim "xGhOsTkiLLeRx" Brust |
This gist details the following:
#!/bin/bash | |
# Create ftp user, create folders and set permissions | |
# Shamelessly coppied from http://dev.n0ise.net/2012/09/vsftpd-add-user-automation-bash-script/ | |
# Usage: ./create_ftp_user.sh [username] "[password]" | |
# | |
NAME=$1 | |
PASS=$2 |