#CURL Connections with Tor
Install Apache, PHP, CURL & Tor with apt-get
sudo apt-get install -y apache2 php5 php5-curl torTor creates a proxy on your mashine with port 9050 for SOCKS5 connections.
| # Install R | |
| sudo apt update | |
| sudo apt install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev | |
| # Install RStudio | |
| cd ~/Downloads | |
| wget https://download1.rstudio.org/rstudio-xenial-1.1.447-amd64.deb | |
| sudo gdebi rstudio-xenial-1.1.447-amd64.deb | |
| printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile |
#CURL Connections with Tor
Install Apache, PHP, CURL & Tor with apt-get
sudo apt-get install -y apache2 php5 php5-curl torTor creates a proxy on your mashine with port 9050 for SOCKS5 connections.
| <?php | |
| /** | |
| * Check if a given ip is in a network. | |
| * | |
| * @link https://gist.github.com/tott/7684443 | |
| * | |
| * @param string $ip IP to check in IPV4 format eg. 127.0.0.1 | |
| * @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed | |
| * |
| #!/bin/bash | |
| PHANTOM_JS="phantomjs-1.9.8-linux-x86_64" | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "You must be a root user" 2>&1 | |
| exit 1 | |
| else | |
| apt-get update | |
| apt-get install -y build-essential chrpath libssl-dev libxft-dev | |
| apt-get install -y libfreetype6 libfreetype6-dev | |
| apt-get install -y libfontconfig1 libfontconfig1-dev |