sh install-docker.sh- log out
- log back in
This file contains hidden or 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
| let regex; | |
| /* matching a specific string */ | |
| regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
| regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
| regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
| /* wildcards */ | |
| regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
| regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
This file contains hidden or 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
| WITH recursive dep_tree AS ( | |
| SELECT mdl0.id, mdl0.name, NULL::integer, 1 AS level, array[mdl0.id] AS path_info | |
| FROM ir_module_module mdl0 | |
| WHERE name = 'sale' -- state here the child module | |
| UNION ALL | |
| SELECT (SELECT mdl1.id FROM ir_module_module mdl1 WHERE mdl1.name = c.name), rpad('', p.level * 1, '_') || c.name, c.module_id, p.level + 1, p.path_info||c.id | |
| FROM ir_module_module_dependency c | |
| JOIN dep_tree p ON c.module_id = p.id | |
| WHERE level < 5 -- define here the levels to be displayed | |
| ) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ############################################################################## | |
| # | |
| # OpenERP, Open Source Management Solution | |
| # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU Affero General Public License as | |
| # published by the Free Software Foundation, either version 3 of the |
This file contains hidden or 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
| #!/bin/sh | |
| echo -e "-- Removing exited containers --\n" | |
| docker ps --all --quiet --filter="status=exited" | xargs --no-run-if-empty docker rm --volumes | |
| echo -e "\n\n-- Removing untagged images --\n" | |
| docker rmi --force $(docker images | awk '/^<none>/ { print $3 }') | |
| echo -e "\n\n-- Removing volume directories --\n" | |
| docker volume rm $(docker volume ls --quiet --filter="dangling=true") |