Element -- selects all h2 elements on the page
h2 {
foo: bar;| o = 0 # Number of files | |
| n = 0 # Number of lines of code | |
| m = 0 # Number of lines of comments | |
| files = Dir.glob('/path/to/dir/**/*.rb') | |
| files.each do |f| | |
| next if FileTest.directory?(f) | |
| o += 1 | |
| i = 0 | |
| lines = [] |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |