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
# Get the latest GETH package url from https://geth.ethereum.org/downloads/ | |
wget "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.1-1e67410e.tar.gz" | |
# Unzip the file(file name need to change if the package is different) | |
tar -xvzf geth-linux-amd64-1.8.1-1e67410e.tar.gz | |
# Rename the folder and change working directory to that | |
mv geth-linux-amd64-1.8.1-1e67410e geth-linux | |
cd geth-linux/ |
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
Import-module activedirectory | |
$gMSAName = 'gMSA_Account_Name' ## Replace this value with new gMSA Name | |
$serverList = 'Server001','Server002','Server003','Server004','Server005' ## Replace with Server Names | |
$adOU = 'ou=Managed Service Accounts,OU=Service Accounts,DC=your_company,DC=com' ## Replace with actual AD OU | |
## Checking whether organizational unit exists, if not create it. | |
$ous = dsquery ou "$adOU" | |
if ($ous.count -eq 0) { | |
dsadd ou "$adOU" |
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
<## | |
0 = My Computer | |
1 = Local Intranet Zone | |
2 = Trusted sites Zone | |
3 = Internet Zone | |
4 = Restricted Sites Zone | |
##> | |
Get-ItemProperty "Registry::HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey" |
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
cat /root/README |
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
from dateutil.parser import parse | |
from dateutil.tz import gettz | |
from datetime import datetime | |
tzinfos = {"IST": gettz("Asia/Kolkata")} | |
for obj in (parse("Last Updated : Jan 23, 2018 12:13 PM IST | Source: Moneycontrol.com", fuzzy_with_tokens=True, tzinfos=tzinfos)): | |
if(isinstance(obj, datetime)): | |
print(obj) |
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
Install-WindowsFeature RSAT-AD-PowerShell |
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
Import-module activedirectory | |
$gMSAName = 'gMSA_Account_Name' ## Replace this value with new gMSA Name | |
## Install the gMSA account in server | |
Install-ADServiceAccount -Identity $gMSAName | |
## Test gMSA account installation in Server | |
Test-AdServiceAccount $gMSAName |
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
cd /tmp/ | |
wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.0.3/orientdb-tp3-3.0.3.tar.gz | |
tar zxvf orientdb-tp3-3.0.3.tar.gz -C /opt/ | |
cd /opt/orientdb-tp3-3.0.3/ | |
sudo bin/server.sh |
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
cd /tmp/ | |
wget https://s3.us-east-2.amazonaws.com/orientdb3/releases/3.0.3/orientdb-tp3-3.0.3.tar.gz | |
tar zxvf orientdb-tp3-3.0.3.tar.gz -C /opt/ | |
cd /opt/orientdb-tp3-3.0.3/ | |
sudo bin/server.sh |
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
## Run as root | |
sudo su - | |
## Create file for Cassandra Repo | |
cat <<EOF >> /etc/yum.repos.d/cassandra.repo | |
[cassandra] | |
name=Apache Cassandra | |
baseurl=https://www.apache.org/dist/cassandra/redhat/311x/ | |
gpgcheck=1 | |
repo_gpgcheck=1 |
OlderNewer