Press enter to see results or esc to cancel.

Abraham Garcia Abraham Garcia in Fun Stuff   Friday, January 17 2020

How to Install a SSL Certificate on Apache

Get Your SSL Installed on Your Ubuntu Server. I bought mine from NameCheap and they lacked in their documentation on how to generate CSR. I thought this could help others.

This is a short walk through on how to install an SSL on Ubuntu.  1. Generate CSR openssl req -new -newkey rsa:2048 -nodes -keyout mydomain.key -out mydomain.csr 2. Find Your CSR cat mydomain.csr 3. Enable SSL sudo a2enmod ssl 4. Upload

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Saturday, January 4 2020

Contact Form 7 Autocomplete Setup

How to add autocomplete to Contact Form 7 Input Field

How to add autocomplete to input field on Contact Form 7 [text* your-fname class:form-control autocomplete:off placeholder "First and Last Name"]  

Continue reading
Abraham Garcia Abraham Garcia in Fun Stuff   Friday, December 27 2019

How to Create an Empty File on Ubuntu

The Easiest Command to Create an Empty File on Ubuntu Command Line CLI.

Use this snippet to create an empty file in ubuntu using the touch command. touch /var/www/html/index.html  

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Friday, December 20 2019

Add Custom Body Class Per Page on WordPress

Custom Body Class Per Page on WordPress. A Simple and Fast Fix Customization of Body Class.

How to add a Custom Body Class for WordPress. It is very simple just add a small function on the functions.php page and you should be good to start adding classes depending on the ID of the page.  add_filter( 'body_class',

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Friday, December 13 2019

Disable Weekday from Datepicker JS

How to disabled Friday, Saturday, or Sunday from Datepicker JS. A Simple Script

This is a snippet to disable Friday, Saturday, and Sunday on the JS Datepicker.  <script> jQuery(document).ready(function($){ jQuery("#datepicker2").datepicker({ minDate: new Date(), dateFormat: 'dd-mm-yy', beforeShowDay:

Continue reading
Abraham Garcia Abraham Garcia in Application Development   Saturday, December 7 2019

Cordova Camera Plugin Takes Forever to Fire

Cordova Camera Picker Takes a Long Time to Load. Fast and Easy Fix.

While trying to fire the camera plugin on cordova i realized the action was taking forever to fire about 30-40 seconds. I saw a bug on console and immediately started doing research. I found a useful stackoverflow, but it was not as clear so i

Continue reading
Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Monday, December 2 2019

How to Setup Full Background Image on Framework7 Cordova

Full Background Image for Framework7 with Cordova.

This is a short snippet of CSS on how to put a full screen background image on your Framework7 Cordova App.  .page { font-family: "centabel"; background: url("../img/fondo.jpg") no-repeat center center fixed !important;

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Monday, November 25 2019

Remove All Matching Classes From Page jQuery

How to Remove All Classes from HTML DOM. This matches for similar classes and removes them.

This is a small snippet on how to remove all classes from matched class on jQuery.  $('#builder [class*="ui-id-"]').removeClass(function(i, j) { return j.match(/ui-id-/g).join(" "); }); Full

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Saturday, November 16 2019

Stripe New JS Button Example

This is the New Stripe JS Integration with PHP. I had not done this in a while so it was a little hard getting integrated, but it was fun.

These are the code snippets to get started with the New Stripe JS Button. HTML <div id="card-element"> <!-- A Stripe Element will be inserted here. --> </div> <!-- Used to display form errors. --> <div

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Friday, November 8 2019

How to Select all Text in a Input Box with One Click

Use OnClick to Select all text in a textbox to copy and paste fast. Useful for developers that need sharable links.

This is a code snippet to select all text in a textbox with javascript.  <input onClick="this.select();" value="Sample Text" /> or <input onClick="this.setSelectionRange(0, this.value.length)" value="Sample Text" />  

Continue reading