If you are running MongoDB 3.2 or later version, you can limit the wiredTiger cache.
In /etc/mongod.conf add the wiredTiger part:
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
wiredTiger:
| .history | |
| .vscode | |
| save.sh |
| #!/bin/bash | |
| openssl \ | |
| req \ | |
| -x509 \ | |
| -nodes \ | |
| -days 365 \ | |
| -newkey rsa:2048 \ | |
| -keyout $PWD/httpd-selfsigned.key \ | |
| -out $PWD/httpd-selfsigned.crt \ |
If you are running MongoDB 3.2 or later version, you can limit the wiredTiger cache.
In /etc/mongod.conf add the wiredTiger part:
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
wiredTiger:
| /** | |
| * Include Attributes for search | |
| * @return array|null | |
| */ | |
| function getProductSearchClauses() { | |
| /* @var WP_Query $wp_query */ | |
| global $wp_query; | |
| global $wpdb; |
| <?php | |
| /** | |
| * This needs to be investigated for the case the image comes from Advanced Custom Field, Toolset, Featured Image etc. | |
| * | |
| * This example shows the actual image used on the browser depends on "sizes" attribute | |
| * even though each IMG Tag refers different image file at "src" attribute. | |
| * | |
| * Wordpress creates three thumbnails from the original image when we upload it via Media Library. | |
| * If the image width is smaller than the three sizes, it creates only the ones smaller than the image | |
| * (e.g. If the image has 700px width, only two thumbnails (150px and 300px) are created). |
| # https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes | |
| # https://docs.docker.com/compose/compose-file/ | |
| # | |
| # [ How to delete Dangling Images (which are layers that have no relationship to any tagged images) ] | |
| # docker rmi $(docker images -f dangling=true -q) | |
| # | |
| # [How to login the container] | |
| # docker run -t -i kali_kali /bin/bash | |
| # | |
| # [About Metasploit] |
| # https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes | |
| # https://docs.docker.com/compose/compose-file/ | |
| version: "3" | |
| services: | |
| web: | |
| image: nginx:latest | |
| ports: | |
| #- "8080:80" | |
| - "8080:8080" | |
| restart: always |
| // ==UserScript== | |
| // @name Enter postcode at Telstra Site | |
| // @namespace http://your.homepage/ | |
| // @version 0.1 | |
| // @description Enter your postcode automatically at Telstra Service Status page | |
| // @author Hiro Nozu | |
| // @match http://servicestatus.telstra.com/ | |
| // @grant none | |
| // ==/UserScript== |
| <?php | |
| /** | |
| * Place this PHP script somewhere accessible via HTTP, amend it for your situation if necessary | |
| * | |
| * Example Usage with jQuery | |
| * $.getScript( | |
| * 'http://my-site.com/get-sar.php', | |
| * function() { | |
| * // You can use something like http://www.chartjs.org/ to display the data as chart |