-
If LDAP authentication is by username (not email), add to Devise the possibility to login with username:
https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign_in-using-their-username-or-email-address https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-with-something-other-than-their-email-address
-
Add to Gemfile the gem net-ldap:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show all active connections | |
netstat -napt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insecure content fixer | |
https://it.wordpress.org/plugins/ssl-insecure-content-fixer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE for rails 3.2.12: | |
db:create creates the database for the current env | |
db:create:all creates the databases for all envs | |
db:drop drops the database for the current env | |
db:drop:all drops the databases for all envs | |
db:migrate runs migrations for the current env that have not run yet | |
db:migrate:up runs one specific migration | |
db:migrate:down rolls back one specific migration | |
db:migrate:status shows current migration status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? header("location: http://www.my_site.ext"); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker | |
------------------------- | |
Se lanciando | |
> docker images | |
o | |
> docker-compose up --build | |
dà questo errore: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Heading 1 | |
##Heading 2 | |
###Heading 3 | |
####Heading 4 | |
#####Heading 5 | |
######Heading 6 | |
--- | |
Paragraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux list all users command | |
$ cat /etc/passwd |
Show processes:
ps -afx
Killing a process:
kill -INT prcess_id
Viewing active connections:
OlderNewer