Skip to content

Instantly share code, notes, and snippets.

View jdbranham's full-sized avatar
🤓
Coding like a madman

Jeremy jdbranham

🤓
Coding like a madman
View GitHub Profile
@alexgleith
alexgleith / SimpleLoadS2.ipynb
Last active October 17, 2025 07:35
Simplest example for finding and loading Sentinel-2 data using Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d9k
d9k / superset_config_docker.py
Created January 13, 2022 07:44
Superset welcome page redirect
import logging
import pprint
from flask import Flask, redirect
from flask_appbuilder import expose, IndexView
from superset.typing import FlaskResponse
logger = logging.getLogger()
@borislitvak
borislitvak / Pyspark.md
Last active July 2, 2024 19:39
Setup PySpark and its S3 connection

Setup PySpark and its S3 connection

  • Create an environment with your favorite venv manager, ala: conda create --name etl_spark_standalone python=3.8 && activate etl_spark_standalone
  • pip install -r requirements.txt. Note: This installs pyspark.

Make a choice

  • Do you want standalone spark/hadoop (any version you want) or
  • Built-in Spark that comes with pip installs ala pip install pyspark==3.0.1
@mikeadmire
mikeadmire / rds_slave_skip_errors.rb
Created June 1, 2016 02:05
Script to run against RDS slave to skip 1045 errors and restart replication if it stops.
#!/usr/bin/env ruby
require 'mysql2'
while 1
client = Mysql2::Client.new(
host: "",
username: "",
password: "")
slave_status = client.query("show slave status;")
@NapoleonWils0n
NapoleonWils0n / mount_drive_in_single_user_mode.sh
Created November 11, 2012 00:11
macosx: mount drive in single user mode
#!/bin/sh
#-----------------------------------------------#
# mount usb drive in single user mode
#-----------------------------------------------#
# reboot the mac and press s to start up in single user mode
# mount the internal mac drive