Skip to content

Instantly share code, notes, and snippets.

@korzo
korzo / Export-Chocolatey.ps1
Created August 29, 2017 04:37 — forked from alimbada/Export-Chocolatey.ps1
Export installed Chocolatey packages as chocolatey script
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" }
function convertToRoman(num) {
var first = "";
var second = "";
var third = "";
var count = "";
var placeHolder = "";
var addFirst = "";
var addSecond = "";
var answer = "";
var test = "";
@korzo
korzo / 0_reuse_code.js
Created April 4, 2016 02:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@korzo
korzo / ucm_remapper.php
Created December 1, 2015 01:27
Rebuilt Joomla's ucm_content and ucm_base tables for articles
<?php
/**
* @author Federico Liva <mail@federicoliva.info>
* @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);
@korzo
korzo / default.vcl
Created November 5, 2015 10:52 — forked from fevangelou/default.vcl_PREFACE.md
The perfect Varnish configuration for Joomla (& other CMS based) websites
#################################################################################
### 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.