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
USER=rentzsch | |
PASS=mypassword | |
REPO=mogenerator | |
# Delete default labels | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/bug" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/duplicate" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/enhancement" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/invalid" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$USER/$REPO/labels/question" |
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
CREATE SCHEMA IF NOT EXISTS public; | |
SET SEARCH_PATH TO PUBLIC; | |
CREATE TABLE IF NOT EXISTS locations ( | |
id BIGSERIAL PRIMARY KEY, | |
language CHAR(2) DEFAULT NULL, | |
formatted_address VARCHAR(160) DEFAULT NULL, | |
city VARCHAR(100) DEFAULT NULL, | |
country VARCHAR(100) DEFAULT NULL, | |
latitude REAL DEFAULT NULL, |
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
#template for phalcon+nginx+php-fpm sites-enabled | |
upstream phalcon-php-fpm { | |
server unix:/var/run/php5-fpm.sock; | |
#server 127.0.0.1:9001; | |
} | |
server { | |
listen 80; | |
server_name $SERVER_NAME; |
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
upstream yii-php-fpm { | |
server unix:/var/run/php5-fpm.sock; | |
#server 127.0.0.1:9001; | |
} | |
server { | |
listen 80 default; | |
server_name localhost; |
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
<?php | |
/** | |
* DatetimeFilter | |
* | |
* @author glue | |
* @date 30.12.14 | |
* @example usage | |
* |
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
user www-data; | |
worker_processes 20; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
worker_rlimit_nofile 30000; | |
events { | |
worker_connections 2048; | |
} |
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
upstream phalcon-php-fpm { | |
server unix:/var/run/php5-fpm.sock; | |
#server 127.0.0.1:9001; | |
} | |
server { | |
listen 80; | |
server_name sitename.loc; #do not forget to add "127.0.0.1 sitename.loc" string to your /etc/hosts | |
set $root_path '/home/user/proj/phalcon/sitename/public'; |
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
upstream symfony2-php-fpm { | |
server unix:/var/run/php5-fpm.sock; | |
#server 127.0.0.1:9001; | |
} | |
server { | |
listen 80; | |
server_name sitename; | |
root /var/www/$host/web; |