Skip to content

Instantly share code, notes, and snippets.

View make-cert.bat
@echo off
SETLOCAL EnableDelayedExpansion
set /p domain="Enter Domain: "
set OPENSSL_CONF=../conf/openssl.cnf
set tmp_cert_conf=cert_%domain%.conf
del %tmp_cert_conf%
@ifranco88
ifranco88 / search-query-example.vue
Last active Feb 18, 2020
A simple vue component for input typing with delay.
View search-query-example.vue
<template>
<vue-input-typer placeholder="Type here" class="form-control" @typed="typedInput"></vue-input-typer>
</template>
<script>
import VueInputTyper from '@/components/input-typer.vue';
const CancelToken = axios.CancelToken;
const source = CancelToken.source();
@ifranco88
ifranco88 / app.js
Last active Feb 4, 2020
Vuejs container pagination
View app.js
// Se necesita instalar: npm install vuejs-paginate --save
import VuePaginationContainer from '@/components/vue-pagination-container';
Vue.component('vue-pagination-container', VuePaginationContainer);
import VuePagination from '@/components/vue-pagination';
Vue.component('vue-pagination', VuePagination);
@ifranco88
ifranco88 / PDORepository.php
Created Mar 29, 2019
A simple PDO Repository PHP Class
View PDORepository.php
<?php
use Carbon\Carbon;
use PDO;
/**
* Class PDORepository
*/
abstract class PDORepository
{
@ifranco88
ifranco88 / ssl-apache-letsencrypt.md
Last active Apr 21, 2018
Enable SSL Signed Certificate with Apache on Ubuntu 16.04
View ssl-apache-letsencrypt.md

Enable SSL Signed Certificate with Apache on Ubuntu 16.04

Let's Encrypt certificates it is a service that provides certificates via the Certbot client software running on your server.

Installing the Let's Encrypt Client

Add the repository

$ sudo add-apt-repository ppa:certbot/certbot
@ifranco88
ifranco88 / phpunit_file_test_execution.sh
Created Jul 13, 2017
phpunit file test method execution
View phpunit_file_test_execution.sh
phpunit --filter methodNameTest path/reference/fileName.php
@ifranco88
ifranco88 / find_git_file_commits.sh
Last active Jul 3, 2017
Find all git commits from a file
View find_git_file_commits.sh
git log --follow relative_path_filename