Skip to content

Instantly share code, notes, and snippets.

Avatar

soufiane EL HAMCHI soufianeEL

View GitHub Profile
@soufianeEL
soufianeEL / aspire.php
Last active Sep 14, 2017
A simple script to aspire (download all files) the 'index of' a website
View aspire.php
<?php
/*
just change the root link and rn the srcipt
*/
$root='http://domain.com/domain_name_data/sample/'; // your link here
$fileRoot= get($root);
$links= getlinks($fileRoot);
@soufianeEL
soufianeEL / laravel.js
Last active Nov 26, 2020 — 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
soufianeEL / kamailio.cfg
Created May 12, 2014
Kamailio.cfg with SIP over websockets support included and PostgreSQL as database engine ( Kamailio v=4.1.3 )
View kamailio.cfg
#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.1 - default configuration script
# - web: http://www.kamailio.org
# - git: http://sip-router.org
#
# Direct your questions about this file to: <sr-users@lists.sip-router.org>
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
@soufianeEL
soufianeEL / rails_resources.md
Created Jan 21, 2014 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.
View rails_resources.md

Gems

  • 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
You can’t perform that action at this time.