Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
################################################################################
# IP camera relay (Webcam/VAPIX relay) (C)2015-2019 nabe@abk
################################################################################
# This program is licensed under GPLv2 or later.
#
use strict;
use Socket qw(:all);
use Fcntl;
################################################################################
#!/usr/bin/perl
#-----------------------------------------------------------------------------
# Check SSL expiration
# (C)2019-2020 nabe / nabe@abk
#-----------------------------------------------------------------------------
# ./check_SSL_expiration.pl [-s] [notify_address]
# -s silent mode
#-----------------------------------------------------------------------------
use strict;
use Time::Local;
@nabe-abk
nabe-abk / ut_undelete.c
Created December 1, 2015 11:54
UFS2から削除したテキストファイルを復活する(ASCII/EUC/Shift-JISのみ対応)
/*
UFS2 text undelete
Lisence: GPL (C)2004/12/10 nabe@abk
Sorry, Comment is ja_JP.eucJP.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@nabe-abk
nabe-abk / gifcat.c
Last active December 1, 2015 11:53
GIF cat ( x86 only )
/*
* gifcat library
*
*[TAB=8], [EUC-JP]
*
* Copyright(C)2005 nabe@abk
* Last update : 2005/05/30
* ************************************************** *
* This program lisenced under MIT
* ************************************************** *
################################################################################
# Nonblocking io for perl/socket (PDS)
################################################################################
sub set_block {
my $sock = shift;
return &set_nonblock($sock, 1);
}
sub set_nonblock {
my $sock = shift;
my $block = shift;
@nabe-abk
nabe-abk / ssdp-relay.pl
Last active October 16, 2018 11:22
UPnP/DLNA multicast relay server
#!/usr/bin/perl
################################################################################
# DLNA multicast relay (C)2015/11/13 nabe@abk / GPLv2 or later
################################################################################
use strict;
use Socket;
use IO::Select;
use IO::Interface::Simple;
use IO::Socket::Multicast;
@nabe-abk
nabe-abk / ssdp-test.pl
Last active May 4, 2020 19:11
SSDP discover sample program for perl/socket
#!/usr/bin/perl
################################################################################
# SSDP discover Written by nabe@abk / This is PDS
################################################################################
use strict;
use Socket;
my $CAST = '239.255.255.250';
my $PORT = 1900;
################################################################################