Skip to content

Instantly share code, notes, and snippets.

View le-martre's full-sized avatar

Martre le-martre

  • Europe
View GitHub Profile
// Dependencies :
// npm i download jsdom walk replaceall
const path = require('path')
const fsp = require('fs').promises
const download = require('download')
const walk = require('walk')
const replaceAll = require("replaceall");
const { JSDOM } = require('jsdom')
@le-martre
le-martre / webResize.bash
Created September 14, 2020 08:01
Bash command to resize an image in multiple sizes at once for usage in websites (img srcset tags)
# You need imagemagick to have the "convert" command available
# Debian based distros => sudo apt-get install imagemagick
# Example command usage :
# $ web_resize coffee.jpg 320 1024 1980
# Will create :
# - coffee-320.jpg
# - coffee-1024.jpg
# - coffee-1980.jpg
@le-martre
le-martre / openApiPayins.md
Created February 19, 2018 10:12
OpenApi Payins

Show Payins

Returns json data about the client's payins from the most recent to the oldest.

  • URL

    BETA : apibeta.koalect.com/openapi/payins

    Production : api.koalect.com/openapi/payins