Skip to content

Instantly share code, notes, and snippets.

View loorlab's full-sized avatar
💻
💥👩‍🚀👨‍🚀💥

LOOR Lab loorlab

💻
💥👩‍🚀👨‍🚀💥
View GitHub Profile
@loorlab
loorlab / default_english_admin_frontend_spanish_WP.php
Created October 10, 2022 20:39
Default English Admin WordPress - Front-End Spanish
<?php
// functions.php
function wp_loorlab_redefine_locale($locale) {
if( is_admin() ):
switch_to_locale('en_US');
endif;
}
add_filter('init','wp_loorlab_redefine_locale');
@loorlab
loorlab / wp-cli-shared-hosting_WP.md
Last active September 21, 2022 02:21 — forked from mklasen/Instructions.MD
Install WP-CLI on Shared Hosting (Antagonist) + Ultimate Linux Hosting With cPanel (GoDaddy)

Download WP-CLI

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Test to see if it works correctly

php wp-cli.phar --info

Add extra permissions

@loorlab
loorlab / .htaccess
Created September 16, 2022 20:02
.htaccess https and force non www WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule (.*) https://domain.com%{REQUEST_URI} [L,R=301,NC]
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule (.*) https://domain.com%{REQUEST_URI} [L,R=301,NC]
@loorlab
loorlab / Extract_URL_from_Hyperlink_with _an _Excel_Formula.vb
Last active July 1, 2022 15:38
Extract URL from Hyperlink with an Excel Formula - ALT + F11 WIN
@loorlab
loorlab / Exiftool-Cheatsheet.md
Last active May 14, 2022 20:23 — forked from rjames86/My Exiftool Cheatsheet.md
Exiftool Cheatsheet

Last updated: 2022-05-14

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@loorlab
loorlab / disable_language_switcher_WP.php
Created April 25, 2022 22:27
Disable Language Switcher WordPress 5.9
<?php
// functions.php
add_filter( 'login_display_language_dropdown', '__return_false' );
@loorlab
loorlab / gist:bf278a708fb6deebeeb4367a476838d6
Created March 24, 2022 01:22 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
<div class="form-group">
<label for="departamento"><strong>DEPARTAMENTO</strong></label>
<select class="form-control" id="departamento" name="departamento" required>
<option value = ""> </option>
<option value = "Amazonas">Amazonas</option>
<option value = "Antioquia">Antioquia</option>
<option value = "Arauca">Arauca</option>
<option value = "Atlántico">Atlántico</option>
<option value = "Bolívar">Bolívar</option>
<option value = "Boyacá">Boyacá</option>
@loorlab
loorlab / query_set_featured_images_SQL_WP.sql
Last active December 31, 2021 06:21
Query WP - SQL - How to set WordPress Featured Images via SQL - *validar - sin pruebas* no test