Taken from: http://www.thesauruslex.com/typo/eng/enghtml.htm
Ć ć Č č Đ đ Š š Ž ž
#!/bin/bash | |
# | |
# Commented provisioning script for a flyimg server | |
# Created for Ubuntu 16 but works with 14 and possibly with other distributions | |
# This script is intended to be used as a root user | |
# This script should be ideally invoqued by a Cloud-init script | |
# Read more at: https://www.digitalocean.com/community/tutorials/an-introduction-to-cloud-config-scripting#run-arbitrary-commands-for-more-control | |
# | |
# Original Gist at: https://gist.github.com/baamenabar/2a825178318d27fc20abfe5a413b45eb | |
# Author B. Agustin Amenabar L. @iminabar |
// this is a Bookmarklet | |
// this must go in the url part of a browser bookmark (without the comments) | |
javascript: (function() { | |
var recoveredNumbers = []; | |
var toPrint = ''; | |
var elementsSelectorList = ['#fvVisual', '#rvVisual', '#fvTTFB', '#rvTTFB', '#fvStartRender', '#rvStartRender', '#fvRequestsDoc', '#rvRequestsDoc', '#fvBytesDoc', '#rvBytesDoc' ]; | |
var tableContainer; | |
var dateElement; | |
recoveredNumbers.push(document.querySelector('#header_data h2 span').innerHTML); | |
dateElement = document.querySelector('.heading_details .jsdate'); |
// you can load the har however you like. | |
var har = 'paste json har content here'; | |
har.log.pages.forEach(item => { | |
item.data = har.log.entries.find(element => { | |
return element.request.url == item.title; | |
}); | |
console.log(JSON.stringify(item.data)); | |
}) |
// script para scrape de registro civil | |
var elAno = '2017'; | |
var request = new XMLHttpRequest(); | |
var nuevoLin = undefined; | |
var saltarLin = undefined; | |
request.onreadystatechange = function () { | |
if (request.readyState === 4 && request.status === 200) { | |
//console.log('volvió! con:',request.responseText) | |
var eldiv = document.createElement('div'); | |
var laMarca = request.responseURL.split('/PrimerasBUS_').pop().split('_'+elAno+'.')[0]; |
Taken from: http://www.thesauruslex.com/typo/eng/enghtml.htm
Ć ć Č č Đ đ Š š Ž ž
const fileHash = crypto.createHash('md5').update(fileContents).digest('hex'); |
# Windows only: Don't forget how to build and start Flyimg in windows 10 home environment with Cmder (conEmu) | |
# Must have virtualbox installed, ideally through docker toolbox | |
# do this only once | |
docker-machine create --driver virtualbox default | |
# all the subsequent times, only this | |
docker-machine start default | |
# hook the virtual env to docker |
<?php | |
/** | |
* Una simple función para obtener los costos de envío de un paquete mediante Chilexpress. | |
* Como única dependencia se necesita de la liberia PHP Simple HTML DOM Parser: http://simplehtmldom.sourceforge.net/ | |
* | |
* Para poder comunicarse con Chilexpress, se debe tener la lista de todas las comunas que ellos utilizan y el código | |
* que le asignan a cada una. En este archivo, al final, podrás encontrar el listado, el cual podrás parsear fácilmente | |
*/ |
<?php | |
/* | |
list all the files with extension nn on a folder | |
the first parameter of glob is a regex to match files. | |
you can do: | |
path_to_dir/*.html | |
to select all the .html files in the path_to_dir folder | |
*NOTE:* the regex on glob is case sensitive |
/** list of mock File elements to pass the input[file] */ | |
export function getBrowsedFiles(): FileList { | |
return fileListFromArray([ | |
mockFileCreator({ name: 'file-one.png', type: 'image/png', size: 234 * 1000 }), | |
mockFileCreator({ name: 'file-two.gif', type: 'image/gif', size: 56 * 1000 }), | |
]); | |
} | |
export function mockFileCreator({ | |
name = 'file.txt', |