Skip to content

Instantly share code, notes, and snippets.

@ZipFile
ZipFile / WeightPaintSelectArmature.py
Last active May 1, 2024 13:25
[Blender Add-on] Switch to Weight Paint and select Armature
# This is free and unencumbered software released into the public domain.
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
@ZipFile
ZipFile / symlink-models.ps1
Created July 29, 2023 10:57
Link AUTOMATIC1111/stable-diffusion-webui models to ComfyUI
@ZipFile
ZipFile / README.md
Last active May 16, 2022 21:23
DIY stream testing
@ZipFile
ZipFile / history.yml
Created August 5, 2021 11:39
GitHub Actions
name: Git history
on: pull_request
jobs:
git-history:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 25
- name: "No fixup! commits"
@ZipFile
ZipFile / iqdb.py
Created April 4, 2021 15:50
IQDB-like image similarity calculation in Python
#!/usr/bin/env python
# Install deps:
# pip install scikit-image PyWavelets
# Run:
# python iqdb.py a.jpg b.jpg
# References:
# https://iqdb.org/code/
# https://github.com/ricardocabral/iskdaemon
# https://grail.cs.washington.edu/projects/query/
@ZipFile
ZipFile / README.md
Last active November 12, 2024 11:47
Pixiv OAuth Flow

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.

@ZipFile
ZipFile / README.md
Created November 1, 2020 09:11
Calculate image signature in Python

Install dependencies

apt-get install libmagickwand-dev
pip install Wand

Usage

@ZipFile
ZipFile / old-eh-category-buttons.css
Last active March 22, 2019 19:38
Old EH category buttons
.cs, .cn {
text-shadow: unset !important;
border: 1px solid var(--category-bg-color) !important;
color: black !important;
box-sizing: border-box !important;
letter-spacing: unset !important;
background:
linear-gradient(
to bottom,
white -25px,
@ZipFile
ZipFile / wait_for_postgres.sh
Created March 4, 2019 13:52
Wait for postgres
#!/bin/bash
if [ -z "$DATABASE_URL" ]; then
echo "Missing database url"
exit 2
fi
RETRIES="${RETRIES:-10}"
echo -n "Waiting for postgres..."
@-moz-document url("chrome://browser/content/browser.xul") {
.tabbrowser-tab {
-moz-box-flex: 0 !important;
min-width: -moz-min-content !important;
}
.tabbrowser-tab[pending] {
opacity: 0.5 !important;
}
.tab-close-button, .tab-label-container, .tab-loading-burst {
display: none !important;