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 -l | |
# set -e # intentionally disabled | |
REMOTE_URL=$1 # Remote URL where to download the wpengine snapshot zip | |
DOMAIN=$2 # The new domain nme to use | |
GROUP=www-data | |
MYSQL_PW='your-password' # your database password even with special chars inside like >!- etc | |
USER=`stat --format '%U' . ` # this line takes the username from the owner of the current folder |
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
qnt0 = 'cemento.txt' | |
if File.exists?(qnt0) | |
cemento = File.read('cemento.txt').to_i | |
else | |
cemento = 100 | |
File.write(qnt0, cemento) | |
end | |
prod0 = 'cemento' |
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
[Definition] | |
failregex = ^<HOST> - - \[.+\] "POST /xmlrpc.php HTTP/1.(1|0) | |
ignoreregex = |
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
## color bash | |
PS1='\e[33;1m\u@\h: \e[31m\W\e[0m\$ ' | |
## Git lg | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
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
var mapping = { | |
'last_lp_brand' : 'SEAT' | |
} ; | |
window.addEventListener('message', event => { | |
if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormReady') { | |
console.log(">> Form is ready!"); | |
Object.keys( mapping).forEach(function(key) { |
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
var mapping = { | |
'last_lp_brand' : 'SEAT' | |
} ; | |
window.addEventListener('message', event => { | |
if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormReady') { | |
console.log(">> Form is ready!"); | |
Object.keys( mapping).forEach(function(key) { |
OlderNewer