This file contains 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
(function(){ | |
var TARGET_URL = 'https://example.com/items/'; | |
var SUFFIX = '/?type=thanks'; | |
var tagUID = [%comodity_tag_uid_list%]; | |
for(var i = 0,len = tagUID.length;i < len;i++){ | |
if( tagUID[i] == 1 ){ | |
var itemID = '%productid%'; | |
if( itemID.indexOf('-') >= 0 ){ | |
itemID = itemID.substring(0,itemID.indexOf('-')); | |
} |
This file contains 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
(function(g){ | |
var KEYNAME = 'yclid'; | |
var TARGET_URL = 'https://www.mlritz.com/shop.php'; | |
if( 'KEYNAME' in g ){ | |
KEYNAME = g.KEYNAME; | |
} | |
if( 'TARGET_URL' in g ){ | |
TARGET_URL = g.TARGET_URL; | |
} |
This file contains 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
DROOT="./" | |
SPORT="8111" | |
if [ "$1" != "" ] | |
then | |
DROOT="$1" | |
fi | |
if [ "$2" != "" ] | |
then | |
SPORT="$2" | |
fi |
This file contains 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 | |
logterm=14 | |
logpath="***LOGPATH***" | |
logfile="app.log" | |
fullname=$logpath$logfile | |
newlogfilename=$logpath${logfile%.*}.`date '+%Y%m%d' -d "1 days ago"`.log | |
dellogfilename=$logpath${logfile%.*}.`date '+%Y%m%d' -d "$logterm days ago"`.log | |
cp $fullname $newlogfilename |
This file contains 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 | |
LOGTIME=`date +'%Y%m%d'` | |
echo "start:`date +'%Y/%m/%d %H:%M:%S'`" >> /home/hatabo/shell/aide/aide$LOGTIME.log | |
/usr/sbin/aide --update >> /home/hatabo/shell/aide/aide$LOGTIME.log | |
echo "copy aide.db.new.gz => /var/lib/aide/aide.db.gz" >> /home/hatabo/shell/aide/aide$LOGTIME.log | |
/bin/cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz | |
echo "start:`date +'%Y/%m/%d %H:%M:%S'`" >> /home/hatabo/shell/aide/aide$LOGTIME.log |
This file contains 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
<?php | |
add_post_type_support( 'page', 'excerpt' ); // add excerpt | |
/* | |
Add OGP | |
/*-------------------------------------------*/ | |
add_action( 'wp_head', 'vkExUnit_print_og', 20 ); | |
function vkExUnit_print_og() { | |
global $vkExUnit_sns_options; |
This file contains 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
function getRandomInt(min, max){ | |
return Math.floor(Math.random() * (max - min + 1)) + min | |
} |
This file contains 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
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function ($) { | |
$.event.special.textchange = { |
This file contains 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
for i in 16 17 18 19 20 21 22; do echo ${i}:`cat ~/temp/maillog.20170203.csv |grep "^2016/02/01 ${i}:"|wc -l`; done; |
This file contains 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 | |
# sh copy_maillog.sh [hostfile list] | |
# | |
# HostFile List Format | |
# | |
# ----------------------- | |
# RemoteUser Domain Port | |
# ----------------------- | |
# ex) | |
# tomhat host1.example.com 22 |
NewerOlder