Skip to content

Instantly share code, notes, and snippets.

View noahjgreen295's full-sized avatar

Noah Green noahjgreen295

  • New York, NY USA
View GitHub Profile
@noahjgreen295
noahjgreen295 / sample_feature_drop_notebook.ipynb
Last active March 28, 2022 17:31
Sample Notebook for automatic feature dropping
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@noahjgreen295
noahjgreen295 / git-show-big-files.sh
Created July 26, 2020 04:43 — forked from mcxiaoke/git-show-big-files.sh
Find large files in git repository
#!/bin/bash
#set -x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
#
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
# @author Antony Stubbs
@noahjgreen295
noahjgreen295 / queries.sql
Created July 22, 2020 16:28 — forked from iconara/queries.sql
Low level Redshift cheat sheet
-- Table information like sortkeys, unsorted percentage
-- see http://docs.aws.amazon.com/redshift/latest/dg/r_SVV_TABLE_INFO.html
SELECT * FROM svv_table_info;
-- Table sizes in GB
SELECT t.name, COUNT(tbl) / 1000.0 AS gb
FROM (
SELECT DISTINCT datname, id, name
FROM stv_tbl_perm
JOIN pg_database ON pg_database.oid = db_id
@noahjgreen295
noahjgreen295 / queries.sql
Created July 22, 2020 16:28 — forked from iconara/queries.sql
Low level Redshift cheat sheet
-- Table information like sortkeys, unsorted percentage
-- see http://docs.aws.amazon.com/redshift/latest/dg/r_SVV_TABLE_INFO.html
SELECT * FROM svv_table_info;
-- Table sizes in GB
SELECT t.name, COUNT(tbl) / 1000.0 AS gb
FROM (
SELECT DISTINCT datname, id, name
FROM stv_tbl_perm
JOIN pg_database ON pg_database.oid = db_id