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
@erikaheidi
erikaheidi / le-renew.sh
Last active Nov 17, 2019
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'
@lbrenman
lbrenman / _readme
Last active Apr 19, 2017
Appcelerator Titanium ti-mocha simple titanium example
View _readme
Titanium has no built in Unit Test as Xcode/ObjC and Android Java have
Jasmine and Ti-mocha are the two main unit test frameworks for titanium
Jasmine runs without requiring the app to run
Ti-mocha runs while the app is running
Using T-Mocha
@bennadel
bennadel / lazy-loading-images.htm
Created Jul 23, 2013
Lazy Loading Image With AngularJS
View lazy-loading-images.htm
<!doctype html>
<html ng-app="Demo" ng-controller="AppController">
<head>
<meta charset="utf-8" />
<title>
Lazy Loading Images With AngularJS
</title>
<style type="text/css">
@zeuxisoo
zeuxisoo / app.js
Created Jun 9, 2011
Titanium mobile parse html
View app.js
Ti.include('lib/htmlparser.js');
Ti.include('lib/soupselect.js');
var select = soupselect.select;
var body = '<html><head><title>Test</title></head>'
+ '<body>'
+ '<img src="http://l.yimg.com/mq/i/home/HKGallery.gif" />'
+ '<div id="block">'
+ ' <div class="row">Row 1</div>'
You can’t perform that action at this time.