Skip to content

Instantly share code, notes, and snippets.

@sergiodxa
sergiodxa / crud.ts
Last active February 19, 2025 23:29
A crud helper for RRv7 routes.ts file
import { index, prefix, route } from "@react-router/dev/routes";
import { camelize, pluralize, singularize } from "inflected";
function createCrud(base = "./views") {
// e.g. crud("users")
return function crud(name: string) {
let plural = pluralize(name);
let camelCase = camelize(singularize(name), false);
return route(
@rjescobar
rjescobar / extend-trial-jetbrains-windows.bat
Created August 31, 2021 02:53
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@maxivak
maxivak / readme.md
Last active February 19, 2025 23:23
Integrating Gem/Engine and Main Rails App
@kleneway
kleneway / gist:41c57fca185a29612d4aa5430e50e74e
Last active February 19, 2025 23:18
Sample Prompts for converting a video to stories and to add notes to a task list
For generating stories and tasks from a video, use the following instructions:
<INSTRUCTIONS>
Act as a world-class technical product manager. Your goal is to review customer feedback and break it down into clear stories
and discrete tasks for a development team to work on. Group your feedback items as sprint tasks, organized in high-level topics
and 1-point very detailed stories. Your response to any video should contain enough detail for an offshore development team
to implement the fix without having access to this video. Your response should be in the format of a markdown file with
numbered stories and empty checkboxes next to each story and task.
</INSTRUCTIONS>
For refining the stories in the cursor-tasks file, use the following instructions:
@Sauerstoffdioxid
Sauerstoffdioxid / googleurlparams.md
Last active February 19, 2025 23:17
Google/Blogger Image URL Parameters

Google/Blogger Image URL Parameters

This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations.

Where to use them?

  • On Blogger's image URL's: 2.bp.blogspot.com/-OF7u67HQE1M/VHc8S8qJTDI/AAAAAAAACxI/UD-11c63diQ/s1600/005.png
  • On just about any googleusercontent image URL: https://lh3.googleusercontent.com/Jvmz11cLrvNIHG_LWjVO9B-UV2IN4Cfk1pycbhWZl6IriMgCAGCOFuBRtoHaiZ6xeVGqCugZcCql=w176-h176-n-o

Replace the bolded parts with the parameters.

@brooksvb
brooksvb / Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
Last active February 19, 2025 23:16
These CSS tweaks are for higher density display for Uptime Kuma status pages in dark mode.
:root {
--min-item-width: 28ch;
--max-item-width: .5fr;
--grid-spacing: .25rem;
--item-padding: .25rem;
}
/* Let items expand on small screens */
@media (max-width: 600px) {
:root {
@finnmglas
finnmglas / boot_sector_games_dataset.json
Last active February 19, 2025 23:23
A cool json list dataset of 512 byte / boot sector games / binaries (games in strings base64 encoded). Keys contained: link, binary base64 encoded, assembly code; Total: 33 games à 512 Bytes
{
"tetros": {
"link": "https://github.com/daniel-e/tetros",
"data": "McCO2DHAzRC0AbkHJs0QtgO5EgBR/sayDbkOALt4AOi2AID+FXQJQrkMADHb6KgAWeLhxgYAf2S0As0aoAJ/MdCzH/fjQKICfzHSuwcA9/PA4gOSuhIE6OUAdf7o0gAxyYoOAH9RYDHJurgLtIbNFWFQtAHNFonBWHRF6K8AgP1LdBGA/Uh0HoD9TXQQxgYAfwrrI0ropwB0HULrGkLongB0FErrEYjDQECoB3UCLAjojAB0AojY6HcAUDDkzRZYWeKi6GcA/sbodAB0iv7O6F8A6BYA6Vv/tALNELggCc0Qw7QCzRC0CM0Qw2C2Ff7OdDkx27kMALIO6Ob/wOwEdAJDQuL0gPsMdeRgsg65DABR/s7ozP/+xojjsQHouf9CWeLtYf7OdeLowP9hwzHb6wmIw8DrA0PA4wRDid/rA78AAGAx24jDi4eGfTHbuQQAUbEE9sSAdB1QCf90DmCJ+zDAuQEA6HD/YesJ6HT/wOwEdAFDWNHgQuLZgOoE/sZZ4s4I22HDREQA8EREAPBgIgDiQGQAjmBEAC4gYgDoAGYAZgBmAGYAxkAmAMZAJgBOQEwA5ICMAGxAjABsQIyAAAEAFwACAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVao=",
"description": "Tetris Clone. Full color, no score. This was one of the older boot sector games out there. ",
"asm": "; Tetris\n\torg 7c00h\n\n; ==============================================================================\n; DEBUGGING MACROS\n; ===
@Klerith
Klerith / flutter-instalaciones.md
Last active February 19, 2025 23:19
Instalaciones del curso de Flutter - Móvil de cero a experto
@brucekinsey
brucekinsey / Dockerfile
Last active February 19, 2025 23:04
Creating PaddleOCR Image-To-OCR'd-PDF Server with Docker
FROM paddlepaddle/paddle:3.0.0b2
#FROM paddlepaddle/paddle:latest
# latest tag still has old versions of python and pip
# Update pip and install Python packages
RUN pip3 install --upgrade pip && \
python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple && \
pip install python-docx beautifulsoup4 pillow reportlab pypdf2 flask
# Clone PaddleOCR and install its dependencies
@markasoftware
markasoftware / enterprise_token.rb
Last active February 19, 2025 23:04
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.