Skip to content

Instantly share code, notes, and snippets.

@pniaps
pniaps / README.md
Created June 14, 2017 08:39 — forked from mindplay-dk/README.md
ISO 3166-2 Country and State/Region Tables for MySQL
@pniaps
pniaps / TwigRenderer.php
Created July 14, 2017 12:54 — forked from stof/TwigRenderer.php
Rendering twig blocks directly from outside a twig render call, for email purpose
<?php
namespace Incenteev\MailerBundle\Mailer;
class TwigRenderer implements RendererInterface
{
private $twig;
private $styleInliner;
/**
@pniaps
pniaps / backup.sh
Created February 20, 2023 01:29 — forked from aymencis/backup.sh
OVH NFS BACKUP
#!/bin/sh
# BACKUP SCRIPT
CONTACT="[email protected]"
MAIL="/tmp/mail"
if [ -e "/var/lock/backup.lock" ]
then
echo " BACKUP ALREADY STARTED !!" > $MAIL
@pniaps
pniaps / Build_seed_iso
Created March 20, 2023 18:07 — forked from asvignesh/Build_seed_iso
Samples to create a cloud-init configuration ISO.
$ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data