Skip to content

Instantly share code, notes, and snippets.

View moregeek's full-sized avatar

Stefan Morgenthaler moregeek

View GitHub Profile
#!/usr/bin/env bash
#
# GPLv3 / Stefan Morgenthaler, 2015;
#
# What?
#
# traverses a given directory down till no subdirectories are present. The pdf
# files within the 'last' directory are merged together and stored in the
# parents folder. The merged document uses the name of the directory, the pdfs
# where located in.
@moregeek
moregeek / serverless-plugin-json.js
Created December 23, 2023 19:57
Serverless Plugin that stringify's a JSON input
'use strict';
class ServerlessPluginJSON {
constructor() {
this.configurationVariablesSources = {
jsonStringify: {
async resolve({ params }) {
return {
value: JSON.stringify( (params[0] || {}) ),
};