- Ubuntu Linux for both development and production
- Git version control system
- Jenkins CI build server (but recently I'm moving to git server-side hooks with ssh from git server to dev/stage/prod servers)
- Redmine bug tracking system
- JetBrains PyCharm IDE
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
http://stackoverflow.com/questions/20077208/nginx-reverse-proxy-a-ghost-blog-with-subfolder-redirect | |
http://stackoverflow.com/questions/19817755/create-uri-in-nginx-for-a-ghost-blog | |
http://fuad.me/install-multiple-ghost-blogs-in-one-linux-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
server { | |
# listen 80; ## listen for ipv4; this line is default and implied | |
root /srv/dlf; | |
index index.php index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name _; | |
location = /favicon.ico { |
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 -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production | |
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production | |
# чтоб запустить перезапустить или еше чтото | |
:/home/git/gitlab# /etc/init.d/gitlab | |
Usage: sudo service gitlab {start|stop|restart|reload} |
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
... | |
if ($host ~ "(beta|alpha).domain.com" ) { | |
return 555; | |
} | |
error_page 555 = @auth; | |
location @auth { | |
auth_basic "Restricted"; | |
auth_basic_user_file /home/..../.htpasswd; |
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 apt-get install python-software-properties | |
sudo -s | |
nginx=stable # use nginx=development for latest development version | |
add-apt-repository ppa:nginx/$nginx | |
apt-get update | |
apt-get install nginx |
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
free -m | |
or | |
dmidecode --type memory |
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
require 'facebook-php-sdk/src/facebook.php'; | |
4 | |
5 $facebook = new Facebook(array( | |
6 'appId' => '82178x12503x4x', | |
7 'secret' => 'f4dad06ae9xxxxxxxx', | |
8 )); | |
9 | |
10 $posts = $facebook->api('/nickname/feed?limit=20'); | |
11 | |
12 foreach($posts['data'] as $post){ |
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
mysql -uroot --default-character-set=utf8 dbname < update_document_type.sql | |
CREATE DATABASE `dbname` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; |
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
rsync -rtvuc source_folder/ destination_folder/ | |
source: http://www.jveweb.net/en/archives/2010/11/synchronizing-folders-with-rsync.html |