Skip to content

Instantly share code, notes, and snippets.

View torniker's full-sized avatar
🐒
monkeying

Tornike Razmadze torniker

🐒
monkeying
View GitHub Profile

Keybase proof

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:

@torniker
torniker / build.sh
Last active February 16, 2016 19:41
script for retrieving and building laravel project from github
#!/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
@torniker
torniker / domain.com
Last active February 9, 2016 12:03
Nginx Config
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;
@torniker
torniker / laravel-server-commands.sh
Last active February 16, 2016 09:09
List of commands to setup a server for laravel
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"
],
@torniker
torniker / nginx.conf
Created May 13, 2015 11:16
Nginx phpfmp configuration for laravel
upstream phpfcgi {
server phpfpm:9000;
}
server {
listen 80 default;
server_name local.dev;
root /var/www/public;
index index.php index.html index.htm;