Skip to content

Instantly share code, notes, and snippets.

View sebz's full-sized avatar

Sebastien Moran sebz

View GitHub Profile
@subfuzion
subfuzion / curl.md
Last active May 9, 2024 18:17
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 February 11, 2024 13:45
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);