Glossary:
- md: multiple devices
| command | description |
|---|---|
cat /proc/mdstat |
show status of all raids |
mdadm --detail /dev/md0 |
detailed status of raid md0 |
ansible-playbook --connection=local 127.0.0.1 playbook.yml127.0.0.1 ansible_connection=local| # Chroot Jail for SSH Access | |
| # Tested on Ubuntu 14.04.2 LTS and Debian GNU/Linux 8 (jessie) | |
| # Reference : http://allanfeid.com/content/creating-chroot-jail-ssh-access | |
| # | |
| # Had to add/change several things to make it work, including: | |
| # - create lib64 folder | |
| # - copy whoami dependencies that ldd doesn't show to fix 'I have no name!' | |
| # in the customized prompt + create passwd file | |
| # |
docker exec -i mysql_container mysqldump -uroot -proot --databases database_name --skip-comments > /path/to/my/dump.sqldump.sql file in your host machine. Awesome, eh?--compact on your dump. This will make MySQL check your constraints which will cause troubles when reading your file (damm you MySQL). And don't use --force to fix this scenario: recreate your dump without --compact ¯_(ツ)_/¯| <?php | |
| /** | |
| * Class to hide file download links and count download number. | |
| * | |
| * @package kagg-downloader | |
| */ | |
| namespace GTS\Quote; | |
| /** |
| <?php | |
| /** | |
| * Загружает изображение в медиабиблиотеку по переданному url. | |
| * | |
| * @param string $url | |
| * @param int $post_id | |
| * | |
| * @return int|WP_Error | |
| */ |
| <?php | |
| /** | |
| * Remove current action or filter from plugin | |
| * | |
| * @param string $class_name Class name enqueueing the action. | |
| * @param null $action_name Action name. | |
| */ | |
| function remove_plugin_action( $class_name, $action_name = null ) { | |
| global $wp_filter; |
| <?php | |
| /** | |
| * Escape markdown text | |
| * | |
| * @param string $text The markdown text to escape | |
| * | |
| * @return string Escaped text | |
| */ | |
| function markdown_escape($text) { | |
| // Define a regex pattern for all special characters in markdown |
| # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again | |
| # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution | |
| # http://www.prestashop.com - http://www.prestashop.com/forums | |
| <IfModule mod_rewrite.c> | |
| <IfModule mod_env.c> | |
| SetEnv HTTP_MOD_REWRITE On | |
| </IfModule> | |
| RewriteEngine on |
| #!/bin/bash | |
| # Author: Jinta Orishima | |
| set -eu | |
| script_name="Debian 11 Winter Boot Docker Rootless" | |
| compose_v="2.6.0" | |
| echo "Running ${script_name}..." |