Skip to content

Instantly share code, notes, and snippets.

View sgomez's full-sized avatar
😴
Compiling...

Sergio Gómez sgomez

😴
Compiling...
View GitHub Profile
@burkeholland
burkeholland / 4.1.chatmode.md
Last active July 24, 2025 01:05
4.1 Custom Mode - Reddit

EDIT - This prompt has been improved and moved to v2 - Beast Mode. Get it here.

SYSTEM PROMPT — GPT-4.1 Coding Agent (VS Code Tools Edition)

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your goal is to complete the entire user request as quickly as possible. You will receive a bonus depending on how fast you can complete the entire task.

Follow these steps EXACTLY to complete the user's request:

@MattiasBuelens
MattiasBuelens / readable-stream-async-iterator-polyfill.js
Created September 1, 2023 09:17
ReadableStream async iterator polyfill
/**
* A polyfill for `ReadableStream.protototype[Symbol.asyncIterator]`,
* aligning as closely as possible to the specification.
*
* @see https://streams.spec.whatwg.org/#rs-asynciterator
* @see https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#async_iteration
*/
ReadableStream.prototype.values ??= function({ preventCancel = false } = {}) {
const reader = this.getReader();
return {
@veekaybee
veekaybee / normcore-llm.md
Last active July 22, 2025 08:01
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@mathesond2
mathesond2 / react-performance.md
Last active April 20, 2025 18:59
Notes on React Performance

React Performance

Notes From Steve Kinney's "React Performance" Frontend Masters Course

General

re: optimizations: "Start with a problem first, then solve it. dont go looking for problems."

"measure first before you optimize for performance. And then measure again."

@nestarz
nestarz / fetchNDJSON.js
Last active July 6, 2024 05:02
NDJSON File Streaming using browser Stream API + Loading Progress
const parseJSON = () =>
new TransformStream({
transform(chunk, controller) {
controller.enqueue(JSON.parse(chunk));
}
});
const splitStream = splitOn => {
let buffer = "";
return new TransformStream({
Hi,
I'm afraid I'm not interested in this position right now.
I would like to know how you're getting my details and what you're storing though. Under my rights from the GDPR, can you please tell me:
* what personal data you have collected about me?
* the source of this data?
* who you've shared it with, and under what basis?
* how this data is being used?
@tvdijen
tvdijen / Madrid_2020.txt
Last active February 24, 2020 08:50
Workshop To-do list
To-do list:
1. Any open issue / PR on SimpleSAMLphp, or any module or helper-repo within the simplesamlphp-namespace
2. Refactor some classes to comply with PSR-2 (some don't follow camelCaps right now; we ignore them in Psalm)
3. Remove remainders of deprecated code wherever possible:
3.1 Ldap old configuration names (authproc-filters)
3.2 Rename negotiate-module configuration to 1:1 match those of the ldap-module
3.3 Merge #514 > close #236
3.4 Replace crappy LDAP-related classes (#397)
4. Move www-scripts to Controller-classes (also for the externalized modules; see admin-module for an example)
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active July 20, 2025 13:22
Hyperlinks in Terminal Emulators
@javivelasco
javivelasco / reactive-2016.md
Last active January 10, 2023 19:45
Proposal for lightning talk at Reactive Conf 2016

Please star ⭐️ the gist to help! This is a proposal for a ⚡️ talk at Reactive Conference.

Styling Components in React Toolbox 2

I wrote react-toolbox and presented it almost a year ago in lighning talk at Reactive Conf 2015 in Bratislava. At first it was just a proof of concept of a component library styled with CSS Modules and SASS. Now the project has grown quite a bit, and during this year there has been tons of changes and lessons learned.

Theming and customization is one of the most difficult and interesting problems to solve. For the first version we needed a custom Webpack loader to generate themes and doing simple style overrides was very painful. Today I'm working on a new playground that will allow you try CSS Modules live, and to create React Toolbox themes on the f

@frosit
frosit / infectedFiles.md
Created May 5, 2016 22:40
Some commands for finding and clearing infected PHP files

Finding infected files with following bash commands

** Command to list all infected files:

  • grep -lr --include=*.php "eval(base64_decode" /path/to/webroot
  • grep -lr --include=*.php "eval" .
  • grep -lr --include=*.php "base64" .

Command to remove malicious code:

  • grep -lr --include=*.php "eval(base64_decode" /path/to/webroot | xargs sed -i.bak 's/<?php eval(base64_decode[^;]*;/<?php\n/g'