Skip to content

Instantly share code, notes, and snippets.


Link in Template setzen, der die ScrollTo Funktion von Shopware benutzt:

  <a href="#" 
    Weiter lesen
View interce
const orgTrigger = document.trigger;
document.trigger = function(eventName, ...args){
console.log(eventName, args);
orgTrigger(eventName, ...args);
jhit /
Last active May 20, 2018
Taken from: What I'm actually using for pure-ftpd at the moment is the below script, run from a cronjob; rather than testing file timestamps it actually compares the certificate serial number handed out b…
# compares the ssl certficate/key used by pure-ftpd
# with the current certificate/key issued by letsencrypt and copy the latter
# to the former if they differ.
# this can be run as a cronjob to propogate letsencrypt certificate changes
# to pure-ftpd
jhit / domain.conf
Created May 15, 2017
Nginx Configuration for JTL-Shop 4
View domain.conf
user www-data;
worker_processes auto;
pid /run/;
worker_rlimit_nofile 100000;
events {
worker_connections 4096;
multi_accept on;
use epoll;
http {
jhit / iframe.html
Created Sep 7, 2016 — forked from LukeFF/iframe.html
automatic Iframe resizing without Cross-Origin issues
View iframe.html
<body onLoad="resizeParent();">
<script type="text/javascript">
function resizeParent() {
var height = document.getElementsByTagName("html")[0].scrollHeight;
window.parent.postMessage(["setIframeHeight", height], "*");
jhit / SwagAboCommerce_detection.php
Created Sep 1, 2016
Shopware subscriber to detect if AboCommerce is activated in your template.
View SwagAboCommerce_detection.php
* Adds the variable AboCommerceEnabled to the view
* @param Arguments $arguments
public function addAboCommerceData(Arguments $arguments)
/** @var \Enlight_Controller_Action $controller */
$controller = $arguments->get('subject');
View Header-Footer-Parallax-Effect.markdown
jhit /
Created Sep 30, 2012
Setup RVM/Ruby with PUMA and NGINX on Debian Sqeeze (ISPconfig)

Just some helpful commands to get RVM running on Debian Sqeeze.

Install basic build tools for RVM apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

Install dependencies to compile the mysql2 gem
apt-get install libmysqlclient-dev

Install dependencies to compile the postgre db gem

jhit /
Created Sep 29, 2012 — forked from pzol/
RVM + Puma + Ubuntu

Running Puma on Nginx

I use the latest Puma v1.4.0 from rubygems.

Make sure you have nginx installed with these options:

>/opt/nginx/sbin/nginx -V
nginx version: nginx/1.0.15
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)