This file contains hidden or 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
| // HTTP a http://www.cnsf.gob.mx/Eventos/Paginas/Premios_2015.aspx | |
| // Si el header de respuesta es distinto de 200, ignorar | |
| // Si es 200 enviar mail | |
| var nodemailer = require('nodemailer'); | |
| var smtpTransport = require('nodemailer-smtp-transport'); | |
| var request = require('request'); | |
| var URL = 'http://www.cnsf.gob.mx/Eventos/Paginas/Premios_2015.aspx'; | |
| var USER = ''; |
This file contains hidden or 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 xray = require('x-ray'); | |
| var phantom = require('x-ray-phantom'); | |
| var URL = 'http://www.yad2.co.il/Nadlan/rent.php?City=%D7%99%D7%A8%D7%95%D7%A9%D7%9C%D7%99%D7%9D&Neighborhood=&HomeTypeID=11&fromRooms=1&untilRooms=&fromPrice=200&untilPrice=&PriceType=1&FromFloor=&ToFloor=&EnterDate=&Info='; | |
| xray(URL) | |
| .use(phantom()) | |
| .select([{ | |
| $root: 'body', | |
| tds: ['td'] |
This file contains hidden or 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
| #!/usr/bin/php | |
| <?php | |
| while(true) { | |
| sleep(5); | |
| echo 'aufgewacht' . PHP_EOL; | |
| } | |
| ?> |
This file contains hidden or 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 | |
| tail -n +2 CONSO.txt | split -l 20000000 - split_ | |
| for file in split_* | |
| do | |
| head -n 1 CONSO.txt > tmp_file | |
| cat $file >> tmp_file | |
| mv -f tmp_file $file | |
| done |
NewerOlder