Skip to content

Instantly share code, notes, and snippets.

View Yazan-Stash's full-sized avatar

Yazan Stash Yazan-Stash

View GitHub Profile
<?php
namespace App\Console\Commands;
use Illuminate\Support\Composer;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Console\GeneratorCommand;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
@Yazan-Stash
Yazan-Stash / install-postman.sh
Created March 10, 2019 14:33
Tired of a installing Postman the manual way, made this humble script to install in on Ubuntu
#!/bin/sh
# make sure and old installation file is not present
rm linux64
# download the latest version for a 64bit system
wget https://dl.pstmn.io/download/latest/linux64
# extract the downloaded file
tar -xzf linux64
@Yazan-Stash
Yazan-Stash / Envoy.blade.php
Created August 13, 2018 19:15
An example Envoy deployment script.
@servers(['web' => ['deployment-server@server-ip-address']])
@task('production', ['on' => 'web'])
cd /path/to/your/project/on/server
git checkout origin master
git pull origin master
composer install
php artisan migrate --force
php artisan optimize
chown -R USER:GROUP .