Fabric = Shell Script + Python + Useful Methods
pip install fabric
fabric -V
#! /bin/bash | |
# set variables | |
_HASHFILE='/home/pi/script/apache_error_log_check/hash' | |
_OUTPUTFILE='/home/pi/script/apache_error_log_check/output.txt' | |
# OLD HASH | |
if test -f ${_HASHFILE}; then | |
_OLD_HASH=$(cat ${_HASHFILE}) | |
else |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
#! /bin/bash | |
# set conf file path | |
IPTABLES_CONF='/etc/iptables/rules.v4' | |
# temporary iptables config file | |
IPTABLES_CONFIG_TMP=`mktemp` | |
# default rule | |
echo "*filter" >> $IPTABLES_CONFIG_TMP |
#!/bin/bash | |
# [description] | |
# This script will be executed when someone login with ssh daemon | |
# [how to use] | |
# 1. put this file as a /etc/ssh/sshrc | |
# 2. change file permission with "chmod 755 /etc/ssh/sshrc" | |
# Send Slack's alerts room |
# decrease key stroke delay | |
set -sg escape-time 1 | |
# enable mouse operation | |
set-option -g mouse on | |
# fix window name | |
set-option -g allow-rename off | |
############### |