Skip to content

Instantly share code, notes, and snippets.

View emmanuelbarturen's full-sized avatar
🌱
Give me an challenge

Emmanuel Barturen emmanuelbarturen

🌱
Give me an challenge
View GitHub Profile
@mzarallo
mzarallo / .env.ci
Last active April 26, 2024 17:08
Github action to test your application in Laravel and deploy via SSH
APP_KEY=
APP_ENV=local
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
@dilverdev
dilverdev / post-receive.sh
Created May 13, 2021 14:32
Deploy bot discord
#!/bin/sh
. /root/.nvm/nvm.sh
export WEBHOOK_URL=""
nameBot="Deploy"
project=frontend-web
curl -H "Content-Type: application/json" -d '{"username": "'"$nameBot"'", "content": "Deployando '"$project"'"}' $WEBHOOK_URL
mkdir /var/www/$project/builds/"build-$(date +"%Y%m%d%M%S")"
cd /var/www/$project/builds
@dilverdev
dilverdev / removeOverlay.js
Created May 30, 2020 22:28
Remove overlay
const removeOverlay = () => {
const overlay = document.getElementById('signwall-app')
overlay.remove()
const body = document.querySelector('body')
body.classList.remove('overflow-hidden')
body.style.overflow = 'scroll'
const html = document.querySelector('html')
html.classList.remove('overflow-hidden')
@dilverdev
dilverdev / deploy_node.sh
Last active May 13, 2021 17:08 — forked from cvega93/deploy_git.sh
Easy automatic deploy bash for dummies
#!/bin/sh
projectname=$1;
# sh deploy-node [name]
cd /var/www;
mkdir $projectname;
cd $projectname;
touch ".env";
touch ".env";
mkdir builds;
@emmanuelbarturen
emmanuelbarturen / create_package_for_laravel.md
Last active August 17, 2022 20:01
Build a laravel package on laravel homestead

Directory Structure

code 
└───dev-packages
│   │
|   └─── <vendor-name>
│   │   |
|   |   └─── <package-name>
│   │   |   | README.md
@cvega93
cvega93 / Culqi class para Vue.js
Created February 13, 2018 21:02
Clase para obtener un evento asíncrono de Culqi
<template>
<div class="card">
<form action="#" class="form-monkey form-buy-membreship" id="culqi-card-form">
<div class="row">
<div class="block-form">
<div class="col-sm-6">
<div class="form-group">
<label for="card[email]">Email</label>
<input type="text" class="form-control" placeholder="Correo electrónico"
v-model="user.email"
@emmanuelbarturen
emmanuelbarturen / check mail with tinker
Last active July 25, 2020 18:59
check if mail service working correctly from artisan
# ssh into the server
# go to the laravel project
$ php artisan tinker
# Example 1 , from view
$ Mail::send('errors.401',[],function($message){$message->to('emmanuelbarturen@gmail.com')->subject('this works!');});
# Example 2, plain text
Mail::raw('Hi Mail Service',function($message){$message->to('emmanuelbarturen@gmail.com')->subject('this works!');});
@emmanuelbarturen
emmanuelbarturen / testing mail in droplet with laravel
Created November 3, 2017 23:12
send email from artisan with tinker of laravel
# SSH into droplet
# go to project
$ php artisan tinker
$ Mail::send('errors.401', [], function ($message) { $message->to('emmanuelbarturen@gmail.com')->subject('this works!'); });
# check your mailbox
@emmanuelbarturen
emmanuelbarturen / server
Last active January 30, 2018 16:11
Nginx Config for wordpress and laravel in the same server/hosting. How to put a wordpress in a laravel project. Wordpress folder, named blog, is inner public directory of laravel
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/laravel-project/public;
index index.php index.html index.htm;
server_name laravelProject.com www.laravelProject.com;
charset utf-8;
location /blog/index.php(/.*)?$ {
@parmentf
parmentf / GitCommitEmoji.md
Last active May 21, 2024 12:34
Git Commit message Emoji