Skip to content

Instantly share code, notes, and snippets.

View ramlev's full-sized avatar

Hasse Ramlev Wilson ramlev

View GitHub Profile
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
<?php
function ding_facetbrowser_theme() {
return array(
'facetbrowser' => array(
'variables' => array(
'facets' => NULL,
'searchkey' => NULL,
),
),
);
// For inserts, we need a new item_id for the item. See the comment a few lines
// below, before we call the content_<op> function.
if ($sOperation === 'insert') {
$aNodeRevision = array(
'nid' => $oNode->nid,
'uid' => $oNode->uid,
'title' => '',
'body' => '',
'teaser' => '',
'log' => '',
# brew install dnsmasq
# sudo cp /usr/local/Cellar/dnsmasq/VERSION/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
# vi /usr/local/etc/dnsmasq.conf
address=/dev/127.0.0.1
address=/.dev/127.0.0.1
#user nobody;
worker_processes 1;
#error_log logs/error.log;
error_log /var/log/nginx/error.log info;
#error_log logs/error.log info;
pid /usr/local/var/run/nginx.pid;
server {
listen 80 default;
server_name *.dev;
if ($host ~* "^(.+)+.dev$") {
set $site $1;
}
root /Users/Hasse/www/$site;
index index.php;