Skip to content

Instantly share code, notes, and snippets.

View vs0uz4's full-sized avatar
🏠
Working from home

Vitor Rodrigues vs0uz4

🏠
Working from home
View GitHub Profile
@vs0uz4
vs0uz4 / deploy_app_laravel_digital_ocean
Last active August 29, 2015 14:23 — forked from vedovelli/deploy_app_laravel_digital_ocean
Passo a passo para um deploy na Digital Ocean
1. Crie uma conta no Digital Ocean;
2. Crie um droplet Ubuntu (estas instruções são baseadas em Ubuntu)
3. Escolha o pacote LEMP para ser instalado com seu Ubuntu
4. Escolha ou associa sua chave publica para acesso ao servidor
5. Acesse seu server usando SSH (ssh root@<ip informado pelo DO>)
@servers(['staging' => 'root@192.168.0.99', 'production' => 'root@192.168.0.100'])
<?php
$app_name = 'l5eka';
$app_path = '/var/www/vhosts/'.$app_name;
$repo = 'https://github.com/vedovelli/l5eka';
$branch = 'aula4';
$keep = 6;
$timezone = 'America/Sao_Paulo';
@vs0uz4
vs0uz4 / HasRandomStatementTrait.php
Last active August 29, 2015 14:26 — forked from vluzrmos/HasRandomStatementTrait.php
Laravel Eloquent Agnostic Random Statement
<?php
trait HasRandomStatementTrait
{
/**
* Random Statements by driver name.
* @var array
*/
protected $randomStatements = [
'mysql' => 'RAND()',
@vs0uz4
vs0uz4 / principais_packages.md
Last active August 29, 2015 14:26 — forked from vluzrmos/principais_packages.md
Lista dos principais packages para Laravel citados no 16º Hangout Laravel Brasil.

https://github.com/dimsav/laravel-translatable - Traduzir os models https://github.com/boxfrommars/rutorika-sortable - Ordenar os models https://github.com/caouecs/Laravel-lang - Lista com mais de 46 linguages das mensagens do laravel https://github.com/barryvdh/laravel-snappy - Gerador de PDF que extende as funcionalidade do Blade https://github.com/KennedyTedesco/Validation - Extende a validação do Laravel https://github.com/prettus/l5-repository - Repository Pattern https://github.com/VentureCraft/revisionable - Histórico de modificações dos models https://github.com/jarektkaczyk/revisionable - Histórico de modificações dos models https://github.com/dingo/api - APIs https://github.com/thephpleague/fractal - Presenters e Transformers para sua API

@vs0uz4
vs0uz4 / things-install-linux.md
Last active February 4, 2017 02:09 — forked from marcosrjjunior/things-install-linux.md
My environment development after install Linux.
[{"id":1,"name":"(512) Brewing Company","address1":"407 Radam, F200","address2":"","city":"Austin","state":"Texas","code":"78745","country":"United States","phone":"512.707.2337","website":"http:\/\/512brewing.com\/","filepath":"","descript":"(512) Brewing Company is a microbrewery located in the heart of Austin that brews for the community using as many local, domestic and organic ingredients as possible.","add_user":0,"last_mod":"2010-07-22 20:00:20","beers":[{"id":5735,"brewery_id":1,"name":"(512) Wit","cat_id":5,"style_id":67,"abv":5.2,"ibu":0,"srm":0,"upc":0,"filepath":"","descript":"Made in the style of the Belgian wheat beers that are so refreshing, (512) Wit is a hazy ale spiced with coriander and domestic grapefruit peel. 50% US Organic 2-row malted barley and 50% US unmalted wheat and oats make this a light, crisp ale well suited for any occasion.","add_user":0,"last_mod":"2010-07-22 20:00:20"},{"id":5736,"brewery_id":1,"name":"(512) Pale","cat_id":3,"style_id":26,"abv":5.8,"ibu":0,"srm":0,"upc":0,"
@vs0uz4
vs0uz4 / m3u8-concat.sh
Created June 11, 2016 16:10 — forked from maxwellito/m3u8-concat.sh
Concat / join .ts segment files into an mp4 file
#!/bin/sh
# This script must be executed in the repo where
# the *.ts files are.
# It will concatenate the segments into one temp
# file which ffmpeg will reencode the audio track.
# By default the ouptup filename is output.mp4
# but can be changed by providing the name as parameter.
#
# ffmpeg is required
@vs0uz4
vs0uz4 / pbcopy-and-pbpaste-in-arch-linux.md
Created August 1, 2017 13:42
Get pbcopy and pbpaste in Arch Linux

Get pbcopy and pbpaste in Arch Linux

First you need the 'xsel' package.

$> pacman -S xsel

Then create aliases.

alias pbcopy='xsel --clipboard --input'

alias pbpaste='xsel --clipboard --output'

@vs0uz4
vs0uz4 / PKGBUILD
Created September 30, 2017 13:12 — forked from agentsib/PKGBUILD
DBeaver EE 4.0.4
# Maintainer: Joseph Post <joe@jcpst.com>
# Previous Maintainer: Stephan Wienczny <stephan@wienczny.de>
pkgname=dbeaver-ee
pkgver=4.0.4
pkgrel=1
pkgdesc="A free universal database tool for developers and database administrators. Enterprise Edition includes NoSQL database support"
arch=('i686' 'x86_64')
url="http://dbeaver.jkiss.org/"
license=("GPL")
@vs0uz4
vs0uz4 / download-egghead-io-videos.md
Created October 15, 2017 21:30 — forked from shivamkr19/download-egghead-io-videos.md
Download free egghead.io videos

Download free egghead.io videos

Download Egghead.io videos using Lynx Browser and youtube-dl. This method will only work for videos that do not require a pro account.

Prerequesits

You need a Unix/Linux box with Lynx console browser and Youtube-dl installed.