Skip to content

Instantly share code, notes, and snippets.

View AndreasFurster's full-sized avatar

Andreas Furster AndreasFurster

View GitHub Profile
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
unxz wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar
mv wkhtmltox/bin/* /usr/local/bin/
rm -rf wkhtmltox
rm -f wkhtmltox-0.12.4_linux-generic-amd64.tar
@AndreasFurster
AndreasFurster / result-example.json
Last active June 21, 2023 07:38
IMDB list to json
[
{
"title":"The Shawshank Redemption",
"link":"https://www.imdb.com/title/tt0111161/?ref_=ttls_li_tt",
"image":"https://m.media-amazon.com/images/M/MV5BMDFkYTc0MGEtZmNhMC00ZDIzLWFmNTEtODM1ZmRlYWMwMWFmXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_UY209_CR0,0,140,209_AL_.jpg",
"description":"Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency."
},
{
"title":"The Godfather",
"link":"https://www.imdb.com/title/tt0068646/?ref_=ttls_li_tt",
@AndreasFurster
AndreasFurster / run-in-console.js
Created February 23, 2020 00:29
Download Karwei/Gamma Receipts
let result = [];
var receiptsResp = await fetch("https://mijn.karwei.nl/api/receipts", {
"headers": {
"accept": "application/json",
"accept-language": "en-US,en;q=0.9,nl;q=0.8",
"cache-control": "no-cache",
"content-type": "application/json",
"pragma": "no-cache",
"sec-fetch-dest": "empty",
@AndreasFurster
AndreasFurster / export.js
Last active June 21, 2023 09:30
Export & import Firebase or Google Analytics custom dimensions
var result = Array.from(document.querySelectorAll('definition-table mat-row')).map(function(row) {
let cells = Array.from(row.querySelectorAll('mat-cell'))
return {
'name': cells[0].innerText,
'description': cells[1].innerText,
'scope': cells[2].innerText,
'property': cells[3].innerText,
};
})