firefox alert image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##-- makedate: 日付文字列の作成 | |
sub makedate { | |
my($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=(localtime); | |
sprintf( "%04.4d%02.2d%02.2d%02.2d%02.2d%02.2d", | |
1900+$year,$mon+1,$mday,$hour,$min,$sec); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
<!-- | |
function str2japan_phone_number(org) { | |
// Japan Phone Number add Hyphen | |
// c.f. http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/index.html | |
// c.f. http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/q_and_a-2001aug.html | |
// c.f. http://oshiete.goo.ne.jp/qa/2888873.html | |
var num_format = new Array( | |
// special numbers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# set IP address with Amazon-VPC ENI(Elastic Network Interface) address and other. | |
# get eth0/1 MAC addresses | |
MACADDR0=`cat /sys/class/net/eth0/address` | |
MACADDR1=`cat /sys/class/net/eth1/address` | |
# get eth0/1 IP addresses on ENI | |
IPADDR0=`/usr/bin/curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/${MACADDR0}/local-ipv4s/`; | |
IPADDR1=`/usr/bin/curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/${MACADDR1}/local-ipv4s/`; | |
# ifconfig on eth1 (ENI) | |
/sbin/ifconfig eth1 inet ${IPADDR1} netmask 255.255.255.0 2>&1 >> /tmp/seteth1.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
my $line; | |
my $param; | |
my @params; | |
while($line=<STDIN>) { | |
my @keys; | |
my @vals; | |
chomp($line); | |
@params=split(/\t/,$line); | |
foreach $param (@params) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use OAuth::Lite::Consumer; | |
use Data::Dumper; | |
$ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL"; | |
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; | |
$ENV{HTTPS_PROXY} = 'http://192.168.11.254:8080'; | |
my $consumer = OAuth::Lite::Consumer->new( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "b9814cc7.854288", | |
"type": "template", | |
"z": "cec74554.ecbe", | |
"name": "JSON template", | |
"field": "payloadrule", | |
"fieldType": "msg", | |
"format": "json", | |
"syntax": "plain", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This version uses September 2016 rpi jessie image, please use this image | |
# | |
if [ "$EUID" -ne 0 ] | |
then echo "Must be root" | |
exit | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "34d42654.9be66a", | |
"type": "switch", | |
"z": "1f17baae.3051ed", | |
"name": "補正あり", | |
"property": "payload", | |
"propertyType": "msg", | |
"rules": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# password setter for Node-RED on Raspberry Pi | |
# auther: [email protected] | |
# | |
# usage: bash nrpiadminpass.sh password | |
# | |
# this script will change Pi default Node-RED file. | |
# after that, you need nodered restart with node-red-restart | |
# password |
OlderNewer