Skip to content

Instantly share code, notes, and snippets.

View gsabater's full-sized avatar
( ͡° ͜ʖ ͡°)

Gaspar Sabater gsabater

( ͡° ͜ʖ ͡°)
  • Mallorca, Spain
View GitHub Profile
@gsabater
gsabater / cleanAmazon.user.js
Last active April 2, 2023 14:56
Userscript to clean Amazon links and remove Affiliate params
// ==UserScript==
// @name Amazon Affiliate cleaner
// @namespace https://gist.github.com/gsabater/d7767ee5d21069a814967ecfa81bd415
// @version 0.3
// @description Remove affiliate links for amazon links
// @author You
// @match *
// @include *
// @grant none
// ==/UserScript==
<?
// Query Posts 3, 5, 22 and 7
$ids = [3, 5, 22, 7];
$ordered = implode(',', $ids);
$items = \App\Post::whereIn('id', $ids)
->orderByRaw(DB::raw("FIELD(id, $ordered)"))
->get();
"packages": [
{
"name": "WEBPACK",
"files": [
"public/css/bundle.css",
"public/js/bundle.js"
]
}
],