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 | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update | |
| sudo -i export CPPFLAGS="-DSIZEOF_LONG_INT=8" | |
| sudo apt-get -y install gcc-5 g++-5 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 | |
| cd ~ | |
| echo "Configuring the unixODBC 2.3.1 Driver Manager" |
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
| # Laravel | |
| artisan() { | |
| if [ -f bin/artisan ]; then | |
| php bin/artisan "$@" | |
| else | |
| php artisan "$@" | |
| fi | |
| } |
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
| //On windows run this command, set the breakpoint and then activate the listener | |
| SET "XDEBUG_CONFIG=idekey=PHPSTORM_XDEBUG remote_enable=1 remote_host=127.0.0.1 remote_port=9000 remote_handler=dbgp remote_mode=req" | |
| //On linux run this command, set the breakpoint and then activate the listener | |
| export "XDEBUG_CONFIG=idekey=PHPSTORM_XDEBUG remote_enable=1 remote_host=127.0.0.1 remote_port=9000 remote_handler=dbgp remote_mode=req" |
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
| var cacheFunc = 'Cache'+nomeCache; | |
| if (typeof window[cacheFunc] === "function") { | |
| window[cacheFunc](oggetto); | |
| } |
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
| require('vendor/autoload.php'); | |
| use Infogram\InfogramRequest; | |
| use Infogram\RequestSigningSession; | |
| $consumerKey = 'XXXX'; | |
| $consumerSecret = 'XXX'; | |
| $session = new RequestSigningSession($consumerKey, $consumerSecret); |
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
| <?php namespace Mvs\Core; | |
| use Config; | |
| use Illuminate\Foundation\AliasLoader; | |
| use Illuminate\Support\ServiceProvider; | |
| use Mvs\Core\Console\MarioInstall; | |
| class CoreServiceProvider extends ServiceProvider { | |
| protected $configPath; |
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
| #codeigniter rewriter | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| #Removes access to the system folder by users. | |
| #Additionally this will allow you to create a System.php controller, | |
| #previously this would not have been possible. | |
| #'system' can be replaced if you have renamed your system folder. | |
| RewriteCond %{REQUEST_URI} ^system.* |
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
| $.ajax({ | |
| type: "POST", | |
| data: $("form").serialize(), | |
| url: "file.php", | |
| success: function(output, status, xhr) { | |
| console.log(xhr.getResponseHeader()); | |
| }, | |
| error: function(output) { | |
| $('.sysMsg').html(output); | |
| } |