apt-get install libmagickwand-dev
pip install Wand
This file contains 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
class StaticMethod: | |
def __init__(self, f): | |
self.f = f | |
def __get__(self, obj, cls=None): | |
return self.f | |
class ClassMethod: | |
def __init__(self, f): |
This file contains 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
FROM ubuntu:bionic as build-base | |
ENV PYTHONUNBUFFERED 1 | |
ARG SSH_KEY | |
RUN apt-get update && \ | |
apt-get install -y build-essential \ | |
libprotobuf-dev \ | |
libhiredis-dev \ | |
libxml2-dev \ |
This file contains 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
@-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; |
This file contains 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
#!/bin/bash | |
if [ -z "$DATABASE_URL" ]; then | |
echo "Missing database url" | |
exit 2 | |
fi | |
RETRIES="${RETRIES:-10}" | |
echo -n "Waiting for postgres..." |
This file contains 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
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" |
This file contains 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 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/ |
- Ingest url:
rtmp://example.com/live
- Player url: http://example.com/?key=STREAM_KEY
This file contains 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
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: |
OlderNewer