Skip to content

Instantly share code, notes, and snippets.

@tedsteinmann
tedsteinmann / github_export_repo_issues_to_csv.py
Last active August 28, 2018 02:57 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests
import datetime
/*
Google Apps Script to automatically archive or delete mail with a certain label after a certain time
Copyright @tedsteinmann https://gist.github.com/tedsteinmann/0ee248856de6e75498470db7c98fab09
Original author fwed (contact@fwed.fr)
https://medium.com/@fw3d/auto-archive-emails-in-gmail-after-2-days-1ebf0e076b1c
Use at your own risk. The author is not responsible for erroneous deletion of email.
@tedsteinmann
tedsteinmann / LICENSE
Created August 28, 2018 02:17
This license applies to all public gists https://gist.github.com/martinbuberl
MIT License
Copyright (c) 2018 Ted Steinmann
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
# a gist to backup a public facing website
# author tedsteinmann
source config.sh
# create a file called config.sh defining the following variales:
# --------
# label=[enter a label for downloaded content]
# url=[enter the base URL to download from]
# domain_list=[enter a comma seperated list of additional domains to download content from]
# -------
@tedsteinmann
tedsteinmann / autoForward.js
Last active October 15, 2023 11:26
Google Apps Script to autoforward based on convention.
/**
* script to automatically forward all mail under 'auto/forward/[recipient]
* author: tedsteinmann
*/
//setting primary inputs
var LABEL = 'auto/forward/';
function forwardMail(){
//get all labels under LABEL
@tedsteinmann
tedsteinmann / config.py
Last active November 16, 2019 06:16
Basic python class for reading data
data = {
"raw": "../data/raw/",
"processed": "../data/processed/",
"lookup": "../data/lookup/"
}
@tedsteinmann
tedsteinmann / .Juypeter notebooks on Docker.md
Last active December 16, 2020 16:55
How to create Juypeter notebooks in Docker

Jupyter Notebook on Docker

This gist can be used to setup Juypter in Docker with docker compose.

Installation

  1. Clone this Gist

    git clone https://gist.github.com/fc6412bdcc5c5aeb1b6a4c59ea0b50c4.git notebooks

  2. cd notebooks

@tedsteinmann
tedsteinmann / common_setup.py
Created October 14, 2023 20:07
Notebook Common Setup
import os
import sys
import json
import shutil
import inspect
from datetime import datetime
# Get the current working directory
current_file_directory = os.path.dirname(os.path.abspath(__file__))