Skip to content

Instantly share code, notes, and snippets.

View lparolari's full-sized avatar
🎯
Focusing

Luca Parolari lparolari

🎯
Focusing
  • University of Padova
  • Padova • Italy
  • 23:57 (UTC +02:00)
View GitHub Profile
@lparolari
lparolari / htaccess-rewriteurl-memo.md
Last active October 30, 2018 20:16
A rewrite url memo with quick tips and description for basic functionalities

htaccess rewrite-url memo

Luca Parolari <luca.parolari23@gmail.com>

The .htaccess file is a config file used to change the behavior of the web server when entering a specific directory, in particular the directory that contains .htaccess file.

The file is readed every time a request is issued to the server. For this reason, changes to the file does not implies the restart of the

WARNING: this memo is incomplete and not well organized.

Ubuntu Setup

FIX: fifo sched_error 20

  1. Open grub file: sudo nano /etc/default/grub
@lparolari
lparolari / python-get-started-guide.md
Last active November 15, 2018 08:52
A minimal memo for start coding in python: description of main components, package structure, boilerplate

Python Get Started Guide

This is a minimal introduction to a python package setup, describing some technologies and available method to achieve the get started goal.

PyPA is the Python Package Authority.

PyPUG is the Python Package User Guide.

A python module is the code saved in a file.

There are different type of packages:

@lparolari
lparolari / aruba-pec-how-to.md
Last active November 21, 2018 20:38
A brief on how to register a pec on Aruba

Aruba PEC: how to

If you have a domain, DO NOT follow links like "register a pec" or "pec" or something that is similar to the right choice.

If you have a domain:

  • login in your customer area;
  • go to your domain and click on control panel;
  • once there, go to email service -> show all;
  • scroll down, you'll see a box "PEC on domain";
  • follow the purchase procedure from there.
@lparolari
lparolari / aruba-login-transfer.md
Created November 21, 2018 20:31
A brief on how to transfer a domain between Aruba accounts

Aruba Login Transfer

This document is a summary on how to transfer domain between registered accounts on Aruba. In pratical terms, this guide will help you understending how to move www.pincopallo.com from 123@aruba.it to 456@aruba.it. This guide does not apply to domain transfer between different providers.

So, the procedure is:

  • find the document change-login-password.pdf and compile it;
  • if you have a database find the change-database-ownership.pdf and compile it,
  • make a copy of identity documents from currently owner and future owner;
  • send back compiled documents and identity documents to aruba from the support section.
@lparolari
lparolari / aruba-transfer-domain.md
Created November 21, 2018 20:37
A brief on how to transfer a domain from some provider to Aruba

Aruba Transfer Domain

This guide will describe the procedure to transfer a domain from a provider to Aruba.

Steps:

  • get the authcode from the current provider;
  • go to the aruba home page and start the transfer domain procedure;
    • insert domain name;
    • buy a service for your domain;
  • insert the accountholder data;
@lparolari
lparolari / docker-memo.md
Created December 3, 2018 17:11
Docker and Docker-Compose memo

Docker and Docker-Compose memo

Luca Parolari <luca.parolari23@gmail.com>.

For now, I will not explain all the things on docker. This memo is thought to integrate docker in a project with the minimal number of steps.

Docker

Docker is a mechanism used to create isolated environment without setting up a virtual machine.

Setup Laravel Environment

This reminder shows how to setup an environment for laravel without (intentionally) use a container like docker or a virtual machine like homestead.

Starting from scratch in linux, for setting up a laravel environment we will need first to setup the environment:

  • apache web server: sudo apt install apache2;
  • mysql server: sudo apt install mysql-server;
  • php and extensions: sudo apt install php7.X php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php;
  • you may need to disable mods of older versions of php in apache;
  • enable mod_rewrite: sudo a2enmod rewrite;
@lparolari
lparolari / decode-pec-with-openssl.md
Created May 11, 2019 07:31
Decode your PEC attachments with a simple shell command.

PEC decoding without any client

Requirements

  • openssl installed on your computer;
  • a nice shell.

Usage

openssl smime -verify -in YOUR_FILE.EXT.p7m -inform der -noverify -signer Segnatura.xml -out textdata

Apache SSL Virtual Host

The easy way

Get the certificate

Go to https://www.sslforfree.com/ and follow the procedure in order to generate a signed certificate by Let's Encrypt Certificate Autority.

SSL VH

Build the virtual host for ssl domain (sse attached file example.com.ssl.conf)