This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Accessibility": [ | |
"fas fa-american-sign-language-interpreting", | |
"fas fa-assistive-listening-systems", | |
"fas fa-audio-description", | |
"fas fa-blind", | |
"fas fa-braille", | |
"fas fa-closed-captioning", | |
"far fa-closed-captioning", | |
"fas fa-deaf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const useThemeVariables3 = () => { | |
interface ConfigTheme { | |
primaryColor: string; | |
textColor: string; | |
contrastColor: string; | |
bodyBackgroundColor: string; | |
linksColor: string; | |
headerBackgroundColor: string; | |
headerIconColor: string; | |
headerTextColor: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Place this in your functions.php file | |
add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url'); | |
function wpcf7_custom_form_action_url(){ | |
return 'send.php';// replace this with the new action url (excluding the 'http://') | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskutil list | |
sudo mkdir /Volumes/rpi | |
sudo ext4fuse /dev/disk4s2 /Volumes/rpi -o allow_other | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. instalar lego | |
cd /tmp | |
curl -Ls https://api.github.com/repos/xenolf/lego/releases/latest | grep browser_download_url | grep linux_amd64 | cut -d '"' -f 4 | wget -i - | |
tar xf lego_vX.Y.Z_linux_amd64.tar.gz | |
sudo mkdir -p /opt/bitnami/letsencrypt | |
sudo mv lego /opt/bitnami/letsencrypt/lego | |
------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. npm init | |
2. ls node_modules/ | xargs npm install --save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CONTENIDO DEL ARCHIVO /etc/postfix/main.cf | |
#myorigin = /etc/mailname | |
biff = no | |
append_dot_mydomain = no | |
#delay_warning_time = 4h | |
readme_directory = no | |
compatibility_level = 2 | |
# TLS parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fixPrecio($number, $showsign=true){ | |
$showsign = !$showsign ? "" : "$"; | |
return $showsign.number_format($number, 0, '.', '.'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toSlug(str) { | |
str = str.replace(/^\s+|\s+$/g, ''); | |
str = str.toLowerCase(); | |
var from = "ãàáäâẽèéëêìíïîõòóöôùúüûñç·/_,:;"; | |
var to = "aaaaaeeeeeiiiiooooouuuunc------"; | |
for (var i=0, l=from.length ; i<l ; i++) { str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); } | |
str = str.replace(/[^a-z0-9 -]/g, '').replace(/\s+/g, '-').replace(/-+/g, '-'); return str; | |
} | |
// Itera sobre objeto para agregar propiedad 'slug', basandose en propiedad 'nombre' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Añadir class según breakpoint al body | |
*/ | |
var breakpoint = (function(body) { | |
let bp_cur = ""; | |
var bp_dom = { | |
get: function (o) { var obj = Object.create(this); obj.element = (typeof o == "object") ? o : document.createElement(o); return obj; }, | |
app: function (o) { var obj = bp_dom.get(o); this.element.prepend(obj.element); return obj; }, | |
att: function (k, v) { this.element.setAttribute(k, v); return this; }, | |
cls: function (c) { this.element.className = c; return this; }, |
NewerOlder