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
#!/bin/bash | |
# To get the vmid, use: | |
# VBoxManage list vms | |
VM="{3b019d6d-16d1-4a8b-909d-8c79e53abd2d}"; | |
XN=4; | |
XS=/tmp/.X11-unix; | |
# Create a new X server on vt8 |
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 | |
function proc_fa($page) { | |
$curl = curl_init($page); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); | |
$tmp = curl_exec($curl); | |
curl_close($curl); | |
preg_match('/window.__inline_data__ =(.*?)<\/script>/s', $tmp, $match); | |
$res = json_decode($match[1]); |
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 | |
$urls = json_decode(file_get_contents('sites.json'),true); | |
function certdata($url) { | |
$parseurl = parse_url($url, PHP_URL_HOST); | |
$get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE))); | |
$read = stream_socket_client("ssl://".$parseurl.":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $get); | |
$cert = stream_context_get_params($read); | |
return openssl_x509_parse($cert['options']['ssl']['peer_certificate']); |
NewerOlder