Skip to content

Instantly share code, notes, and snippets.

View webkod3r's full-sized avatar
👨‍💻
Coding ...

Pablo Molina webkod3r

👨‍💻
Coding ...
View GitHub Profile
@webkod3r
webkod3r / next_nginx.md
Created July 25, 2023 22:12 — forked from kocisov/next_nginx.md
How to setup next.js app on nginx with letsencrypt
@webkod3r
webkod3r / devshelf.sh
Created August 7, 2021 21:06 — forked from robhrt7/devshelf.sh
Ubuntu init.d service example for nodeJS app with forever
#!/bin/bash
#
# description: DevShelf service
# processname: node
# pidfile: /var/run/devshelf.pid
# logfile: /var/log/devshelf.log
#
# Based on https://gist.github.com/jinze/3748766
#
# To use it as service on Ubuntu:
<?php
namespace App\Libraries\Queue;
use Illuminate\Events\Dispatcher;
use Illuminate\Queue\DatabaseQueue;
use Illuminate\Support\Str;
use Laravel\Horizon\Events\JobDeleted;
use Laravel\Horizon\Events\JobPushed;
use Laravel\Horizon\Events\JobReleased;
@webkod3r
webkod3r / _ide_helper.php
Created June 17, 2017 22:26 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.4.11 on 2017-02-14.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
# Before Script
before_script:
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:refresh
# Services
services:
@webkod3r
webkod3r / 0_reuse_code.js
Created January 3, 2017 14:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@webkod3r
webkod3r / functions.php
Last active January 3, 2017 15:04 — forked from johnmegahan/functions.php
This code create a walker to build a WordPress menu with Twitter Bootstrap
<?php
add_action( 'after_setup_theme', 'bootstrap_setup' );
if ( ! function_exists( 'bootstrap_setup' ) ):
function bootstrap_setup(){
add_action( 'init', 'register_menu' );
function register_menu(){
register_nav_menu( 'top-bar', 'Bootstrap Top Menu' );
}