Skip to content

Instantly share code, notes, and snippets.

@labodj
labodj / certbot-cleanup.sh
Last active April 25, 2024 18:49 — forked from usrflo/certbot-cleanup.sh
Remove outdated letsencrypt CSRs, keys and certificates from /etc/letsencrypt
#!/bin/bash
# Remove outdated letsencrypt CSRs, keys and certificates
LEBasePath="$HOME/docker/npm/letsencrypt"
keepOldVersions=1
keepOldCsrDays=180
keepOldKeysDays=180
if [ ! -d "$LEBasePath" ]; then
@labodj
labodj / Output Android Assets.jsx
Created October 10, 2012 11:39 — forked from tlinkner/Output Android Assets.jsx
Photoshop script to output Android XHDPI, HDPI, MDPI, LDPI PNGs from XHDPI PNG or PSD Sources
// Output Android Assets.jsx
// 2012 Jacopo Labardi www.facebook.com/jacopo.labardi
// License: none (public domain)
// v1.1
//
// The Original script is made by Todd Linkner, but I found it quite buggy
// I modified it to correct some bugs
//
// This scrip is for Photoshop CS6 only (32 & 64bit).
// It outputs Android XHDPI, HDPI, MDPI, and LDPI PNG assets