Skip to content

Instantly share code, notes, and snippets.

View KarlBaumann's full-sized avatar

Karlis Baumanis KarlBaumann

View GitHub Profile
baumanisk@KARW24098 C:\Users\baumanisk
> cd Vagrantfile
baumanisk@KARW24098 C:\Users\baumanisk\Vagrantfile
> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'box-cutter/ubuntu1404-desktop' could not be found. Attempting
to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
baumanisk@KARW24098 C:\Users\baumanisk\Vagrantfile
> vagrant provision
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Set Zend desktop background image...
==> default: [DONE: Setting up background image]
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Set timezone to US Pacific Time...
==> default: Ame
# -*- mode: ruby -*-
# vi: set ft=ruby :
# The full LAMP stack with phpMyAdmin is installed regardless of needing a DB for a project
# todo: Add shared network folder with host--easy of moving files between host/guest
# These values could be prompted for, if and until that's written, add them below
# VAGRANT_API_VERSION: The API version
# VM_DISPLAY_NAME: The name applied to the VM in VituralBox
# MY_SQL_VERSION: The server version
# PMA_VERSION: The phpMyAdmin version
NameVirtualHost pornhub.com:443
<VirtualHost pornhub.com:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory /var/www/vhosts/pornhub.com>
AllowOverride All
</Directory>
DocumentRoot /var/www/vhosts/pornhub.com
1b5c.1228: Log file opened: 5.0.16r105871 g_hStartupLog=0000000000000020 g_uNtVerCombined=0x611db110
1b5c.1228: \SystemRoot\System32\ntdll.dll:
1b5c.1228: CreationTime: 2016-01-29T11:00:26.374196500Z
1b5c.1228: LastWriteTime: 2015-12-30T19:05:33.659216000Z
1b5c.1228: ChangeTime: 2016-02-02T16:49:16.860375200Z
1b5c.1228: FileAttributes: 0x20
1b5c.1228: Size: 0x1a67c0
1b5c.1228: NT Headers: 0xe0
1b5c.1228: Timestamp: 0x568429e5
1b5c.1228: Machine: 0x8664 - amd64
traceroute to google.de (172.217.19.35), 30 hops max, 60 byte packets
1 o2.box (192.168.1.1) 0.389 ms 0.465 ms 0.779 ms
2 62.52.201.193 (62.52.201.193) 32.537 ms 32.605 ms 32.357 ms
3 ae23-0.01.xd.0001-01.fra.de.net.telefonica.de (62.53.22.222) 24.053 ms 25.753 ms ae23-0.02.xd.0001-01.fra.de.net.telefonica.de (62.53.22.224) 25.859 ms
4 ae0-0.0002.prrx.01.fra.de.net.telefonica.de (62.53.11.229) 25.933 ms 26.027 ms 26.076 ms
5 de-cix20.net.google.com (80.81.193.108) 89.526 ms 89.410 ms 89.131 ms
6 216.239.56.182 (216.239.56.182) 89.396 ms 216.239.49.128 (216.239.49.128) 22.869 ms 216.239.56.182 (216.239.56.182) 86.950 ms
7 216.239.57.188 (216.239.57.188) 23.774 ms 216.239.57.127 (216.239.57.127) 23.631 ms 216.239.57.188 (216.239.57.188) 23.391 ms
8 66.249.95.23 (66.249.95.23) 26.553 ms 209.85.251.178 (209.85.251.178) 27.052 ms 66.249.95.23 (66.249.95.23) 27.135 ms
9 74.125.37.160 (74.125.37.160) 34.977 ms 34.328 ms 33.850 ms
--- google.de ping statistics ---
34075 packets transmitted, 26179 received, +5 errors, 23% packet loss, time 34115819ms
rtt min/avg/max/mdev = 31.202/33.288/83.821/1.106 ms
$content = '<form name="tablebutton" method="post" action="'.$path.$site.'">
<p style="display:none">
';
if ($filters != "none") {
$content .='
<input type="text" name="filters" value="'.$filters.'">
<input type="text" name="filterparam" value="'.$filterparam.'">
';
}
if ($grouping != "none") {
<?php
/**
* Runs the query and generates an Excel file from the results.
*
* @param $query string Regular SQL query.
* @param $fileName string Name of the file which should be passed to browser, without extension.
*/
public static function sql2excel($query, $fileName = 'data')
{
global $wpdb;