Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
import java.io.*; | |
import java.security.cert.*; | |
import org.bouncycastle.openssl.*; | |
public class ConvertPEM { | |
public static void main(String[] args) throws Exception { |
#!/usr/bin/env python | |
# Convert a Kontalk legacy conversation to HTML | |
# Usage: ./convert-messages.py messages.db phone_number [display_name] | |
# HTML goes to standard output | |
import sys | |
import hashlib | |
import sqlite3 | |
from datetime import datetime |
df -h |head -1; df -h | tail +2 | sort -t " " -h -k 5 |
import java.io.*; | |
public class LimitedInputStream extends InputStream { | |
private final InputStream stream; | |
private final long limit; | |
private long bytesRead; | |
public LimitedInputStream(InputStream stream, long limit) { | |
this.stream = stream; | |
this.limit = limit; |
#!/bin/sh | |
git reflog expire --expire=now --all | |
git gc --prune=all --aggressive |
FROM ubuntu:20.04 | |
ARG ESSENTIA_VERSION=2.1_beta5 | |
ENV LANG C.UTF-8 | |
RUN apt-get update \ | |
&& apt-get -y upgrade \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
python3-matplotlib python3-numpy python3-six python3-yaml \ | |
libfftw3-3 libyaml-0-2 libtag1v5 libsamplerate0 \ |
#!/usr/bin/env python3 | |
# Convert a Kontalk conversation to HTML | |
# Usage: ./convert-threads.py messages.db | |
# HTML goes to files in current directory, one per thread | |
import sys | |
import hashlib | |
import sqlite3 | |
from datetime import datetime |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/usr/bin/env bash | |
# Synchronize library folder structure with immich albums | |
# Usage: ./sync-albums.sh http://immich-host:port/api <api-key> <library-path> | |
set -e | |
BASE_URL="$1" | |
API_KEY="$2" | |
LIBRARY_PATH="${3%/}/" |