Skip to content

Instantly share code, notes, and snippets.

@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.
@gaearon
gaearon / schroeder_bernstein.lean
Created February 19, 2025 17:45
Formalization of Schröder–Bernstein theorem in Lean, based on an exercise from Mathematics in Lean
--
-- Inspired by https://leanprover-community.github.io/mathematics_in_lean/C04_Sets_and_Functions.html#the-schroder-bernstein-theorem
--
import Mathlib
open Set
open Function
noncomputable section
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real