Skip to content

Instantly share code, notes, and snippets.

@jloescher
jloescher / gist:287e05352db0fd4722f1
Created November 8, 2015 04:51
aspnet-dockerfile
FROM debian:jessie
ENV DNX_VERSION 1.0.0-beta8
ENV DNX_USER_HOME /opt/dnx
RUN apt-get -qq update && apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g && rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \
&& dnvm install $DNX_VERSION -alias default -r coreclr \
@jloescher
jloescher / head.phtml
Last active April 16, 2020 02:38
Dynamically Create Schema.org code for head section of a Magento 1.9 website.
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
@jloescher
jloescher / wp-config.environment.php
Created July 16, 2014 00:30
Multi Environments | WP-Config.environment.php
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@jloescher
jloescher / wp-config.php
Last active August 29, 2015 14:04
Multi Environments | WP-Config.php
<?php
/** Absolute path to the WordPress directory. **/
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Define Environments **/
$environments = array(
'localhost' => 'localhost',
'development' => '',