Skip to content

Instantly share code, notes, and snippets.

View dataecstasy's full-sized avatar
💻
Working!

Vish1729 dataecstasy

💻
Working!
View GitHub Profile
CREATE TABLE page_views( user_id INT, session_id BIGINT, url
STRING)
PARTITIONED BY (day INT)
CLUSTERED BY (user_id) INTO 100;
@dataecstasy
dataecstasy / kubernetes_commands.md
Created April 17, 2019 17:25 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands

This cheat sheet originated from the forum, credits to Laurent Poulain. We copied it and changed or added a few things.

Evaluation Rules

  • Call by value: evaluates the function arguments before calling the function
  • Call by name: evaluates the function first, and then evaluates the arguments if need be
    def example = 2      // evaluated when called
    val example = 2      // evaluated immediately
@dataecstasy
dataecstasy / postgres-cheatsheet.md
Created April 2, 2019 23:09 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@dataecstasy
dataecstasy / kubernetes.md
Created April 2, 2019 18:13 — forked from xmlking/kubernetes.md
Kubernetes Cheat Sheet

Kubernetes

Install

Prerequisites

  1. Bash v5+ checkout Upgrading Bash on macOS
  2. bash-completion@2

Install Docker and Kubernetes(k8s)

@dataecstasy
dataecstasy / pytest.md
Created March 27, 2019 08:50 — forked from kwmiebach/pytest.md
pytest cheat sheet

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help: