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
@b-alidra
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", [] );
app.directive(
"bnLazySrc",
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
b-alidra / le-renew.sh
Last active Oct 6, 2017 — forked from bmanojlovic/le-renew.sh
Auto renewal for Let's Encrypt Apache
View le-renew.sh
#!/bin/bash
#================================================================
# Let's Encrypt renewal script for Apache on Ubuntu/Debian
# @author Erika Heidi<erika@do.co>
# Usage: ./le-renew.sh [base-domain-name]
# More info: http://do.co/1mbVihI
#================================================================
domain=$1
le_path='/opt/letsencrypt'
le_conf='/etc/letsencrypt'
You can’t perform that action at this time.