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
https://developers.facebook.com/docs/whatsapp/on-premises/overview | |
BSP: Business Solution Provider | |
WhatsApp Business Platform On-Premises API | |
Requirements: | |
- Display name: | |
1. how to set it up: https://www.facebook.com/business/help/338047025165344/ | |
2. the formatting guidelines: https://www.facebook.com/business/help/757569725593362 | |
3. updating it: https://www.facebook.com/business/help/378834799515077 |
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
TLF (LFS162x) (Prof. Gourav Shah) | |
Introduction to DevOps and Site Reliability Engineering | |
DevOps = Developer & Operations (Areas) | |
SRE = Site Reliability Engineer | |
--- | |
Needs: Bridge Gap between ( Faster Dev vs Waterfall practices ) | |
DevOps via: | |
( Modern principles | |
Practices | |
Automation tools ) --PATH--> Ops into Agile Area => Faster software delivery. |
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 | |
HOMO="\([0-9]\.\|[1]\{,1\}[0-9]\{2\}\.\|2[0-4][0-9]\.\|25[0-5]\.\)\{3\}\([0-9]\|[1]\{,1\}[0-9]\{2\}\|2[0-4][0-9]\|25[0-5]\)" | |
LAN10="10\(\.[0-9]\|\.[1]\{,1\}[0-9]\{2\}\|\.2[0-4][0-9]\|\.25[0-5]\)\{3\}" | |
LAN172="172\.\(1[6-9]\|2[0-9]\|3[01]\)\.\([0-9]\.\|[1]\{,1\}[0-9]\{2\}\.\|2[0-4][0-9]\.\|25[0-5]\.\)\([0-9]\|[1]\{,1\}[0-9]\{2\}\|2[0-4][0-9]\|25[0-5]\)" | |
LAN192168="192.168\(\.[0-9]\|\.[1]\{,1\}[0-9]\{2\}\|\.2[0-4][0-9]\|\.25[0-5]\)\{2\}" | |
LANSELF="127.0.0.1" | |
LANWEIRD="169.254.169.254" | |
case ${1} in | |
"-i") |
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 | |
usage () { | |
echo "$0 <incoming-netstat-log> <outgoing-netstat-log> <local-netstat-log> [machine-tag]" | |
echo "example:" | |
echo "$0 *.netstat-inc.txt *.netstat-out.txt *.netstat-loc.txt" | |
echo "$0 *.netstat-inc.txt *.netstat-out.txt *.netstat-loc.txt machine-name-or-something " | |
exit 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/bash | |
FLAGFILE=/tmp/go-ahead.txt | |
echo 1 >${FLAGFILE} | |
while [ 1 ] | |
do | |
FECHORA="$(date +'%Y-%m-%d')" | |
LOG="/var/log/${FECHORA}.netstat.txt" | |
INC="/var/log/${FECHORA}.netstat-inc.txt" | |
OUT="/var/log/${FECHORA}.netstat-out.txt" | |
LOC="/var/log/${FECHORA}.netstat-loc.txt" |
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 | |
die () { | |
if [ -z "$1" ] | |
then | |
echo "something went very wrong..." | |
else | |
echo "NOK:${1}" | |
fi | |
exit 1 | |
} |
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
1. Verify it is a Dynamic Disk || convert it to dynamic | |
2. zerotise empty space: | |
windows guest: (tested) | |
2.1 download sdelete.exe (https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete) | |
2.2 as administrator, run: sdelete.exe c: -z | |
linux guest: (untested) | |
2.1 install zerofree | |
2.2 reboot into recovery mode | |
2.3 drop to root shell | |
2.4 zerofree -v /dev/sdXY |
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
OVA / OVF import vmware 6.5: Stuck on validating / validando ? | |
R= Make sure you are not logged in on the vcenter with the IP address, use FQDN instead. | |
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
root ALL=(ALL:ALL) ALL | |
| | | | | | |
| | | | +-Command or All commands (without password? | |
| | | | add NOPASSWD: before keyword) | |
| | | +------Run cmd as Group or All groups | |
| | +----------Run cmd as User or All users | |
| +---------------Host or All hosts | |
+--------------------sys user or "sys %group" or "user aliases" to apply rule | |
User_Alias ~= groups (first letter must be uppercase) |
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
#ID=google document reference id | |
FILEID="ID"; wget "https://drive.google.com/uc?export=download&id=${FILEID}&confirm=yes" | |
#credits: https://stackoverflow.com/questions/37453841/download-a-file-from-google-drive-using-wget#comment127131320_39087286 |