#!/usr/bin/env bash
# ===== Sourced Preamble =====================================
# This part runs whether the script is sourced OR executed.
# Perfect for setting aliases, exports, or functions.
my_shared_function() {
Discover gists
This file contains hidden or 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 https://chromewebstore.google.com/detail/insensitivex/jeiefmcaoiljfljbclanpcmcfmfkdaen | |
| // the extension isn't open source, i didn't trust it. | |
| // it just runs this script on page load for the x.com domain. looks good. for now. | |
| // still, stuff happens: https://cybernews.com/security/chrome-extension-ownership-transfer-malware/ | |
| (function () { | |
| let value; | |
| Object.defineProperty(window, '__INITIAL_STATE__', { |
| name | extract-clothing-cutouts |
|---|---|
| description | Extract high-quality, deduplicated transparent ecommerce clothing cutouts from a folder of photographs where people wear one or more garments. Use when Codex must find outfit or model photos, identify unique clothing across images, create focused references, reconstruct complete garments with Imagegen, remove a solid chroma background into RGBA PNGs, and output only the finished clothing images into a new folder under the current working directory. |
Turn photographs of worn clothing into source-faithful standalone catalog PNGs. Treat each result as a reconstruction from visible evidence, not literal segmentation whenever the wearer or another layer occludes part of the garment.
#install
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
This file contains hidden or 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
| # Rails + PostgreSQL Performance Audit Playbook | |
| A field-tested method for finding what's actually burning your database CPU, built for a | |
| Rails monolith on managed PostgreSQL (Cloud SQL / RDS / etc.). It assumes no APM — just | |
| `pg_stat_statements`, `pg_stat_activity`, and discipline. It pairs well with an LLM: point | |
| one at this file plus your query results and let it do the attribution; the queries below | |
| are ordered so a human can run them and paste results back. | |
| ## The core idea |
This file contains hidden or 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
| -- Source: https://ainab.site/2021/12/08/create-an-azure-sql-server-login-and-connect-a-user-to-it/ | |
| -- Execute this query in the "master" database | |
| -- Create new login | |
| CREATE LOGIN [new-login] | |
| WITH PASSWORD = 'complex-password' | |
| GO | |
| -- Execute these queries in the target database |