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 / README.md
Last active April 30, 2024 09:40
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 / symlink-models.ps1
Created July 29, 2023 10:57
Link AUTOMATIC1111/stable-diffusion-webui models to ComfyUI
@ZipFile
ZipFile / Pixiv App API.yaml
Last active April 28, 2023 01:31
Unofficial API specification extracted from Pixiv Android App
swagger: '2.0'
info:
title: "Pixiv App API"
description: "Unofficial API specification extracted from Pixiv Android App v5.0.17"
version: "1.0"
host: app-api.pixiv.net
schemes:
- https
@ZipFile
ZipFile / Pixiv Public API.yaml
Last active August 7, 2022 14:11
Unofficial API specification extracted from Pixiv Android App
swagger: "2.0"
info:
title: "Pixiv Public API"
description: "Unofficial API specification extracted from Pixiv Android App v4.8.2"
version: "1.0"
host: public-api.secure.pixiv.net
schemes:
- https
basePath: /v1
produces:
@ZipFile
ZipFile / README.md
Last active May 16, 2022 21:23
DIY stream testing
@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 / 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 / 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,