Skip to content

Instantly share code, notes, and snippets.

@JonnyWong16
JonnyWong16 / select_tmdb_poster.py
Last active March 26, 2026 18:28
Selects the default TMDB poster and art for items in a Plex library if no poster/art is selected or the current poster/art is from Gracenote.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Description: Selects the default TMDB poster and art for items in a Plex library
if no poster/art is selected or the current poster/art is from Gracenote.
Author: /u/SwiftPanda16
Requires: plexapi
Usage:
* Change the posters for an entire library:
@IsmailAlamKhan
IsmailAlamKhan / appicon.sh
Last active March 26, 2026 18:26
Building and distribute a flutter macos app without App Store
mkdir AppIcon.iconset
sips -z 16 16 appicon.png --out AppIcon.iconset/icon_16x16.png
sips -z 32 32 appicon.png --out AppIcon.iconset/icon_16x16@2x.png
sips -z 32 32 appicon.png --out AppIcon.iconset/icon_32x32.png
sips -z 64 64 appicon.png --out AppIcon.iconset/icon_32x32@2x.png
sips -z 128 128 appicon.png --out AppIcon.iconset/icon_128x128.png
sips -z 256 256 appicon.png --out AppIcon.iconset/icon_128x128@2x.png
sips -z 256 256 appicon.png --out AppIcon.iconset/icon_256x256.png
sips -z 512 512 appicon.png --out AppIcon.iconset/icon_256x256@2x.png
sips -z 512 512 appicon.png --out AppIcon.iconset/icon_512x512.png
@bmf2788
bmf2788 / playflare.md
Created March 16, 2026 07:12
PlayFlare Networks: Servidores con Protección DDoS Gratis, Filtros Especializados para GTA V y Soporte 24/7

PlayFlare Networks: Servidores con Protección DDoS Gratis, Filtros Especializados para GTA V y Soporte 24/7

Si tienes un servidor de FiveM, SAMP, MTA:SA o cualquier juego multijugador, ya sabes lo que es eso de entrar al panel a las 2 de la mañana y ver el ping por las nubes. Un ataque DDoS. Y entonces empieza la odisea: contactar al proveedor, esperar respuesta, rezar para que el servidor no esté caído cuando vuelven tus jugadores.

PlayFlare Networks lleva años resolviendo exactamente ese problema. Son una empresa de hosting especializada en servidores para videojuegos, con protección anti-DDoS incluida en todos sus planes, sin costo adicional. Suena bien, ¿verdad? Vamos a ver qué tienen de verdad.


¿Qué es PlayFlare Networks?

/*
* Copyright 2026 Kyriakos Georgiopoulos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@kmelve
kmelve / plan.md
Created January 31, 2026 18:31
Reusable Page Blocks in Sanity - Implementation Guide

Reusable Page Blocks in Sanity - Implementation Guide

A pattern for creating once, using everywhere: how to implement reusable content blocks in Sanity that can be shared across multiple pages.


Overview

This pattern allows content editors to create a page block (hero, CTA, feature section, etc.) once as a standalone document, then reference it from multiple pages. Changes to the reusable block automatically propagate everywhere it's used.

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@geosp
geosp / thunderbolt-networking-guide.md
Created March 21, 2025 03:44
Thunderbolt Networking Setup on Linux

Thunderbolt Networking Setup on Linux

This guide documents the steps to enable and configure Thunderbolt networking on your Linux system (e.g., Ubuntu, Proxmox). It covers loading the necessary kernel modules, ensuring persistent interface naming, configuring a fixed IP address, and testing throughput with iperf3. Note that Thunderbolt 3/4 hardware advertises a raw bandwidth of 40 Gbps, but practical throughput is typically lower due to half‑duplex operation, protocol overhead, and system constraints.

Hardware Used in This Guide

This guide was developed and tested with the following hardware:

  • CPU: AMD Ryzen 9 PRO 6950H
    • 8 cores / 16 threads
  • 3.3 GHz base frequency / 4.94 GHz boost
@tijmenon
tijmenon / 1-deck-builder.md
Last active March 26, 2026 18:11
AI Presentation Toolkit by Promptiers — Build consultant-grade decks using the Pyramid Principle

Presentation deck builder

You are a consultant-grade presentation builder trained on McKinsey/BCG/Bain best practices (Pyramid Principle, SCR framework, Barbara Minto standards).

Your job

Build a complete, structured presentation from the context I give you. Do NOT ask me to write titles, structure, or outline. You determine all of that.

What I will give you

@diego3g
diego3g / settings.json
Last active March 26, 2026 18:09
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],