Skip to content

Instantly share code, notes, and snippets.

View madeinnordeste's full-sized avatar
:octocat:
Coding

Luiz Alberto S. Ribeiro madeinnordeste

:octocat:
Coding
View GitHub Profile
@madeinnordeste
madeinnordeste / communicatti-jenkins-theme.css
Created January 31, 2018 20:39
communicatti jenkins theme
undefined#header{background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJIAAAArCAYAAACTvtEzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABV0RVh0Q3JlYXRpb24gVGltZQAxLzMxLzE4V8SNOAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAABFBSURBVHic7Zx5nBTVtce/t7pnpmcDZkRZVGSTVRA3FAx+sJSIhb5EwXoYXtS45OP2jBiNRsGIgglBRIlbEsWggWCFgAuUUUkRBAFBwwQXFhHZZBFkGRiYnumu+/64t+iapmeYMfN5IvTv8+lP17333HNvV517zrnnnmohpSSL7y6EEA3uM6X3xPOHLbnjvcYYP5AfozGYZfHdwZTeE8cBFzc232hjM8ziyMWMsyfes09wd1Ty4OFon176/ZyxW5t03hCPGgiZD3zI4FcStdFnNdIxgp2nTmh23t7kqJKEZG+E6rpoX1k24NrSqFzhw0fAv4EfAHX6QFmNdIwgKeiT75N/ZoVPcdLI+NzHLLrEaBfzJwv4H4CEBHzGYL8y4nD8sxrp2EGPpIB8H3pW+Ld91WnCmekE7WP+TEMLUdwXtMzxf4s97bBCBFlBOmYgoDmAD/iClgb8Y3unCb2C9qnLBjwq4L8CmpghWdBl+5P15Z8VpGMEUslHGM2ikjk+f+4wTvY4xYD70vu8vjtWVF/+WR/pKMGU3hN7ABcPW3LHhFpINoULuRK25Ijj5jVPmq23F54sIFNAqt5BqqxGOnpQJeHxl86dOLyW9iXBRa6EHVHBBwURdrYrL8rbHzWjQhL+JCRUyfpHO7Ma6ShBrsSXgC95/G9nT0xcUJ58MWirFnD8quFLdnSasDpX0unrqJCLiw2kj0gWxovuXlfSlL15B3n5QARe++Ly6Stf/teAUw04WwjaALnAjoTk04FN40
@madeinnordeste
madeinnordeste / vscode.blade.laravel.json
Created January 19, 2018 02:30
Visual Studio Code - Laravel Blade Templates Settings
{
"emmet.includeLanguages": {
"blade": "html"
},
"emmet.triggerExpansionOnTab": true,
"blade.format.enable": true,
"files.associations": {
"*.blade.php": "html"
}
}
@madeinnordeste
madeinnordeste / enviroment.sh
Created January 17, 2018 13:55
enviroment.sh
#!/bin/bash
if [ "$1" == "up" ] ; then
cd laradock && docker-compose up -d php-fpm nginx mysql phpmyadmin
echo ""
echo "WORKDIR: http://localhost"
echo ""
echo "PHPMYADMIN: http://localhost:8080"
echo ""
elif [ "$1" == "stop" ]; then
@madeinnordeste
madeinnordeste / laravel-with-laradock.md
Created October 11, 2017 18:33
Laravel on Laradock
<?php
include 'vendor/autoload.php';
$faker = Faker\Factory::create();
echo $faker->name;
#
# Verify captcha
$post_data = http_build_query(
array(
'secret' => CAPTCHA_SECRET,
'response' => $_POST['g-recaptcha-response'],
'remoteip' => $_SERVER['REMOTE_ADDR']
)
);
$opts = array('http' =>
<?php
// tutorial: https://www.youtube.com/watch?v=k3KfK0ZS_FY
// debuger: https://jwt.io/
// lcobucci/jwt
// Generate
// - - - - -
function token(){
@madeinnordeste
madeinnordeste / find-large-files.sh
Created February 3, 2017 14:18
Find large files in linux
find . -type f -size +500M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
@madeinnordeste
madeinnordeste / PatientTableSeeder.php
Created January 26, 2017 17:12
Laravel 5.3 Database Seeder Example
<?php
use Illuminate\Database\Seeder;
/*
To run on default db:seed add call to databases/seed/DatabaseSeeder.php
...
public function run()
{
...
@madeinnordeste
madeinnordeste / create_patients_table.php
Created January 26, 2017 17:09
Laravel 5.3 Migration Example
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePatientsTable extends Migration
{
/**
* Run the migrations.