Skip to content

Instantly share code, notes, and snippets.


Edson Horácio Junior edsonhoraciojunior

View GitHub Profile
View laravel-iis-web.config
<?xml version="1.0" encoding="utf-8"?>
<rule name="Laravel4" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
edsonhoraciojunior / gist:025cf202934f210b00033363bfbfa7c0
Last active Jun 6, 2018 — forked from trongthanh/gist:1196596
Emulate slow Internet connection speed on localhost with netem (Ubuntu)
View gist:025cf202934f210b00033363bfbfa7c0
#Setup the rate control and delay
sudo tc qdisc add dev enp3s0 root handle 1: htb default 12
# rate control - slow outgoing traffic
sudo tc class add dev enp3s0 parent 1:1 classid 1:12 htb rate 56kbps ceil 128kbps
# delay and packet loss
edsonhoraciojunior / PdfDownloadAndViewer.js
Last active May 9, 2018
AngularJS - Save remote PDF locally and open it using native PDF Viewer
View PdfDownloadAndViewer.js
'use strict';
.controller('PdfDownloadAndViewerCtrl', function(
edsonhoraciojunior / download_remote_files.php
Created Nov 3, 2016
Download remote files using PHP's ssh2 and ssh2_scp
View download_remote_files.php
// Just for logging
$begin = microtime(true);
$totalSize = 0;
$totalQty = 0;
$totalNotFoundQty = 0;
// Remove script running time limit