Skip to content

Instantly share code, notes, and snippets.

@cuchac
cuchac / Dockerfile
Last active March 25, 2021 12:47 — forked from skurfuerst/build.sh
GitLab and Rancher 2 Authentication Proxy
FROM golang:1.14 AS builder
WORKDIR /go/src/app
COPY . .
RUN sh build.sh
FROM alpine:latest
RUN apk --no-cache add ca-certificates
@cuchac
cuchac / Debug smarty with firebug
Created September 2, 2014 08:10 — forked from gtraxx/Debug smarty with firebug
Shows all Smarty variables in tree-view directly in console. Always available and easy to access
{* Smarty *}
{capture name='_smarty_debug' assign=debug_output}
<script type="text/javascript">
// <![CDATA[
window.smarty ={};
{if $assigned_vars != null}
{foreach $assigned_vars as $vars}
window.smarty['{$vars@key|escape:'javascript'}'] = {$vars|@json_encode nofilter};
{/foreach}