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 | |
DEBIAN_FRONTEND=noninteractive sudo apt-get update | |
DEBIAN_FRONTEND=noninteractive sudo apt-get upgrade -y | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal unzip -y | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install ubuntu-restricted-extras -y | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install vnc4server -y | |
vncserver :1 |
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 | |
DEBIAN_FRONTEND=noninteractive sudo apt-get update | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mcrypt php-mysql php-cli php-cgi php-curl php-gd -y |
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
<?php | |
/** | |
* IXR - The Incutio XML-RPC Library | |
* | |
* Copyright (c) 2010, Incutio Ltd. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* |
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
<VirtualHost *:80> | |
ServerAdmin your_email_address | |
ServerName domain1.net | |
ServerAlias www.domain1.net | |
DocumentRoot /var/www/domain1 | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
Require all granted |
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
<?php | |
$jsonData = file_get_contents('http://pastebin.com/raw/1u67Dk86'); | |
$result = json_decode($jsonData, true); | |
//print_r ($result); | |
echo $result['responses']['0']['textAnnotations']['0']['description']; | |
?> |
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
{ | |
"responses": [ | |
{ | |
"textAnnotations": [ | |
{ | |
"locale": "gl", | |
"description": "xougl\nxoUg\ner.net\n", | |
"boundingPoly": { | |
"vertices": [ | |
{ |
NewerOlder