I hereby claim:
- I am torniker on github.
- I am torniker (https://keybase.io/torniker) on keybase.
- I have a public key ASBiauVMD38_Dea9T0D8SrO4IwARoEa04KbUi37RGUvpzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
export DATE=$(date +%Y-%m-%d-%H-%M) | |
export CURDIR=$(readlink -f /home/user/current) | |
cd /home/user/deploy/files && wget -O projectmaster.zip -q https://github.com/username/repository/archive/master.zip | |
# Second, unzip it, if the zip file exists | |
if [ -f /home/user/deploy/files/projectmaster.zip ]; then | |
unzip -q /home/user/deploy/files/projectmaster.zip |
server { | |
listen 80; | |
listen 443 ssl; | |
server_name domain.com; | |
root "/home/user/current/public"; | |
index index.html index.htm index.php; | |
charset utf-8; |
sudo apt-get install python-software-properties | |
sudo apt-get update | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get install -y language-pack-en-base | |
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.0 php7.0-mysql php7.0-fpm nginx | |
sudo apt-get install php7.0-gd php7.0-curl php7.0-mcrypt php7.0-sqlite3 php7.0-json | |
sudo phpenmod mcrypt | |
sudo phpenmod gd |
[ | |
{ "keys": ["F1"], "command": "goto_documentation" }, | |
{ "keys": ["ctrl+enter"], "command": "find_use"}, | |
{ "keys": ["alt+enter"], "command": "goto_definition_scope"}, | |
{ "keys": ["super+shift+r"], "command": "reveal_in_side_bar"}, | |
{ "keys": ["alt+i"], "command": "import_namespace"}, | |
] |
{ | |
"autocomplete": true, | |
"autoimport": true, | |
"enable_auto_align": false, | |
"format_on_save": true, | |
"ignore": "Parent", | |
"indent_with_space": 4, | |
"passes": | |
[ | |
"ReindentSwitchBlocks", |
{ | |
// Default pattern | |
"start_dir_pattern": "^.*?((?:[\/\\\\][A-Z][^\/\\\\]*)+)$", | |
"namespace_prefix": "App", | |
"exclude_dir": [], | |
// Need the php binary to work | |
"allow_use_from_global_namespace" : true, | |
// Use "inline" to include the namespace just after the <?php opening tag |
{ | |
"codeformatter_php_options": { | |
"syntaxes": "php", // Syntax names which must process PHP formatter | |
"php_path": "/usr/local/bin/php", // Path for PHP executable, e.g. "/usr/lib/php" or "C:/Program Files/PHP/php.exe". If empty, uses command "php" from system environments | |
"format_on_save": true, // Format on save | |
"psr1": false, // Activate PSR1 style | |
"psr1_naming": false, // Activate PSR1 style - Section 3 and 4.3 - Class and method names case | |
"psr2": true, // Activate PSR2 style | |
"indent_with_space": 4, // Use spaces instead of tabs for indentation | |
"enable_auto_align": false, // Enable auto align of = and => |
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Theme - Brogrammer/brogrammer.tmTheme", | |
"detect_intentation": false, | |
"draw_white_space": "all", | |
"font_options": | |
[ | |
"gray_antialias" | |
], |
upstream phpfcgi { | |
server phpfpm:9000; | |
} | |
server { | |
listen 80 default; | |
server_name local.dev; | |
root /var/www/public; | |
index index.php index.html index.htm; |