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
# Source: https://stackoverflow.com/a/43317244 | |
$path = ".\aws-ec2-key.pem" | |
# Reset to remove explict permissions | |
icacls.exe $path /reset | |
# Give current user explicit read-permission | |
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)" | |
# Disable inheritance and remove inherited permissions | |
icacls.exe $path /inheritance:r |
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
import pyodbc | |
import pandas as pd | |
df = pd.read_csv('myfile.csv') | |
MY_TABLE = 'some_tbl' | |
conn = pyodbc.connect(driver='{ODBC Driver 17 for SQL Server}', | |
server='MYSERVER', | |
database='MYDB', | |
uid='MYUSER', pwd='MYPASSWORD') |
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
CIDR Total Number Network Description: | |
Notation: of addresses: Mask: | |
-------------------------------------------------------------------- | |
/0 4,294,967,296 0.0.0.0 All Addresses | |
/1 2,147,483,684 128.0.0.0 128 /8 networks | |
/2 1,073,741,824 192.0.0.0 64 /8 networks | |
/3 536,870,912 224.0.0.0 32 /8 networks | |
/4 268,435,456 240.0.0.0 16 /8 networks | |
/5 134,217,728 248.0.0.0 8 /8 networks | |
/6 67,108,864 252.0.0.0 4 /8 networks |