sudo apt update
sudo apt install xrdp
sudo apt install xfce4
| user nginx; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log info; | |
| pid /var/run/nginx.pid; | |
| events { worker_connections 1024; } | |
| http { | |
| default_type text/html; | |
| log_format main '$remote_addr -> $request $status $body_bytes_sent bytes -> $upstream_addr'; | |
| access_log /var/log/nginx/access.log main; |
| file_to_disk = './tmp/large_disk.vdi' | |
| Vagrant::Config.run do |config| | |
| config.vm.box = 'base' | |
| config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
| config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
| end |
| http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6 | |
| # rpm | |
| wget --no-cookies \ | |
| --no-check-certificate \ | |
| --header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
| "http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \ | |
| -O jdk-7-linux-x64.rpm | |
| # ubuntu |
| Windows Registry Editor Version 5.00 | |
| ; | |
| ; Running this file will give you an extra context menu item in Windows Explorer | |
| ; "Delete SVN folders" | |
| ; | |
| ; For the selected folder, it will remove all subfolders named ".svn" and their content | |
| ; Tip from http://www.iamatechie.com/remove-all-svn-folders-in-windows-xp-vista/ | |
| ; | |
| ; Enrichened with comments by Jesper Rønn-Jensen ( http://justaddwater.dk/ ) | |
| ; |
| <?php | |
| $curl = curl_init('http://www.livescore.com/soccer/england/'); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); | |
| curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10'); | |
| $html = curl_exec($curl); | |
| curl_close($curl); | |
| if (!$html) { |
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:d0e70bba76e533c765aa57c9511a49d143a281d7ab469d94c5c12b1f34eb3f77" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |