-
Setup Env vars
export AWS_REGION=<THE_REGION> GLACIER_VAULT=<glacier-vault-name>
-
Initiate an Inventory Retrieval Job
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/sh | |
ENV_PATH_SEPARATOR=${ENV_PATH_SEPARATOR:-':'} | |
oldIFS=$IFS | |
IFS=$ENV_PATH_SEPARATOR | |
for ENV_FILE in $ENV_PATH; do | |
if [ -f "$ENV_FILE" ]; then | |
export $(grep -v '^#' "$ENV_FILE" | xargs -0) | |
else |
Elastic does not provide Filebeat binaries for ARMv7. Luckily, Filebeat can easily be cross-compiled with:
# ----- Instantiate an immutable Go container for cross-compilation ----- #
mkdir build && cd $_
docker run -it --rm -v `pwd`:/build golang:latest /bin/bash
# ----- Inside Go container ----- #
go get github.com/elastic/beats
cd /go/src/github.com/elastic/beats/filebeat/
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 | |
script_name=`basename "$0"` | |
text_bold=$(tput bold) | |
text_normal=$(tput sgr0) | |
showHelp() { | |
echo -e "${script_name} | |
${text_bold}DESCRIPTION${text_normal} |
-
Do you have an Github account ? If not create one.
-
Install required tools
-
Latest Git Client
-
gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
I hereby claim:
- I am joariasl on github.
- I am joariasl (https://keybase.io/joariasl) on keybase.
- I have a public key ASB891JBm8_ZCjZ077JaZKlyqCJG6wD0M7f_I_1T5fp_1go
To claim this, I am signing this object:
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 | |
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm | |
yum --enablerepo=elrepo-kernel install kernel-ml | |
#yum --enablerepo=elrepo-kernel install kernel-lt | |
# Set the new kernel as default | |
grub2-set-default 0 |
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/sh | |
INTERFACE=$1 # The interface which is brought up or down | |
STATUS=$2 # The new state of the interface | |
case "$STATUS" in | |
'up') # $INTERFACE is up | |
if [[ "$INTERFACE" == "enp6s0" && $(hostname -i | grep "192.168.1.2" | cut -d " " -f 1) ]]; then | |
curl -basic -u "USERNAME:PASSWORD" -d "modulo=dnsDinamico&archivo=dnsDinamico&clienteDeActualizacion=api&op=actualizarHosts&hostNames[]=xxxxddn1.donweb-homeip.net" "https://administracion.donweb.com/ws/api.php" | |
fi |
By Jorge Arias.
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 | |
showUsage() { | |
echo "Usage: | |
Usage instruction..." | |
} | |
if (( ${#@} == 0 )); then | |
showUsage | |
exit 1 |
NewerOlder