Skip to content

Instantly share code, notes, and snippets.

View robdelacruz's full-sized avatar

Rob de la Cruz robdelacruz

View GitHub Profile
@robdelacruz
robdelacruz / gen_pushid.pl
Last active January 15, 2023 18:34
Perl port of https://gist.github.com/mikelehen/3596a30bd69384624c11 - Firebase style push guids
View gen_pushid.pl
#!/usr/bin/perl
use v5.14;
use POSIX;
use Time::HiRes qw/time gettimeofday usleep/;
# Usage:
# my $newId = gen_pushid();
#
# Ported from:
# https://gist.github.com/mikelehen/3596a30bd69384624c11