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
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" } |
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
function convertToRoman(num) { | |
var first = ""; | |
var second = ""; | |
var third = ""; | |
var count = ""; | |
var placeHolder = ""; | |
var addFirst = ""; | |
var addSecond = ""; | |
var answer = ""; | |
var test = ""; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
/** | |
* @author Federico Liva <[email protected]> | |
* @copyright Copyright (C)2015 Federico Liva. All rights reserved. | |
* @license GNU General Public License, version 2 or later | |
*/ | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
ini_set('max_execution_time', 0); |
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
################################################################################# | |
### The perfect Varnish configuration for Joomla (& other CMS based) websites ### | |
################################################################################# | |
# USE: Place the contents of this configuration inside the main | |
# Varnish configuration file, located in: /etc/varnish/default.vcl (root server access required - obviously) | |
# IMPORTANT: The following setup assumes a 2 minute cache time. You can safely increase | |
# this to 5 mins for less busier sites or drop it to 1 min or even 30s for high traffic sites. |