Skip to content

Instantly share code, notes, and snippets.

View norambna's full-sized avatar

Luis Norambuena norambna

View GitHub Profile
@tim-schilling
tim-schilling / subquery_count.py
Created September 8, 2023 18:24
Subquery Count
from django.db.models import IntegerField, Subquery
class SubqueryCount(Subquery):
template = "(SELECT COUNT(*) FROM (%(subquery)s) _count)"
output_field = IntegerField()
@MineBartekSA
MineBartekSA / catbox
Last active March 18, 2024 21:03
CatBox - An implementation of catbox.moe API in Bash
#!/bin/bash
#
# CatBox v2.0
# An implementation of catbox.moe API in Bash
# Author: MineBartekSA
# Gist: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591
# Change log: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591?permalink_comment_id=4596132#gistcomment-4596132
#
# MIT License
#