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 | |
# Source function library. | |
. /etc/init.d/functions | |
## tomcat installation directory | |
PROCESS_NAME=tomcat-caservicename | |
CATALINA_HOME="/home/lesstif/apache-tomcat-7.0.54/" |
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
" To use it, copy it to | |
" for Unix : ~/.vimrc | |
" Windog : $VIM\_vimrc | |
if &t_Co > 2 | |
syntax on | |
endif | |
set hlsearch |
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 | |
# | |
# GitLab | |
# Contributors : @elvanja, @troyanov, @eiyaya, @foyo23, @nielsbasjes, @relip, @JasonMing, @andronat, @axilleas, @mdirkse | |
# App Version : 6.x - 7.x | |
# chkconfig: 2345 82 55 | |
# processname: unicorn | |
# processname: sidekiq | |
# description: Runs unicorn and sidekiq for nginx integration. |
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
#This configuration has been tested on GitLab 6.0.0 and GitLab 6.0.1 | |
#Note this config assumes unicorn is listening on default port 8080. | |
#Module dependencies | |
# mod_rewrite | |
# mod_ssl | |
# mod_proxy | |
# mod_proxy_http | |
# mod_headers | |
NameVirtualHost *:443 |
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 | |
export RAILS_ENV=production | |
USER=`whoami` | |
PIDS="" | |
getpids() { | |
local procname=$1 | |
if [ "$#" = 0 ] ; then | |
echo $"Usage: getpids {procname} " |
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/php<?php | |
# comment 가 10자 미만이면 커밋 거부 | |
$minchars = 10; | |
$svnlook = 'svnlook'; | |
#-------------------------------------------- | |
$repos = $argv[1]; | |
$txn = $argv[2]; |
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 | |
// PHP echo server | |
$host = "0.0.0.0"; | |
$port = "30022"; | |
$blacklists = array(); | |
$options = getopt("h:p:b:"); | |
if (isset($options["h"])) { | |
$host = $options["h"]; |
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 | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
use PHPHtmlParser\Dom; | |
use PHPHtmlParser\Dom\Tag; | |
class HtmlTest extends TestCase |
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
server { | |
listen 80; | |
## edit this | |
server_name myhost.com; | |
## edit this | |
root "/var/www/myhost.com/public/"; | |
index index.php index.html index.htm; |
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 | |
# 패키지 목록 업데이트 | |
sudo apt-get update | |
# 시스템 패키지 업데이트 | |
sudo apt-get -y upgrade | |
# PPA 설치 | |
sudo apt-get install -y software-properties-common curl |
OlderNewer