This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: OSX, un servizio in ascolto su di un container docker | |
Avviare il container docker esponendo le porte | |
$ docker run -d -P memcached | |
Abilitare il packet forwarding | |
$ sysctl -w net.inet.ip.forwarding=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOW SELLING: | |
Tiny and Big: Grandpa's Leftovers | |
TO GO: | |
Alan Wake's American Nightmare | |
Betrayal at Krondor Pack | |
Edna & Harvey: Harvey's New Eyes | |
FTL: Advanced Edition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script to turn xdebug on and off | |
# Permission to copy and modify is granted under the MIT license | |
# Last revised 2014-03-07 | |
# Mauro Maggi <maurotdo (at) gmail (dot) com> | |
PHP=$(which php) | |
XDEBUG=$($PHP -i | grep -i xdebug | grep -i enabled) | |
INI=$($PHP -i | grep "xdebug.ini") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* form submit*/ | |
$(function() { | |
$("form").first().submit(function(e) { | |
e.preventDefault(); | |
var form = $(this); | |
if (form) { | |
var url = form.attr("action"); | |
var formData = new FormData(document.forms[0]); | |
$.ajax({ | |
url: url, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script to turn xdebug on and off | |
# Permission to copy and modify is granted under the MIT license | |
# Last revised 2013-05-23 | |
# Mauro Maggi <maurotdo (at) gmail (dot) com> | |
PHP=$(which php) | |
BREW=$(which brew) | |
XDEBUG=$($PHP -i | grep -i xdebug | grep -i enabled) |