Skip to content

Instantly share code, notes, and snippets.

@shadow-light
shadow-light / index.html
Created April 17, 2024 05:22
Electron IndexedDB corruption
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>IndexedDB disk space test</title>
</head>
<body>
<h2>Versions</h2>
@shadow-light
shadow-light / invokable.py
Last active September 14, 2018 03:42
How to create a script, using invoke, that you can execute directly
#!/usr/bin/env python
import sys
from invoke import task, Collection, Program
@task
def say_hi(ctx):
print('hi!')
@shadow-light
shadow-light / pipenvlink
Created September 14, 2018 03:04
A script to generate the equivalent of a symlink for python scripts that require a pipenv