Skip to content

Instantly share code, notes, and snippets.

Jürgen Hörmann jhit

Block or report user

Report or block jhit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View use-sw-scrollto.md

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

<p>
  <a href="#" 
    data-scroll="true" 
    data-scrollTarget="#category_text">
    Weiter lesen
  </a>
</p>
View interce
const orgTrigger = document.trigger;
document.trigger = function(eventName, ...args){
console.log(eventName, args);
orgTrigger(eventName, ...args);
};
@jhit
jhit / letsencrypt-for-pure-ftpd.sh
Last active May 20, 2018
Taken from: https://www.howtoforge.com/community/threads/securing-ispconfig-3-control-panel-port-8080-with-lets-encrypt-free-ssl.75554/page-4#post-357460. 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…
View letsencrypt-for-pure-ftpd.sh
#!/bin/bash
# letsencrypt-for-pure-ftpd.sh: 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
PUREFTPD_CERT=/etc/ssl/private/pure-ftpd.pem
@jhit
jhit / domain.conf
Created May 15, 2017
Nginx Configuration for JTL-Shop 4
View domain.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
worker_rlimit_nofile 100000;
events {
worker_connections 4096;
multi_accept on;
use epoll;
}
http {
View keybase.md

Keybase proof

I hereby claim:

  • I am jhit on github.
  • I am jhit (https://keybase.io/jhit) on keybase.
  • I have a public key whose fingerprint is 2179 FA53 5D28 9A0E 93AF 32E2 ED18 5EEE 1DFB 38CE

To claim this, I am signing this object:

@jhit
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], "*");
}
</script>
</body>
@jhit
jhit / SwagAboCommerce_detection.php
Created Sep 1, 2016
Shopware subscriber to detect if AboCommerce is activated in your template.
View SwagAboCommerce_detection.php
<?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
jhit / install-rvm.md
Created Sep 30, 2012
Setup RVM/Ruby with PUMA and NGINX on Debian Sqeeze (ISPconfig)
View install-rvm.md

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
jhit / README.md
Created Sep 29, 2012 — forked from pzol/README.md
RVM + Puma + Ubuntu
View README.md

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) 
You can’t perform that action at this time.