Skip to content

Instantly share code, notes, and snippets.

View demartis's full-sized avatar

Riccardo De Martis demartis

View GitHub Profile
@demartis
demartis / parallels-reset.sh
Created October 4, 2025 15:04 — forked from gdurastanti/parallels-reset.sh
Reset Parallels' trial
#!/bin/sh
# Reset Parallels Desktop's trial and generate a casual email address to register a new user
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml
jot -w pdu%d@gmail.com -r 1
/*
* This function is meant to be put in Pre-request Script Postman collection.
* It sets the jwt_body function as Postman global variable.
* jwt_body(content) encrypts "content" as Signed JWT and puts it to {{encoded_body}} variable.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* HOW TO USE:
* 1. add this script to Postman Collection Pre-Request script
* (it will provide availability of necessary global functions)
@demartis
demartis / Dockerfile.fails
Created July 27, 2020 10:23 — forked from briceburg/Dockerfile.fails
docker - example adding www-data user to alpine images
FROM nginx:alpine
# stock verison from php:alpine image
# ensure www-data user exists
RUN set -x \
&& addgroup -g 82 -S www-data \
&& adduser -u 82 -D -S -G www-data www-data
# 82 is the standard uid/gid for "www-data" in Alpine
# http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2
@demartis
demartis / .bash_profile
Last active October 27, 2016 12:43 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@demartis
demartis / Generate-mail-signature.markdown
Created January 9, 2015 10:12
Generate mail signature