Skip to content

Instantly share code, notes, and snippets.

@lorenadl
lorenadl / chrome_how_to_bypass_ssl_certificate_check.md
Last active January 11, 2019 09:52
[Chrome] How to bypass SSL certificate check

[Chrome] How to bypass SSL certificate check

Important Close Chrome (all windows).

Lauch Chrome with --ignore-certificate-errors option:

chrome --ignore-certificate-errors
@lorenadl
lorenadl / appunti_su_ruby_on_rails.md
Created January 8, 2019 09:20
Appunti su Ruby on Rails

Sicurezza

Sessioni

Il protocollo HTTP è stateless. Le sesssioni lo rendono stateful.

Le ssssioni servono per mantenere traccia degli stati per ogni singolo utente (es. user id dell'utente loggato, contenuto del carrello...).

Le sessioni vengono gestite automaticamente da Rails, che crea una nuova sessione ogni volta che un utente accede all'applicazione, e carica la sessione esistente se un utente ha già usato l'applicazione.

@lorenadl
lorenadl / notes_from_clear_architecture_robert_c_martin.md
Last active December 15, 2021 11:19
Notes from "Clean Architecture" - Robert C. Martin

Notes from "Clean Architecture" - Robert C. Martin

Part I: Introduction

What is design and architecture

"Architecture" is often used in the context of something at a high level, whereas "design" more often seems to imply structures and decisions at lower level. But this usage is nonsensical. In software design the low-level details and the high-level stucture are all part of the same whole, there is a continuum of decisions from the highest to the lowest levels.

@lorenadl
lorenadl / web-architecture.md
Created December 5, 2018 14:13
Web Architecture

https://engineering.videoblocks.com/web-architecture-101-a3224e126947

  1. DNS

DNS sta per "Domain Name Server" ed è in pratica la "rubrica telefonica" di Internet. A livello più basico, il DNS fornisce delle coppie chiave/valore per risolvere un nome di dominio restituendo il suo indirizzo IP, necessario, quest'ultimo per instradare le richieste dei computer verso il server appropriato.

  1. Load balancer
@lorenadl
lorenadl / filterrific__how_to_filter_elements_in_other_actions_with_index_parameters.md
Last active October 30, 2018 13:21
[Filterrific gem] How to filter elements in other actions with index parameters

[Filterrific gem] How to filter elements in other actions with index parameters

As stated in: http://filterrific.clearcove.ca/pages/action_controller_api.html, filterrific by default persists filters params:

   # * Options:
   #     * persistence_id: optional, defaults to "<controller>#<action>" string
   #       to isolate session persistence of multiple filterrific instances.
   #       Override this to share session persisted filter params between
   #       multiple filterrific instances. Set to `false` to disable session
   #       persistence.
@lorenadl
lorenadl / virtualbox_how_to_enlarge_disk_size.md
Last active September 12, 2018 07:47
VirtualBox how to enlarge disk size

Resize a VirtualBox guest Linux VDI Disk under Windows Host

Source: http://derekmolloy.ie/resize-a-virtualbox-disk/

  1. Make a backup copy of vdi
  2. In a cmd, from c:\Program Files\Oracle\VirtualBox execute >VBoxmanage modifyhd MyLinux.vdi --resize 100000
  3. Resize Linux partition:
  • resize partition dev/sda1
@lorenadl
lorenadl / rails_app_workflow.md
Last active September 5, 2019 14:03
Rails app workflow
@lorenadl
lorenadl / ruby_skip_gems_documentation_installation.md
Last active September 6, 2018 09:34
RUBY: Skip gems documentation installation

Skip gems documentation installation

$ echo "gem: --no-document" &gt;&gt; ~/.gemrc

@lorenadl
lorenadl / rvm_create_ruby-version_and_ruby-gemset.md
Last active May 6, 2019 01:46
RVM: create .ruby-version and .ruby-gemset

RVM: create .ruby-version and .ruby-gemset

rvm --ruby-version use 2.5.1@test_app --create