Skip to content

Instantly share code, notes, and snippets.

View svenmuennich's full-sized avatar

Sven Münnich svenmuennich

View GitHub Profile
@svenmuennich
svenmuennich / default.php
Last active October 27, 2017 11:55
Shopware (5.2+) dev config
<?php
return [
'db' => [
'username' => '<USERNAME>',
'password' => '<PASSWORD>',
'dbname' => 'shopware',
'host' => 'localhost',
'port' => '3306'
],
// Disable backend cache
<!-- An ant target for running only tests that are part of the goup 'custom', using also a faster test setup -->
<target name="custom-tests" depends="build-cache-dir, build-config, build-database, build-create-admin-account, build-install-lock-file, build-disable-firstrunwizard">
<exec executable="${script.phpunit}" failonerror="true" dir="${test.dir.shopware}">
<arg value="--log-junit=${log.dir}/junit.xml"/>
<arg value="--group=custom"/>
</exec>
</target>
@svenmuennich
svenmuennich / DeviceUID.m
Created October 28, 2015 20:00 — forked from miguelcma/DeviceUID.m
iOS Unique Device ID that persists between app reinstalls
/* DeviceUID.h
#import <Foundation/Foundation.h>
@interface DeviceUID : NSObject
+ (NSString *)uid;
@end
*/
// Device.m
@svenmuennich
svenmuennich / compiletexonsave.py
Last active December 16, 2015 13:38
This is a small plugin for Sublime Text 2. It automatically compiles a saved .tex to the same directory. You have to save 'compiletexonsave.py' to '~/Library/Application Support/Sublime Text 2/Packages/CompileTexOnSave/compiletexonsave.py' or similar based on your OS (mine is OSX). To enable auto compiling you have to edit your Sublime project s…
import sublime
import sublime_plugin
import subprocess
import os
from threading import Thread
#####
# The main compile method using the command line to navigate to the saved files directory
# and calling 'pdflatex' on the saved file.