Skip to content

Instantly share code, notes, and snippets.

Sergio Vilar sergiovilar

Block or report user

Report or block sergiovilar

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
View readme-php7.md

Quick install PHP 7.0:

1. Install depends PHP 7.0
$ brew install autoconf automake gmp homebrew/versions/bison27 gd freetype t1lib gettext zlib mcrypt
2. Configure PHP 7.0
$ git clone --depth=1 https://github.com/php/php-src.git
$ cd php-src
@mefellows
mefellows / rubymine-eclipse-dvorak
Last active May 10, 2016
Rubymine Eclipse-like Keymap for Dvorak
View rubymine-eclipse-dvorak
<keymap version="1" name="Dvorak - Eclipse" parent="Eclipse (Mac OS X)">
<action id="Back">
<mouse-shortcut keystroke="button4" />
</action>
<action id="CloseAllEditors">
<keyboard-shortcut first-keystroke="shift meta W" />
<keyboard-shortcut first-keystroke="shift control meta W" />
</action>
<action id="CommentByBlockComment" />
<action id="CommentByLineComment">
View highlight.sh
#!/bin/zsh
#
# Highlight a given file and copy it as RTF.
#
# Simon Olofsson <simon@olofsson.de>
#
set -o errexit
set -o nounset
@trongthanh
trongthanh / gist:1196596
Created Sep 6, 2011
Emulate slow Internet connection speed on localhost with netem (Ubuntu)
View gist:1196596
#Refer: http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delaying_only_some_traffic
#Refer: http://www.bomisofmab.com/blog/?p=100
#Refer: http://drija.com/linux/41983/simulating-a-low-bandwidth-high-latency-network-connection-on-linux/
#Setup the rate control and delay
sudo tc qdisc add dev lo root handle 1: htb default 12
sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 56kbps ceil 128kbps
sudo tc qdisc add dev lo parent 1:12 netem delay 200ms
#Remove the rate control/delay
sudo tc qdisc del dev lo root
You can’t perform that action at this time.