Snippet : Add Your SSH Public Key To A Distant Server

I think I could cover the ssh login subject in a longer article, for now here is a quick snippet to create and add your public ssh key to your server, so you can login into it without typing your password again (and then disable the password login ability to increase your security) : Pop-upContinue reading “Snippet : Add Your SSH Public Key To A Distant Server”

Advertisement

Snippet: How To Show Hidden Files on Mac OSX

Pop-up a Terminal (Applications > Terminal, Cmd+Space : “Terminal”) Paste the line below : defaults write com.apple.finder AppleShowAllFiles 1 Reload Finder (Apple logo > Force Quit > Select “Finder” > Reload) That’s it ! You’ll see (most of) all the hidden files in Finder. Even the not so sexy .DS_Store files that stores the customContinue reading “Snippet: How To Show Hidden Files on Mac OSX”

Faking PHP version for Composer

Sometimes Composer doesn’t fetch the right PHP version for some reasons : Using Plesk for exemple, or some other server management tool, the way websites are handled is so that multiple websites are into containers with their own configurations. This way, the “stock” PHP version installed into the server could be one version, but ApacheContinue reading “Faking PHP version for Composer”

Plesk : 403 Forbidden after messing around with your Ubuntu/Debian or CentOS server

One of the many reasons why you have a 403 error on your website when using Plesk and tweaking your server (updates for exemple that can modify your Apache2 configuration, it happened to me when installing Landscape) might be that you need to add the APACHE_RUN_USER (usually www-data but make sure by looking for it intoContinue reading “Plesk : 403 Forbidden after messing around with your Ubuntu/Debian or CentOS server”

Easy way to remove “/public” in the URL path in Laravel 5.2

How to remove the /public path from your URL in Laravel 5.2 the easiest way if you can’t or don’t want to modify the Apache document root ? In a fresh Laravel 5.2 install, the public frontend is located in example.com/public/index.php To remove the /public/ part of your URL, simply copy-paste /public/index.php and /public/.htaccess toContinue reading “Easy way to remove “/public” in the URL path in Laravel 5.2″

How To Install XDebug on MAMP (OSX)

Xdebug is debugger and profiler that will prettify your errors by printing out stack traces in case of errors or exceptions, with a timestamp showing the duration of each step of the stack. There are a lot of benefits to have it activated, even on a production server, even more on your development environment. Here isContinue reading “How To Install XDebug on MAMP (OSX)”

Looking for a Server Administration Interface: Ajenti V

Few weeks ago, I entered the world of server administration when I’ve ordered my VPS at OVH. Since I already have skills in Unix systems, the load of work to administrate a server was by far, less than I’ve expected. Actually, it is pretty easy : install, configure and secure your Apache/MySQL/PHP stack, secure yourContinue reading “Looking for a Server Administration Interface: Ajenti V”

Learning *apply() Functions

This article is intended to briefly summarize what I’ve learn about the *apply functions. split() and lapply() We’ll work on the Air Quality *.csv file from the Data Science Specialization course: > airquality <- read.csv(“rcourse/hw1_data.csv”) > head(airquality) We want to create a matrix that contain the monthy means of each column : > s <- split(airquality,Continue reading “Learning *apply() Functions”

R Programming Course – Assignment 1 : Air Pollution Part 3

Part 1 : pollutantmean() Part 2 : complete() Part 3 : corr() Write a function that takes a directory of data files and a threshold for complete cases and calculates the correlation between sulfate and nitrate for monitor locations where the number of completely observed cases (on all variables) is greater than the threshold. TheContinue reading “R Programming Course – Assignment 1 : Air Pollution Part 3”