This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# Version: 0.1 | |
# Author: homogulosus | |
# Date: Mon Jul 13 13:19:32 EDT 2020 | |
# Description: Downloads a URL recursively and recompiles html to markdown. | |
URL=$1 | |
function down_with_site() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
from django.conf import settings | |
from django.db import transaction, utils | |
def durable(func): | |
""" | |
Decorator to ensure that a function is not being called within an atomic block. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"encoding/json" | |
"fmt" | |
"math/rand" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env nix-shell | |
#! nix-shell -i python3 -p "python311.withPackages(p: with p; [ gitignore-parser ])" | |
import logging | |
import os | |
from glob import glob | |
from gitignore_parser import parse_gitignore | |
logging.basicConfig(level=logging.DEBUG) |
OlderNewer