This file contains 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
const wlist = ['table_name', 'table_name_2'] | |
$('.export_table_select input').each(function () { | |
const self = $(this) | |
const type = self.attr('type') | |
const isCheckAll = self.hasClass('checkall') | |
if (type === 'checkbox' && !isCheckAll) { | |
const table = self.val() | |
const isWhitelist = wlist.includes(table) |
This file contains 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
# Buscar y remplazar string en carpeta actual | |
find . -type f -exec sed -i 's,//dominio.com,//new.dominio.com,g' {} \; | |
# Buscar y remplazar string en carpeta especificada | |
grep -rnw '/var/www/vhosts/' -e 'dominio.com' |
This file contains 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
#!/bin/bash | |
# VARS | |
ORIG_DOMAIN="example.com" | |
ORIG_FOLDER="/var/www/vhosts/example.com/httpdocs" | |
ORIG_DB_USER="" | |
ORIG_DB_PASS='' | |
ORIG_DB_NAME="" | |
DEST_DOMAIN="beta.example.com" |
This file contains 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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": true, | |
"osc99": true, | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{if .Root}} ⚡ {{end}}{{.Folder | replace \"~\" \"🏠\"}} @ {{.Host}}", | |
"blocks": [ | |
{ | |
"type": "prompt", |
This file contains 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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": [ | |
{ | |
"command": { | |
"action": "newTab", | |
"index": 3 | |
}, | |
"keys": "ctrl+4" |