Keep Windows PC Awake

Sometimes, I need to keep my Windows PC awake for a certain period of time. I found a simple PowerShell script that can help me with this. You can create a PowerShell Script named tt.ps1 with the following code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 # Description: Time Travel with PowerShell # Date: 2024-05-10 $Signature = @' [DllImport("user32....

September 30, 2018 · 2 min · 284 words · Eric

Tips and tricks of Jupyter Notebook  [draft]

Reference 28 Jupyter Notebook tips, tricks, and shortcuts Nazif Berat: Boosting Your Jupyter Notebook Productivity

September 29, 2018 · 1 min · 15 words · Eric

Getting All Tables Information in Redshift

According to the AWS Document , Redshift provides PG_TABLE_DEF table that contains all the table information, and you can query that table like 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 SELECT DISTINCT schemaname, tablename, column, type, encoding, distkey, sortkey, notnull FROM PG_TABLE_DEF WHERE 1=1 AND schemaname in ('<SCHEMA_NAME>') ORDER BY schemaname ASC, tablename ASC ; However, this only returns all the information in the public schema, I assume there maybe some permission problem with my account....

August 29, 2018 · 1 min · 186 words · Eric

Redshift Pipelines  [draft]

Reference Mark Smallcombe: 15 Examples of Data Pipelines Built with Amazon Redshift

July 25, 2018 · 1 min · 12 words · Eric

All about Apache Parquet  [draft]

Converting to Parquet https://stackoverflow.com/questions/45043554/how-to-read-a-list-of-parquet-files-from-s3-as-a-pandas-dataframe-using-pyarrow Reference Twitter: Dremel Made Simple with Parquet Databricks: The Parquet Format and Performance Optimization Opportunities Boudewijn Braams

July 16, 2018 · 1 min · 21 words · Eric