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
  • 10:16 (UTC +02:00)
View GitHub Profile
@lparolari
lparolari / symfony-troubleshooting.md
Created July 5, 2019 12:19
Symfony troubleshooting: awesome tips

Symfony Troubleshooting

SwiftMailer

Symfony has a nice mailing system provided as a plug-and-play package, but sometime some tweaks are needed.

Error Management

The swiftmailer do not fire exceptions, instead the send(message) method returns the number of successful recipients that can be zero (representing an issue). However, another sent method exists: sent(message, failedRecipients) which returns the list of failed email addresses.

@lparolari
lparolari / react-memo-for-beginners.md
Last active July 12, 2019 18:48
A simple and introductive guide to react, from a beginner to beginners.

React

React is a JavaScript lobrary for building fast and interactive UI.

Main components of React:

  • components, a piece of UI used as indipendent piece of UI;

React is a UI library, so you need other libraries for routing, exc.

Components

Dev Cluster Seup

  • 2 server
  • 1 client

Server1

sudo adduser luca
sudo usermod -aG sudo luca
autoreconf -i
./configure

How to read a sqlite database from an Android device

adb -d shell "run-as [YOUR APP PACKAGE] cat databases/[YOUR DB NAME].db-journal" > target.sqlite-journal

Laradock troubleshooting

phpmyadmin login not works

Solved by changing the authentication method of user default to mysql native password.

Go to mysql bash docker-compose exec mysql bash
login using root mysql -u root -p password is root.
then issue following mysql command ALTER USER 'default' IDENTIFIED WITH mysql_native_password BY 'secret';

#include <iostream>
using namespace std;
int main() {
return 0;
}
@lparolari
lparolari / pdflatex-footer.tex
Last active December 30, 2019 21:28
Add footer on pdf with pdflatex.
# hpack package file
name: <APP-NAME>
version: <VERSION>
github: "<YOUR-USERNAME>/<APP-NAME>"
license: <LICENSE>
author: "<YOUR-NAME>"
maintainer: "<YOUR-EMAIL>"
copyright: "<YEAR> <YOUR-NAME>"
%%% BASIC CONFIGS
%
% Basic latex configurations for `programming-exercise-template`
% and `test-template`.
%
% Luca Parolari (C) 2020
% [email protected]
%% ***************************************************************
% TIKZ