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
#!/usr/bin/env bash | |
export PATH="$HOME/.phpenv/bin:/opt/local/bin:$PATH" | |
eval "$(phpenv init -)" | |
args="" | |
while [ "$1" != "" ] ; do | |
arg=$1 | |
if [[ $arg =~ NetBeansSuite.php && -f $(pwd)/nbproject/NetBeansSuite.php ]] ; then | |
# Change custom NetBeansSuite path | |
arg=$(pwd)/nbproject/NetBeansSuite.php |
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
---- | |
-- User configuration file for lsyncd. | |
-- | |
settings{ | |
logfile="/var/log/lsyncd/lsyncd.log", | |
statusFile="/var/log/lsyncd/lsyncd.status", | |
maxDelays=15 | |
} | |
--- |
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
#!/usr/bin/env bash | |
## | |
# | |
# Custom PHPUnit script for CakePHP on NetBaeans 8.0 | |
# | |
# @author Takashi Nojima [http://php-tips.com] | |
# @copyright 2014 Takashi Nojima | |
## | |
PROJECT_ROOT=$(cd "$(dirname "$(dirname "$0")")" && pwd) |
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 | |
// Route::controller の戻り値は void なので Route::pattern でパラメータをチェック | |
Route::pattern('ext', 'xml|json'); | |
// API 定義 | |
Route::controller('api/{resource}.{ext?}', 'ApiController'); | |
class ApiController extends \BaseController { | |
public function getIndex($resource, $ext = null) | |
{ |
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
description "gitlab service runner" | |
start on filesystem and started docker.io | |
stop on runlevel [!2345] | |
kill signal CONT | |
normal exit 0 CONT | |
respawn | |
setuid manager |
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 | |
/** | |
* This file read before Configure::load('app') | |
*/ | |
use Dotenv; | |
/** | |
* required setting | |
*/ |
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/env bash | |
## | |
# CVE-2015-0235 restart all services that using `glibc` | |
# | |
# original code: | |
# http://ma.ttias.be/critical-glibc-update-cve-2015-0235-gethostbyname-calls/#comment-10890 | |
## | |
servicelist=""; | |
for problemservice in `/usr/sbin/lsof 2> /dev/null | grep libc | awk '{print $1}' | sort -u`; do |
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
file.custom-handler: | |
fastcgi.connect: /tmp/fcgi.sock | |
hosts: | |
"127.0.0.1.xip.io:8080": | |
listen: | |
port: 8080 | |
paths: | |
"/": | |
file.dir: tmp/uzulla/app1 | |
redirect: |
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 | |
/** | |
* | |
* AppEmailComponent (for Japanese) | |
* | |
* Copyright 2010, nojimage (http://php-tips.com/) | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* |
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 | |
App::import('Behavior', 'Acl'); | |
/** | |
* Extend Acl Behavior | |
* | |
* PHP versions 4, 5 | |
* | |
* Copyright 2011, ELASTIC Consultants Inc. (http://elasticconsultants.com) |
OlderNewer