Skip to content

Instantly share code, notes, and snippets.

View timneutkens's full-sized avatar
👋

Tim Neutkens timneutkens

👋
View GitHub Profile
require('dotenv').config();
const withCSS = require('@zeit/next-css');
const path = require('path');
const Dotenv = require('dotenv-webpack');
const withImages = require('next-images');
const withTypescript = require('@zeit/next-typescript');
const withOffline = require('next-offline');
const {PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD} = require('next/constants')
@timneutkens
timneutkens / db-open
Last active January 24, 2017 09:11 — forked from helderco/db-open
Edited for Docker for Mac - Script to open a mysql database in Sequel Pro from a service in docker-compose.
#!/bin/bash
set -e
show_help() {
cat << EOF
Usage: ${0##*/} [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE]
${0##*/} -h
Open a standard connection in Sequel PRO.
@timneutkens
timneutkens / getconfig.md
Last active March 24, 2019 17:45 — forked from wsakaren/gist:3a26a61347cbe485677f
Mage::getStoreConfig in Magento 2 compared to Magento 1

Magento 1.x:

Mage::getStoreConfig('carriers/shipper/active')

Magento 2.x (using constructor injection):

protected $scopeConfig;
@timneutkens
timneutkens / wp-query-ref.php
Created April 7, 2016 10:31 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(