Skip to content

Instantly share code, notes, and snippets.

Belkacem Alidra b-alidra

Block or report user

Report or block b-alidra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View strip_quotes_from_email.php
* Remove the quoted parts from the message body.
* It actually handles:
* - Standard <blockquote>...</blockquote>
* - Google
* - Yahoo
* - Thunderbird
* - OSX Mail Client
b-alidra /
Last active Jul 1, 2019
Send AT commands using atinout to Huawei E3531 modem after Kannel service has started
while ! sudo systemctl is-active --quiet $SERVICE; do
echo "waiting the $SERVICE service to start"
sleep 10
b-alidra /
Last active Oct 6, 2017 — forked from bmanojlovic/
Auto renewal for Let's Encrypt Apache
# Let's Encrypt renewal script for Apache on Ubuntu/Debian
# @author Erika Heidi<>
# Usage: ./ [base-domain-name]
# More info:
View common_tags.php
$els_to_remove = [
'blockquote', // Standard quote block tag
'div.moz-cite-prefix', // Thunderbird
'div.gmail_extra', 'div.gmail_quote', // Gmail
'div.yahoo_quoted' // Yahoo
b-alidra / lazy-loading-images.js
Last active Mar 31, 2016 — forked from bennadel/lazy-loading-images.htm
Lazy Loading Image With AngularJS
View lazy-loading-images.js
var app = angular.module( "Demo", [] );
function( $window, $document ) {
// I manage all the images that are currently being
// monitored on the page for lazy loading.
var lazyLoader = (function() {
// I maintain a list of images that lazy-loading
b-alidra / mouse.xml
Created Jan 7, 2016
Minix A2 Lite mouse keycap for Kodi
View mouse.xml
<doubleclick id="0">noop</doubleclick>
<longclick id="0">noop</longclick>
b-alidra / keymap.xml
Created Jan 7, 2016
Minix A2 Lite keymap for Kodi
View keymap.xml
b-alidra / short_tags
Created Apr 23, 2015
Remove PHP short tags - Thanks to @kAworu
View short_tags
perl -i -pe 's/<\?(?!php|xml|=)/<?php /g' **/*.php
You can’t perform that action at this time.