Version: 2.1.1
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| #!/bin/bash | |
| # Colors for better readability | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[0;33m' | |
| NC='\033[0m' # No Color | |
| # Set starting directory - default is current directory | |
| START_DIR="${1:-.}" |
| apt-get update | |
| # Install dependencies | |
| apt-get install -y --no-install-recommends \ | |
| libtinfo5 libtinfo-dev \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| libglib2.0-dev \ | |
| libxml2 \ |
| <?php | |
| $finder = Symfony\Component\Finder\Finder::create() | |
| ->notPath('bootstrap/*') | |
| ->notPath('storage/*') | |
| ->notPath('vendor') | |
| ->notPath('nova') | |
| ->notPath('spark') | |
| ->in([ | |
| __DIR__ . '/app', |
| # Zero-downtime deployment script for Laravel Forge | |
| # | |
| # !!! WARNING FOR FIRST DEPLOYMENT !!! | |
| # | |
| # 1. Proceed with caution! | |
| # During first setup this script will backup your .env file and storage folder, then DELETE your existing app directory. | |
| # Make sure you don't have any important files inside your app directory and take a backup up beforehand as needed. | |
| # | |
| # 2. Your web server should now point at /current/public instead of /public | |
| # |
| # How to use: | |
| # 1- Fill in fromHandle, toHandle, personalAccessToken and repositories | |
| # 2- Run this script from Terminal: | |
| # | |
| # ruby ./github-transfer.rb | |
| # | |
| # 3- There's no step 3. | |
| require 'json' | |
| require 'uri' | |
| require 'net/http' |
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', | |
| 'operators' => ['=>' => null], |
| var XmlString = function() { | |
| var wrapInTag = function(tagName, string) { | |
| return "<" + tagName + ">" + string + "</" + tagName + ">"; | |
| }; | |
| var toTags = function(entries) { | |
| var output = ""; | |
| for (var i = 0; i < entries.length; i++) { | |
| if (!entries[i][2]) { |
| @if($message = Session::get('error')) | |
| <div class="alert alert-danger">{{ $message }}</div> | |
| @endif | |
| @if($message = Session::get('errors')) | |
| <div class="alert alert-danger">{{ $message->first() }}</div> | |
| @endif | |
| @if($message = Session::get('success')) | |
| <div class="alert alert-success">{{ $message }}</div> |
| <?php | |
| return PhpCsFixer\Config::create() | |
| ->setRules(array( | |
| '@PSR2' => true, | |
| 'array_syntax' => array('syntax' => 'short'), | |
| 'combine_consecutive_unsets' => true, | |
| 'method_separation' => true, | |
| 'no_multiline_whitespace_before_semicolons' => true, | |
| 'single_quote' => true, |