Regular Expression Cheatsheet

Character classes . – Matches any character except newline\d – Digit (0-9)\D – Not a digit (0-9) – opposite of \d\w, [A-Za-z0-9_], [:word:] – Word character (a-z, A-Z, 0-9 and _)\W, [^A-Za-z0-9], [^:word:] – Not a word character\s – Whitespace (space, tab, newline)\S – Not whitespace (space, tab, newline) – opposite of \s[] – Matches…

List of Prestashop Smarty Variables

{$subcategory.id_image|@print_r} ==> Print an array {$page|@print_r} ==> Print page array {if $subcategory.id_image neq it-default1} {else} {/if} ==> Check if subcategory has image {$urls.base_url} ==> Prestashop site baseUrl {$urls.base_url} ==> Store address {$urls.current_url} ==> Current address (url) where we are {$urls.shop_domain_url} ==> Store domain {$urls.img_ps_url} ==> Image root directory url {$urls.img_cat_url} ==> Url directory of images…

List of Directadmin hook scripts

Below is the list of Directadmin Hook scripts: Authentication Hooks login_key_create_post.sh login_key_modify_post.sh login_pre.sh lost_password_pre.sh one_click_pma_login_post.sh session_create_pre.sh session_destroy_pre.sh Cron Hooks cron_set_pre.sh cron_set_post.sh Database Hooks database_create_pre.sh database_create_post.sh database_delete_pre.sh database_delete_post.sh database_destroy_user_post.sh database_user_create_post.sh database_user_password_change_pre.sh database_user_password_change_post.sh DNS Hooks dns_create_post.sh dns_delete_post.sh dns_raw_save_post.sh dns_write_post.sh named_action_post.sh taskq_dns_post.sh Domain Management Hooks domain_change_pre.sh domain_change_post.sh domain_create_pre.sh domain_create_post.sh domain_destroy_pre.sh domain_destroy_post.sh domain_modify_pre.sh domain_modify_post.sh domain_pointer_create_pre.sh domain_pointer_create_post.sh domain_pointer_destroy_pre.sh domain_pointer_destroy_post.sh subdomain_create_pre.sh…