docker run -e PASSWORD=DATABASE_PASSWORD --rm -v `pwd`:/backup mysql sh -c 'exec mysqldump --column-statistics=0 --databases DATABASE_NAME --opt -h DATABASE_HOST -u DATABASE_USER -p"$PASS" > /backup/backup.sql'
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
Prefix | Description | Notes | |
---|---|---|---|
sk_live_ | Live secret key | Secret key in a live environment. | |
pk_live_ | Live public key | Public key in a live environment. | |
pst_live_ | Live Connection token | Connection token in a live environment. | |
sk_test_ | Test secret key | Pecret key in a test environment. | |
pk_test_ | Test public key | Public key in a test environment. | |
pst_test_ | Test Connection token | Connection token in a test environment. | |
ac_ | Platform Client ID | Identifier for an auth code/client id. | |
acct_ | Account ID | Identifier for an Account object. | |
ch_ | Charge ID | Identifier for a Charge object. |
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 readline = require('readline') | |
const fs = require('fs') | |
const rl = readline.createInterface({ | |
input: fs.createReadStream('muestra_log.txt') | |
}) | |
const pattern = /(.*?) (.*?) (.*?) \[(.*?)\] "(.*?) (.*?) (.*?)" (\d+?|-) (\d+?|-) "(.*?)" (.*?) "(.*?)" "(.*?)" ([\d\.]+?|-) "(\d*?|-)" "(.*?)"/ | |
let count = 0 | |
rl.on('line', function (line) { |
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
<?php | |
// ini_set('memory_limit', '2G'); | |
$handle = fopen('muestra_log.txt', 'r'); | |
if (!$handle) { | |
die('Error loading file.'); | |
} |