Skip to content

Instantly share code, notes, and snippets.

View dennisfrank's full-sized avatar

Dennis Frank dennisfrank

View GitHub Profile
@dennisfrank
dennisfrank / 0_reuse_code.js
Created February 7, 2014 17:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dennisfrank
dennisfrank / get_remote_db.sh
Created May 23, 2014 16:49
Shell script to import a remote database into local environment
#!/bin/sh
# Import a remote database into a local database
# ----------------------------------------------
#
# Based on http://danherd.net/quick-script-synchronise-from-a-remote-expressionengine-database/
#
# Don’t forget chmod +x to make the script executable.
#
# Change the extension to .command to run the script directly from OS X Finder.
@dennisfrank
dennisfrank / SassMeister-input.scss
Last active August 29, 2015 14:24
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
/*
* Works
*/
// Works as expected
@mixin okay($foo: bar) {
@dennisfrank
dennisfrank / gist:1371496
Created November 16, 2011 21:35
Wichtige Infos (Barcamp Braunschweig 2011) – 16. November 2011

Nützliche Infos zum Barcamp Braunschweig 2011

—————————————————————————————————————
Barcamp Braunschweig 2011, http://www.barcamp-braunschweig.de
19./20. November 2011, Haus der Wissenschaft Braunschweig

Infos für alle Teilnehmer
—————————————————————————————————————

Noch drei Tage bis zum Barcamp Braunschweig 2011!

@dennisfrank
dennisfrank / dabblet.css
Created December 21, 2011 23:58
Rounded image with border and shadow
/**
* Rounded image with border and shadow
*/
.rounded {
border-radius: 50%;
box-shadow: 0 0 0 6px #fff, 0 1px 1px 6px rgba(0,0,0,.5);
}
@dennisfrank
dennisfrank / dabblet.css
Created February 6, 2012 17:23
Flexible inline text with background color
/**
* Flexible inline text with background color
*/
body {
width: 50%;
background: #363532;
}
p {
@dennisfrank
dennisfrank / dabblet.css
Created February 6, 2012 17:34
Flexible inline text with background color and large right padding
/**
* Flexible inline text with background color and large right padding
*/
body {
width: 50%;
background: #363532;
}
p {
@dennisfrank
dennisfrank / osxtweaks.sh
Last active October 2, 2015 18:58 — forked from erikh/hack.sh
OS X Tweaks
#!/usr/bin/env bash
##
# This script stands on the shoulders of giants:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# https://github.com/ptb/Mac-OS-X-Lion-Setup/blob/master/setup.sh
#
# Adjust it to your needs and install it like this:
# curl -sL https://raw.github.com/gist/2301333/osxtweaks.sh | sh
#
<?php
/**
* Custom configuration bootsrtap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*