Skip to content

Instantly share code, notes, and snippets.

@faresd
faresd / CHROME_WEB_STORE_SUBMISSION.md
Created August 16, 2026 15:37
Chrome Web Store submission sheet — Chlabs Amazon → La Poste CN23

Chrome Web Store submission sheet — Chlabs Amazon → La Poste CN23

Permanent Store item ID: knhdgbhgemibkodcpopfgeoaggbojpma

Store listing

Name: Chlabs Amazon → La Poste CN23

Summary: Create and email La Poste CN23 codes from eligible Amazon Seller Central orders.

@faresd
faresd / PRIVACY_POLICY.md
Created August 16, 2026 15:34
Privacy Policy — Chlabs Amazon → La Poste CN23

Privacy Policy — Chlabs Amazon → La Poste CN23

Effective date: 15 August 2026

The extension processes the minimum order and recipient information needed to prepare a customs declaration: Amazon order ID, recipient contact and postal address, item description, quantity, declared value, weight, HS code, country of origin, and the final La Poste withdrawal code.

The extension reads this information only from the Amazon Seller Central order page the signed-in user opens. It transfers the reviewed declaration fields and the seller's configured code-delivery email only to La Poste's cn23.laposte.fr service after explicit confirmation. Settings, verified per-ASIN defaults, reviewed order snapshots, returned barcode images, generated withdrawal codes, and up to five declaration versions per order are stored locally in the browser profile so PDFs can be downloaded again. There is no Chlabs backend, advertising, analytics, sale of data, or unrelated use of data.

The extension does not store Amazon or La Pos

request headers in ios:
GET /graphql
Accept: */*
Content-Type: application/json
Origin: https://prismic-graphql-pagination.netlify.app
Referer: https://prismic-graphql-pagination.netlify.app/all-posts
User-Agent: Mozilla/5.0 (iPad; CPU OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Mobile/15E148 Safari/604.1
Prismic-ref: XuDzRxAAACMAedKh
const getAllPages = (allData, endCursor) =>
getPage(endCursor)
.then(response => {
if (response.pageInfo.hasNextPage) {
return getAllPages(response.edges, response.edges.cursor)
.then(nextPage => allData.push(nextPage))
} else {
return allData
}
})
@faresd
faresd / prismic-php-website-starter
Last active January 30, 2020 16:58
Run Prismic PHP Website starter on windows 10
install XAMPP
https://www.apachefriends.org/index.html
install composer
https://getcomposer.org/download/
run composer in project root
php composer.phar install
# In case of 'unlisted' target, only passing 'publishTarget' as a request header works
if [[ ${PUBLISH_TARGET} == 'unlisted' ]]; then
HTTP_CODE=$(curl \
-w %{http_code} \
-o api-response.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "x-goog-api-version: 2" \
-H "Content-Length: 0" \
-H "publishTarget: $PUBLISH_TARGET" \
-X POST \
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "beta-dot-ao-docs-staging.appspot.com"
},
"host": "beta-dot-ao-docs-staging.appspot.com",
"basePath": "/_ah/api",
"schemes": [
"https"
@faresd
faresd / sdf
Created October 10, 2017 14:37
sdfsdf
@faresd
faresd / pages-query.js
Created November 23, 2015 15:36
Pages query
app.route('/:uid').get(function(req, res){
var uid = req.params['uid']
var p = prismic.withContext(req, res);
p.getByUID('page', uid, function(err, page) {
if(err) {
res.status(500)
.send("Error 500: " + err.message);
}
if(!page) {
@faresd
faresd / page-for-documentation.json
Created November 23, 2015 15:24
Page Custom Type for documentation
{
"Content" : {
"body" : {
"fieldset" : "Dynamic page zone...",
"type" : "Slices",
"config" : {
"choices" : {
"featured-items" : {
"type" : "Group",
"fieldset" : "Featured items",