Skip to content

Instantly share code, notes, and snippets.

View mehdichaouch's full-sized avatar
🤖
Happiness Developer

Mehdi Chaouch mehdichaouch

🤖
Happiness Developer
View GitHub Profile
@sundowndev
sundowndev / GoogleDorking.md
Last active September 18, 2026 01:24
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@veritstudio
veritstudio / billing-address-mixin.js
Created May 24, 2019 19:34
Automatically check billing address same as shipping in Magento 2
define([
'jquery',
'Magento_Checkout/js/checkout-data',
'Magento_Checkout/js/model/quote'
],function ($, checkoutData, quote) {
'use strict';
return function (Component) {
return Component.extend({
@damoclark
damoclark / raspi-config.txt
Last active June 7, 2025 07:24
Simple Raspbian Configuration Tool. Add file to boot partition of SD Card and run single command after booting Raspbian.
#/bin/sh
#
# Don't change the following lines unless you know what you are doing
# They execute the config options starting with 'do_' below
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x -
#
############# INSTRUCTIONS ###########
#
# Change following options starting with 'do_' to suit your configuration
@michelve
michelve / change-attribute-type.php
Created December 22, 2018 15:36
Magento 2 - Update/Merge/Change Product Attributes
<?php
error_reporting(1);
ini_set('max_execution_time', 0);
use \Magento\Framework\App\Bootstrap;
require_once '/var/www/html/app/bootstrap.php';
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
@7studio
7studio / POST.md
Last active April 13, 2020 23:43
Cacher son URL de connexion dans les emails RGPD de WordPress (et un peu plus)

Cacher son URL de connexion dans les emails RGPD de WordPress (et un peu plus)

Nous le savons, WordPress est un outil formidable qui propose des évolutions toujours appréciables (ou pas). La dernière en date, ne déroge pas à la règle surtout quand elle concerne la conformité RGPD 😃
Si vous n'avez pas encore fait le tour du sujet, voici un article de monsieur Jb Audras : WordPress version 4.9.6/7 : de nouveaux outils pour l’application du RGPD, un autre article concernant WooCommerce : WooCommerce 3.4 GDPR features et la liste des choses à venir : Proposed Privacy Roadmap
C'est quand même cool tout ça !

Comme toutes nouvelles fonctionnalités, même si celle-ci facilite bien la vie aux administrateurs grâce à une interface soignée, l'envers du décor pour l

@hkan
hkan / whatsapp-web-emoji-keywords.txt
Created April 30, 2018 16:25
Emoji shortcut keywords for Whatsapp Web
0⃣ 0, keycap, zero
1⃣ 1, number, one
🕜 1, 30, clock, time, one, thirty, 1:30, one-thirty
🕐 1, clock, time, one, 00, o’clock, 1:00, one o’clock
2⃣ 2, number, two
🕝 2, 30, clock, time, two, thirty, 2:30, two-thirty
🕑 2, clock, time, two, 00, o’clock, 2:00, two o’clock
3⃣ 3, keycap, three
🕞 3, 30, three, clock, time, thirty, 3:30, three-thirty
🕒 3, three, clock, time, 00, o’clock, 3:00, three o’clock
@philbirnie
philbirnie / magento2.xml
Created April 11, 2018 19:04
Magento 2 Code Styles for PHPStorm
<code_scheme name="Magento 2" version="173">
<PHPCodeStyleSettings>
<option name="ALIGN_KEY_VALUE_PAIRS" value="true" />
<option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" />
<option name="ALIGN_PHPDOC_COMMENTS" value="true" />
<option name="ALIGN_ASSIGNMENTS" value="true" />
<option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" />
<option name="PHPDOC_WRAP_LONG_LINES" value="true" />
<option name="LOWER_CASE_BOOLEAN_CONST" value="true" />
<option name="LOWER_CASE_NULL_CONST" value="true" />
@Allov
Allov / Dutch.md
Last active September 10, 2026 14:21
Règles du jeu Dutch

Dutch

Dutch

Le Dutch est un jeu de cartes qui se joue avec un paquet de cartes standards (sans les jokers). Il est recommandé d’utiliser deux paquets (104 cartes au total) pour des parties plus dynamiques.

  • Nombre de joueurs : 2 à 10
  • Durée moyenne d’une partie : environ 30 minutes

@alepane21
alepane21 / SendMailWithoutTemplate.php
Last active October 6, 2023 09:59
Example to send email without template on Magento 2
<?php
namespace Hevelop\Example\Console\Command;
use Symfony\Component\Console\Command\Command;
use Magento\Framework\Mail\TransportInterfaceFactory;
/**
* Class SendMailWithoutTemplate
*/
class SendMailWithoutTemplate extends Command
{
@larsroettig
larsroettig / Exsample.php
Last active August 30, 2021 16:02
Magento 2 Helper to Translate by Zend_Locale
<?php
namespace Your\Module;
class Example
{
/**
* @var Helper\Translation
*/
private $translation;