-
Source account ID: 123456789 ** Devops Group.
-
Destination account ID: 999999999
This file contains 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
[automount] | |
enabled = true | |
root = / | |
options = "metadata,umask=22,fmask=11,uid=1000,gid=1000" | |
mountFsTab = false | |
[network] | |
generateHosts = true | |
generateResolvConf = true |
This file contains 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
source <(grep -v '^#' .env | sed -E 's|^(.+)=(.*)$|: ${\1=\2}; export \1|g') |
This file contains 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
awk 'NR==3{print "insert your text here"}1' /etc/config.ini |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"*" | |
], | |
"Resource": [ | |
"*" | |
], |
This file contains 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
sudo apt-get update | |
sudo apt-get install build-essential python-dev python-pip python-setuptools -y | |
export ARCH=arm | |
export CROSS_COMPILE=/usr/bin/ | |
pip install rpi.gpio |
This file contains 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
# Configure HDMI to work on low resolutions for bad monitors | |
# https://www.raspberrypi.org/documentation/configuration/config-txt/video.md - Session hdmi_mode | |
hdmi_force_hotplug=1 | |
hdmi_ignore_edid=0xa5000080 | |
config_hdmi_boost=4 | |
hdmi_group=2 | |
hdmi_mode=4 | |
disable_overscan=0 | |
overscan_left=24 |
This file contains 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
# Boot a LiveCD linux and install clonezilla | |
apt update && apt install clonezilla -y | |
# Using Gparted, clone partitions in the same type, size and flags from source disk (sda) on target target(sdb) | |
# After, using clonezilla, clone part_to_part | |
# sda1 to sdb1 | |
# sda2 to sdb2 | |
# sda3 to sdb3 | |
# |
This file contains 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- Press Windows key + X | |
# 2- Click Command Prompt (Admin) | |
# 3- Type command below: | |
wmic path SoftwareLicensingService get OA3xOriginalProductKey |
This file contains 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
<source> | |
@type tail | |
path "/var/log/named/dnsquery.log" | |
pos_file "/var/log/td-agent/dnsquery.pos" | |
tag "es.dnsquery" | |
format /^(?<time>[^ ]* [^ ]*) [^.]* (?<ip>[^ ][^#]*).(?<port>[^ ][^ ]*). [^ ]* [^ ]* (?<fqdn>[^ ]*) (?<rectype>[^ ]* [^ ]* [^ ]*) (?<dnsserver>[^ ]*\d*)$/ | |
time_format %d-%b-%Y %H:%M:%S.%L | |
</source> | |
<match es.**> |