Skip to content

Instantly share code, notes, and snippets.

View lbdremy's full-sized avatar

Remy Loubradou lbdremy

View GitHub Profile
@lbdremy
lbdremy / click-reference-affiliate-networks.md
Last active December 4, 2023 16:14
click reference parameter in a bunch of affiliate networks. Feel free to contribute, add and remove errors.

- Affiliate network name - &parameter=value_of_the_click_reference_here_CLICKREF

  • Advortis - &xref1=CLICKREF
  • Affiliate Future - &tracking=CLICKREF
  • Affiliate Window - &clickref=CLICKREF
  • Affilinet - &subid=CLICKREF
  • Aflite - &aref=CLICKREF
  • Brand Conversions - &subid=CLICKREF
  • Buyat - &LID=CLICKREF
  • Carpet Right Affiliates - &link_ref=CLICKREF
  • ClixGalore - &OID=CLICKREF
@lbdremy
lbdremy / faq-oauth2.md
Last active January 10, 2022 01:48
FAQ OAuth2

FAQ OAuth2

When should you use the Authorization code flow with PKCE (Proof Key for Code Exchange) ?

TLDR: If you’re using the Authorization Code flow in a mobile app, Single page application, desktop app, or any other type of application that can’t store a client secret securely (i.e. the only place secure enough is your servers), then you should use the PKCE extension, which provides protections against other attacks where the authorization code may be intercepted and it does not require a client secret.

@lbdremy
lbdremy / machine.js
Last active September 15, 2021 16:36
Generated by XState Viz: https://xstate.js.org/viz
const operatorMachine = Machine({
id: 'operator',
initial: 'inactive',
states: {
inactive: {
on: {
SET_AS_VISIBLE: 'visible',
ONBOARD: 'onboarded'
}
@lbdremy
lbdremy / how-to-virtualize-raspian-with-qemu.md
Last active October 13, 2019 08:33
HOW-TO: Virtualize Raspian with Qemu.

#HOW-TO: Virtualize Raspian with Qemu

0.Workspace

mkdir -p ~/workspace/raspdev
cd ~/workspace/raspdev

1.Install Qemu

Keybase proof

I hereby claim:

  • I am lbdremy on github.
  • I am lbdremy (https://keybase.io/lbdremy) on keybase.
  • I have a public key ASBQSAZ2QVu0xp1SRQ3iZfCtDMLzCu3HqcKdYMopRGkyIAo

To claim this, I am signing this object:

@lbdremy
lbdremy / learning-opt-v8.md
Created September 30, 2012 00:24
learning how to optimize js code with v8
node --trace-opt --trace-bailout bench/parse.js 
[marking Parser.parse 0x1aaeac0a128 for recompilation, reason: hot and stable, ICs with typeinfo: 59/95 (62%)]
Bailout in HGraphBuilder: @"Parser.parse": SwitchStatement: non-literal switch label
[disabled optimization for Parser.parse]
[marking EventEmitter.emit 0x1f0e63861860 for recompilation, reason: not much type info but very hot, ICs with typeinfo: 2/70 (2%)]
[optimizing: EventEmitter.emit / 1f0e63861861 - took 1.649 ms]
[marking EventEmitter 0x1aaeac2bbb0 for recompilation, reason: small function, ICs with typeinfo: 1/5 (20%)]
[marking createParser 0x1aaeac38f88 for recompilation, reason: small function, ICs with typeinfo: 0/0 (100%)]
[optimizing: createParser / 1aaeac38f89 - took 0.124 ms]
@lbdremy
lbdremy / shopify-authentification-flow.md
Last active September 12, 2016 19:49
Shopify authentification flow

Shopify authentification flow

Request URL:http://www.retailtower.com/app/settings/shopify.php?shop=retailer-lambda.myshopify.com&signature=1fa9c810fec17eea99b04ef21204c91b&timestamp=1370278389
Request Method:GET
Status Code:302 Moved Temporarily

Request Headers

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
@lbdremy
lbdremy / http-csv-objectmapper-json-solr.js
Created September 3, 2012 08:29
How to rule a data feed with node.js
console.time('Zuneta-stream');
/**
* Modules dependencies
*/
var csv = require('csv-stream'),
request = require('request'),
objectMapper = require('object-mapper-stream'),
solr = require('solr-client'),
crypto = require('crypto');
@lbdremy
lbdremy / promise-q-jquery
Created December 4, 2013 18:10
Play around with Q and jQuery.Deferred
http://plnkr.co/edit/HRb9KQLqOqQNxco2J9XM?p=preview
@lbdremy
lbdremy / when-aplus-test-adapter.js
Last active December 30, 2015 06:49
when adapter
var when = require('when');
exports.resolved = when.resolve;
exports.rejected = when.reject;
exports.deferred = when.defer;