Skip to content

Instantly share code, notes, and snippets.

View sebz's full-sized avatar

Sebastien Moran sebz

View GitHub Profile
@burkeholland
burkeholland / copilot-instructions.md
Created February 28, 2025 21:00
Custom Instructions Example

Best Practices for AstroJS, React, Tailwind CSS, and Nanostores

Application Structure

Project Organization

src/
├── components/
│   ├── ui/              # Reusable UI components
│   └── features/        # Feature-specific components
@subfuzion
subfuzion / curl.md
Last active May 31, 2025 17:08
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@jedi4ever
jedi4ever / nodejs-cluster-zero-downtime.md
Last active July 26, 2024 14:01
nodejs clustering, zero downtime deployment solutions

Clustering: The basics

The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)

It does not balance, it leaves it to the kernel.

In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)

@essembeh
essembeh / SimpleDotProject.user.js
Created February 27, 2013 15:53
User script pour GreaseMonkey pour simplifier les imputations dotproject chez Sierra ;)
// ==UserScript==
// @name SimpleDotProject
// @namespace http://simpledotproject.essembeh.org
// @include http://dotproject*/dotproject/*?m=timecard&tab=1&*
// @grant none
// ==/UserScript==
function fireEvent (element, eventName) {
var evt = document.createEvent("HTMLEvents");
evt.initEvent(eventName, false, true);