Skip to content

Instantly share code, notes, and snippets.

@ifranco88
ifranco88 / find_git_file_commits.sh
Last active July 3, 2017 14:46
Find all git commits from a file
git log --follow relative_path_filename
@ifranco88
ifranco88 / phpunit_file_test_execution.sh
Created July 13, 2017 07:34
phpunit file test method execution
phpunit --filter methodNameTest path/reference/fileName.php
@ifranco88
ifranco88 / ssl-apache-letsencrypt.md
Last active April 21, 2018 09:38
Enable SSL Signed Certificate with Apache on Ubuntu 16.04

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 / PDORepository.php
Created March 29, 2019 16:02
A simple PDO Repository PHP Class
<?php
use Carbon\Carbon;
use PDO;
/**
* Class PDORepository
*/
abstract class PDORepository
{
@ifranco88
ifranco88 / app.js
Last active February 4, 2020 16:39
Vuejs container pagination
// 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 / search-query-example.vue
Last active February 18, 2020 15:56
A simple vue component for input typing with delay.
<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();
@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%