Skip to content

Instantly share code, notes, and snippets.

@lorenadl
lorenadl / enabling-disabling-hyper-v-docker.md
Last active June 25, 2025 08:43
Enabling and disabling Hyper V Docker
@lorenadl
lorenadl / gitlab-add-ssh-key.md
Last active February 22, 2024 18:06
[GitLab] Adding a new SSH Key in user profile

How to add a new SSH Key to GitLab

Generate the public/private key pair

First of all check if the system already has a SSH key:

  • Windows command line:

    type %userprofile%\.ssh\id_rsa.pub

  • Linux command:

@lorenadl
lorenadl / remove_svn.md
Created May 2, 2018 13:09
[Linux + Windows] Remove all .svn directories

How to remove all .svn directories from an application folder

Linux

find . -name .svn -exec rm -rf '{}' \;

Before running a command like that, I often like to run this first:

find . -name .svn -exec ls '{}' \;

@lorenadl
lorenadl / yum_commands.md
Created May 2, 2018 13:23
[Linux] Yum commands

YUM commands

List installed packages:

yum list installed

Search a package:

yum search xxx

@lorenadl
lorenadl / webserver_problems_and_solutions.md
Last active May 3, 2018 15:51
[Linux - RoR] Webserver problems and solutions

Webserver for Rails app: problems and solutions

To resolve 'bundle install' errors:

  • Can't find the 'libpq-fe.h header...
  • rmagick (An error occurred while installing rmagick (2.13.4), and Bundler cannot continue)...

Execute:

sudo apt-get install libpq-dev

@lorenadl
lorenadl / configurare_ambiente_sviluppo_ror_con_vagrant.txt
Created May 3, 2018 15:58
[RoR] Configurare un ambiente di sviluppo RoR con Vagrant
---- Ambiente di sviluppo RoR con Vagrant ----
http://www.intelligentbee.com/blog/2013/09/17/setup-a-simple-ruby-2-on-rails-4-environment-with-vagrant-and-virtual-box/
1. Scaricare ed installare Vagrant
controllare la verione con:
> vagrant -v
2. Creare una cartella per l'applicazione Rails
>mkdir myapp
@lorenadl
lorenadl / wordpress_useful_plugins.md
Created May 4, 2018 15:59
[Wordpress] Useful plugins
@lorenadl
lorenadl / add_password_expiration_to_devise.md
Last active May 27, 2025 09:17
[RoR] Add password expiration feature to Devise

Add password expiration feature to Devise

Assuming you already have a Devise model named User and you want to add following Devise Security Extension to it:

  • Password Expirable
  • Password Archivable
  • Session Limitable

Add gem and run the generator

@lorenadl
lorenadl / uninstall_gem.md
Last active May 11, 2018 09:45
[RoR] Uninstall a gem installed by bundler, ok for RVM

Uninstall a gem installed by bundler

web_app$ bundle exec gem uninstall GEM_NAME

For RVM users: you have to use this method if you've set up a gemset for your particular project. Running:

gem uninstall GEM_NAME

from the project folder will uninstall GEM_NAME from your global/system level gemset instead of bundler's.

@lorenadl
lorenadl / Show list of files in commit.md
Last active October 30, 2018 13:25
[GIT] Show list of files in commit

[GIT] Show list of files in commit

git show --stat --name-only (hash)