Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Hélio insign

🎯
Focusing
Block or report user

Report or block insign

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@manjurulhoque
manjurulhoque / Deployment Guide for Ubuntu Server from Scratch with Laravel.md
Last active Mar 13, 2020
Deployment Guide for Ubuntu Server from Scratch with Laravel
View Deployment Guide for Ubuntu Server from Scratch with Laravel.md

Setting Up Laravel in Ubuntu / DigitalOcean

Getting Started

  • Create droplet with Ubuntu 18.10
  • ssh root@[DROPLET IP ADDRESS]
  • Get password from your email
  • Change password on first login
  • adduser laravel
  • Enter password and other information
@vicgonvt
vicgonvt / deployment_guide.md
Last active May 25, 2020
Deployment Guide for Ubuntu Server from Scratch with Laravel
View deployment_guide.md
@rolandstarke
rolandstarke / laravel setup.sh
Last active Mar 24, 2020
Server setup bash script for Laravel
View laravel setup.sh
# Ubuntu 18.04 LTS Server Setup for Laravel
# Login as root user
sudo su -
# Update list of available packages
apt update
@ilhamarrouf
ilhamarrouf / setup.txt
Last active Mar 13, 2020
PHP NGINX MYSQL UBUNTU
View setup.txt
#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version.
This tutorial is the improvised verision of this [tutorial on Digitalocean](https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04) based on my experience.
## Install PHP 7 on Ubuntu
Run the following commands in sequence.
```
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 zip unzip
@garygreen
garygreen / 2018_02_13_142413_add_renews_at_column_to_subscriptions.php
Last active Mar 19, 2020
Sync Stripe Renewal Date for all subscriptions - Laravel Console Command
View 2018_02_13_142413_add_renews_at_column_to_subscriptions.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRenewsAtColumnToSubscriptions extends Migration
{
/**
* Run the migrations.
View template-refatorado.js
function t(str, data){
const strReplace = (str, key) => str.replace( new RegExp('{'+key+'}','g'), data[key] );
return Object.keys(data).reduce(strReplace, str);
}
@stormwild
stormwild / composer-install.sh
Last active Feb 17, 2019
Composer install shell script
View composer-install.sh
# php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
# php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
# php composer-setup.php --install-dir=/usr/local/bin --filename=composer
# php -r "unlink('composer-setup.php');"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"
@naveenyagati
naveenyagati / Laravel PHP7 LEMP DigitalOcean.md
Last active Mar 13, 2020
Configuration for Installing Laravel with LEMP on Ubuntu 16.04 on Digital Ocean
View Laravel PHP7 LEMP DigitalOcean.md

Steps to install latest Laravel with LEMP on Digital Ocean Ubuntu 16.4

This tutorial is made based upon my experiences.In DigitalOcean Firewall in Configured by default so no changes are needed.Let's Encrypt has been pre-installed for us in Digita Ocean, please see: http://do.co/le-nginx

Install PHP 7 on Ubuntu

sudo apt-get update
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 install zip unzip
sudo apt-get install -y php7.0 php7.0-fpm php7.0-mysql php7.0-zip php7.0-gd
@matthewjberger
matthewjberger / instructions.md
Last active May 21, 2020
Install a nerd font on ubuntu
View instructions.md

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@radermacher
radermacher / forge.sh
Created Mar 18, 2017
Laravel Forge Setup Script
View forge.sh
#
# REQUIRES:
# - server (the forge server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
#
You can’t perform that action at this time.