Skip to content

Instantly share code, notes, and snippets.

@sowe
sowe / BasicETLChack.sh
Last active December 12, 2017 18:25
Script para hacer una check basico a las etl
#!/bin/bash
set -e
set -u
readonly CAMELCASE='\b[A-Z]+(_[A-Z]+)*\b';
readonly SANKCASE='\b[A-Z]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z0-9]*\b';
FULL_OK="false"
function _console(){
@sowe
sowe / rasterize.js
Created December 30, 2017 19:47
generate pdf
"use strict";
var page = require('webpage').create(),
system = require('system'),
address, output, size, pageWidth, pageHeight;
if (system.args.length < 3 || system.args.length > 5) {
console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]');
console.log(' paper (pdf output) examples: "5in*7.5in", "10cm*20cm", "A4", "Letter"');
console.log(' image (png/jpg output) examples: "1920px" entire page, window width 1920px');
console.log(' "800px*600px" window, clipped to 800x600');
phantom.exit(1);