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 | |
# Slack Channel & Webhook URL | |
CHANNEL="#xxxxx" | |
WEBHOOKURL="https://hooks.slack.com/services/XXXXXX/XXXXXXXX/XXXXXXXXXXXXXXXXXX" | |
#Slackに通知 | |
function slack () { | |
MESSAGE="$1" | |
BOTNAME="KS STG Server" |
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
# -*- coding: utf-8 -*- | |
# Python 2.7.x | |
# https://www.tensorflow.org/versions/r0.10/tutorials/mnist/pros/index.html | |
# 計6層のモデルで MNIST 機械学習 ---> 92% | |
# 1. 畳み込み層 | |
# 2. プーリング層 | |
# 3. 畳み込み層 | |
# 4. プーリング層 |
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
<?php | |
// http://www.tabimoba.net/entry/2014/02/08/154120#.V9JP2pOLS34 | |
// https://github.com/symfony/symfony/issues/18177 | |
// http://qiita.com/ShibuyaKosuke/items/0b9a8fddaefb2060a14a | |
// より精密にフォーマットチェック&DNSチェック | |
// 利用できる特殊記号 半角英数字 . _ - | |
function checkEmailwithDNS($email, $check_dns = false) { | |
switch (true) { |
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
<?php | |
// http://www.tabimoba.net/entry/2014/02/08/154120#.V9JP2pOLS34 | |
// https://github.com/symfony/symfony/issues/18177 | |
// 検証フィルタのみのチェック | |
function checkEmail($email){ | |
return filter_var($email, FILTER_VALIDATE_EMAIL); | |
} |
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
# SSL証明書の有効期限を確認したいドメイン一覧 | |
DOMAIN_LIST="www.jugemjugem.jp | |
gokono-surikire.jp | |
www.kaijarisuigyo.co.jp | |
blog.suigyomatsu.com | |
blog.unraimatsu.com | |
blog.furaimatsu.com" | |
# Slack Channel & Webhook URL | |
CHANNEL="#general" |
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
<?php | |
date_default_timezone_set('Asia/Tokyo'); | |
require_once __DIR__ . '/vendor/autoload.php'; | |
define('APPLICATION_NAME', '祝祭日'); | |
define('CREDENTIALS_PATH', '~/.credentials/calendar-php-quickstart.json'); | |
define('CLIENT_SECRET_PATH', __DIR__ . '/client_secret.json'); | |
// If modifying these scopes, delete your previously saved credentials |
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 | |
# Run this shell script from Jenkins host. | |
# No-IP Account | |
[email protected] | |
PASS=password | |
# update target domains. | |
HOSTS='aaaaaa.bbb.ccc xxxxxx.yyy.zzz' |
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 | |
# builds全て削除 | |
rm -rf /var/lib/jenkins/jobs/*/builds | |
# nextBuildNumber削除 | |
for i in `ls /var/lib/jenkins/jobs/*/nextBuildNumber` ; do echo "1" > $i ;done | |
# Jenkins 再起動 | |
sudo /etc/init.d/jenkins restart |
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
""" | |
Python 3 | |
""" | |
import os | |
import glob | |
import argparse | |
import cv2 | |
from PIL import Image | |
import numpy as np |
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
# Python 3 | |
import cv2 | |
import sys | |
import os | |
args = sys.argv | |
argc = len(args) | |
cascade_path = "/usr/local/Cellar/opencv3/3.1.0_3/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" |