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
First, create nginx user account: | |
useradd -c 'Nginx user' -d /var/lib/nginx -s /bin/false nginx | |
Then download nginx and nginx-upstream-fair* module sources: | |
cd /usr/src | |
wget http://sysoev.ru/nginx/nginx-0.8.53.tar.gz | |
wget --no-check-certificate http://github.com/gnosek/nginx-upstream-fair/tarball/master | |
Extract those files and you'll got two directories: | |
/usr/src/nginx-0.8.53 |
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 | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# config: /etc/sysconfig/nginx |
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 nobody; | |
worker_processes 4; | |
error_log /var/log/nginx/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
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
pt-BR: | |
views: | |
admin: | |
home: | |
name: Home | |
pagination: | |
previous: "« Anterior" | |
next: "Próximo »" | |
truncate: "…" | |
misc: |
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
3. System Users | |
~ # adduser -s /bin/sh -c 'Git Version Control' git | |
~ # adduser -s /sbin/nologin -c 'GitLab' gitlab | |
then proceed with normal steps. | |
4. Gitolite | |
Fix "git" directory permissions: |
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
--- mariadb-5.5.31/client/mysql.cc 2013-07-14 01:13:16.594865591 -0300 | |
+++ mariadb-5.5.31-safe-client/client/mysql.cc 2013-07-14 01:13:19.358678907 -0300 | |
@@ -93,6 +93,11 @@ | |
#define HAVE_READLINE | |
#define USE_POPEN | |
#endif | |
+ | |
+#ifdef HAVE_PWD_H | |
+#include <pwd.h> | |
+#endif /* HAVE_PWD_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
package Cpanel::CustomEventHandler; | |
# cpanel12 - CustomEventHandler.pm Copyright(c) 2008 cPanel, Inc. | |
# All rights Reserved. | |
# [email protected] http://cpanel.net | |
# This code is subject to the cPanel license. Unauthorized copying is prohibited | |
# | |
# VERSION 1.0 | |
# |
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
# Info/code for this file were borrowed from the following places: | |
# http://bit.ly/174dkWL | |
# https://gist.github.com/adamcrown/932231 | |
# https://gist.github.com/patmcnally/893833 | |
begin | |
# ansi colors | |
ANSI = {} | |
ANSI[:RESET] = "\e[0m" |
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
~ # redis-benchmark -s /var/run/redis/redis.sock -q -n 10000 | |
PING_INLINE: 156250.00 requests per second | |
PING_BULK: 196078.44 requests per second | |
SET: 212765.97 requests per second | |
GET: 185185.19 requests per second | |
INCR: 217391.30 requests per second | |
LPUSH: 200000.00 requests per second | |
LPOP: 222222.22 requests per second | |
SADD: 204081.64 requests per second | |
SPOP: 217391.30 requests per second |
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
➜ ~ boot2docker ssh | |
## . | |
## ## ## == | |
## ## ## ## ## === | |
/"""""""""""""""""\___/ === | |
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ | |
\______ o __/ | |
\ \ __/ | |
\____\_______/ | |
_ _ ____ _ _ |
OlderNewer