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
Zepto -> | |
$(document).ready -> | |
# webview共通制御 | |
# チェックボックススタイル制御 | |
$('.app-control_icheck[data-icheck="enable"], .app-control_iradio[data-iradio="enable"]').iCheck | |
checkboxClass: 'app-input_icheck' | |
radioClass: 'app-input_iradio' | |
increaseArea: '20%' |
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
# Description: | |
# gitbucket to Slack | |
# | |
# Commands: | |
# None | |
module.exports = (robot) -> | |
robot.router.post "/gitbucket-to-slack/:room", (req, res) -> | |
{ room } = req.params | |
{ body } = req |
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
sudo grep '\/var\/www\/html' /etc/httpd/conf/httpd.conf | |
sudo sed -i 's/\/var\/www\/html/\/var\/www\/test/' /etc/httpd/conf/httpd.conf | |
sudo grep '\/var\/www\/test' /etc/httpd/conf/httpd.conf |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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 | |
auto_ssh() { | |
host=$1 #IP | |
id=$2 #user | |
pass=$3 #password | |
port=$4 #port | |
waitstr1=$5 #待機文字列 | |
cmdstr1=$6 #mysqlログインコマンド |
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
var app = require('http').createServer(handler); | |
var fs = require('fs'); | |
//var redis = require('redis'); | |
//var subscriber = redis.createClient(6379, 'localhost'); | |
var io = require('socket.io').listen(8000, { | |
key : fs.readFileSync('/etc/httpd/conf/keys/server.key').toString(), | |
cert : fs.readFileSync('/etc/httpd/conf/keys/server.crt').toString() | |
}); |
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
$path_str = “ログファイルパス”; | |
ob_start(); | |
var_dump(debug_backtrace()); | |
$ob_result = ob_get_contents(); | |
ob_end_clean(); | |
$filedata = date(“Y.m.d H:i:s”,time()).”\r\n”.$ob_result.”\r\n”; | |
file_put_contents($path_str,$filedata,FILE_APPEND); |
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
//================確認用処理待ちロジック================ | |
while(1){ | |
echo "処理続行しますか?\nyes or no: "; | |
// 標準入力から入力待ち | |
$line = trim(fgets(STDIN)); | |
if ($line == "yes") { | |
echo "処理を続行します\n"; | |
break; // 無限ループを抜ける | |
}elseif($line == "no"){ | |
echo "処理を終了します\n"; |
NewerOlder