Skip to content

Instantly share code, notes, and snippets.

View soufianeEL's full-sized avatar

soufiane EL HAMCHI soufianeEL

View GitHub Profile
soufianeEL / aspire.php
Last active September 14, 2017 10:57
A simple script to aspire (download all files) the 'index of' a website
View aspire.php
just change the root link and rn the srcipt
$root=''; // your link here
$fileRoot= get($root);
$links= getlinks($fileRoot);
soufianeEL / laravel.js
Last active June 18, 2023 05:25 — forked from JeffreyWay/laravel.js
You use Laravel 5 and you want to send a DELETE request without creating a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. To use, import script, and create a link with the `data-method="DELETE"` and `data-token="{{csrf_token()}}"` attributes.
View laravel.js
Exemples :
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}">
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?">
(function() {
soufianeEL / kamailio.cfg
Created May 12, 2014 17:33
Kamailio.cfg with SIP over websockets support included and PostgreSQL as database engine ( Kamailio v=4.1.3 )
View kamailio.cfg
# Kamailio (OpenSER) SIP Server v4.1 - default configuration script
# - web:
# - git:
# Direct your questions about this file to: <>
# Refer to the Core CookBook at
soufianeEL /
Created January 21, 2014 08:00 — forked from jookyboi/
Rails-related Gems and guides to accelerate your web project.


  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h