title: Setting Up Laravel in Ubuntu / DigitalOcean keywords: servers, laravel, coderstape, coder's tape description: Let's take a look at settting up a server from scratch for Laravel. date: April 1, 2019 tags: servers, laravel permalink: setting-up-laravel-in-ubuntu-digitalocean img: https://coderstape.com/storage/uploads/GZTXUbyGum2xeUZM9qBD5aPv8EKLwG3C8RGcRon4.jpeg author: Victor Gonzalez authorlink: https://github.com/vicgonvt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Recommended: Run file as administrator | |
| import os | |
| import time | |
| start = time.time() | |
| pwd = os.getcwd() | |
| y = 0 | |
| for x in os.walk("."): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE proc [dbo].[sp_MSforeachtable] | |
| @command1 nvarchar(2000), @replacechar nchar(1) = N'?', @command2 nvarchar(2000) = null, | |
| @command3 nvarchar(2000) = null, @whereand nvarchar(2000) = null, | |
| @precommand nvarchar(2000) = null, @postcommand nvarchar(2000) = null | |
| AS | |
| declare @mscat nvarchar(12) | |
| select @mscat = ltrim(str(convert(int, 0x0002))) | |
| if (@precommand is not null) | |
| exec(@precommand) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Run npm install puppeteer colors axios cli-progress | |
| // Run `node index.js` | |
| const puppeteer = require('puppeteer'); | |
| const fs = require('fs'); | |
| const axios = require('axios'); | |
| const colors = require('colors'); | |
| const cliProgress = require('cli-progress'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Stackoverflow Try-Catch": { | |
| "prefix": "trycatch", | |
| "body": [ | |
| "try{", | |
| " ${1:// Something}", | |
| "} catch(error) {", | |
| " ${2:console.error('Exception ' + error);", | |
| " ${3:window.open('https://stackoverflow.com/search?q=[js]' + error.message, '_blank');}}", | |
| "}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <!-- Bootstrap links --> | |
| </head> | |
| <body> | |
| <div class="col-xs-12 col-md-12 col-lg-12 gmap_canvas_height"> | |
| <div id="gmap_canvas" style="height:500px;width:100%;"></div> | |
| </div> | |
| <script type="text/javascript"> | |
| function init_map() { |