Skip to content

Instantly share code, notes, and snippets.

View Jwink3101's full-sized avatar

Justin Winokur Jwink3101

View GitHub Profile
@Jwink3101
Jwink3101 / rclone_cloud_API
Created February 13, 2023 21:55
This is a WIP and incomplete way to use rclone programmatically to connect to cloud storage
{
"cells": [
{
"cell_type": "markdown",
"id": "372c730b-581d-459a-9973-eecd922d0cee",
"metadata": {},
"source": [
"# Rclone as API\n",
"\n",
"**PROOF OF CONCEPT**. Needs work! \n",
@Jwink3101
Jwink3101 / GPG_from_python.ipynb
Created December 23, 2022 21:52
Example of symmetric GPG of data streams in Python with minimal password exposure (USE AT YOUR OWN RISK)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jwink3101
Jwink3101 / recovery.ipynb
Created June 18, 2021 21:10
Sparse Recovery Play
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jwink3101
Jwink3101 / B2_snapshot_restore.clean.ipynb
Created December 17, 2020 22:23
Demonstration of extracting from a Backblaze Restor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jwink3101
Jwink3101 / 20201203_ab_help.md
Created December 3, 2020 23:33
Archive Box Question, 2020-12-03

Hi,

I didn't want to make an "issue" of this since I suspect it is user error but if you'd prefer, I can do that.

I am trying to set up ArchiveBox with Docker behind a Caddy Reverse proxy. I did make a few minor modifications to the docker-compose file to (a) use port 25005 (which is what I have in Caddy proxying to Archive Box), (b) set a full path to my data folder, and (c) settings.

My docker-file.yaml looks like: (where my username is USER

version: '3.7'
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Apply the same git commands to all git repositories below to a specified depth
(default 1). Note: Will go below a top level repo for submodules, etc. WARNING:
if there is ambiguity as to git flags vs git-all (this code) flags, separate
with `--`
"""
from __future__ import division, print_function, unicode_literals, absolute_import
@Jwink3101
Jwink3101 / finddupes.py
Last active November 20, 2020 02:19
Really barebones duplicate file finder. Doesn't even have a CLI
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Duplicate file finder. Finds dupe files by comparing the following attributes.
Matching size is nessesary but very, very far from sufficient. Still, it is very
fast so we use that to cut out a lot of files.
* size
* Obviously not at all robust but a nessesary
* CRC checksum
@Jwink3101
Jwink3101 / barebone_dup_finder.py
Created August 12, 2019 15:54
Super, super, super barebones, barely-tested, feature-less duplicate file finder
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Find duplicate files
Warning: This has not been thouroughly tested and is missing many
features including exlucsions, error handling, parallelism, etc.
This is barebones
Process:
@Jwink3101
Jwink3101 / Matplotlib_Cheatsheet
Last active October 27, 2020 23:43
My personal, ever-evolving, matplotlib cheatsheet. Updated: 2018-09-21
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Matplotlib Tips and Demos\n",
"\n",
"When I first learned Python three years ago, I was often finding myself having to lookup the same thing again and again for Matplotlib. This was back pre-2.0 when there was even more issues (e.g. plotting `NaNs` with masked arrays). \n",
"\n",
@Jwink3101
Jwink3101 / Qhull_demo.ipynb
Created August 22, 2018 21:37
Qhull as boundary
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.