Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
jdsimcoe / mojave.sh
Created June 29, 2018 17:34
Mojave Dark MenuBar and Dock without Dark Theme
defaults write -g NSRequiresAquaSystemAppearance -bool YES
@jdsimcoe
jdsimcoe / generate-icns.sh
Last active August 18, 2016 15:14
Generating icons using iconutil.
iconutil -c icns icon.iconset
@jdsimcoe
jdsimcoe / build.js
Created May 12, 2016 18:39 — forked from 0gust1/build.js
metalsmith static website build, with livreload
var extname = require('path').extname;
var Metalsmith = require('metalsmith');
var myth = require('myth');
var http = require('http');
var templates = require('metalsmith-templates');
var markdown = require('metalsmith-markdown');
var watch = require('metalsmith-watch');
/**
@jdsimcoe
jdsimcoe / deployments.js
Created November 11, 2013 20:03
Grunt Deployments with Custom SSH Ports
/*
* grunt-deployments
* https://github.com/getdave/grunt-deployments
*
* Copyright (c) 2013 David Smith
* Licensed under the MIT license.
*/
'use strict';
@jdsimcoe
jdsimcoe / SublimeGrunt.sublime-settings
Created October 29, 2013 04:39
SublimeGrunt Settings
{
"exec_args": {
"path": "/usr/local/bin:/usr/local/Cellar/node/0.10.16/bin"
}
}
@jdsimcoe
jdsimcoe / globals.xsl
Created October 28, 2013 23:56
Modal Templates
<xsl:template match="videos-random/entry">
<xsl:call-template name="modal-entry"/>
</xsl:template>
<xsl:template match="videos-all/entry">
<xsl:call-template name="modal-entry"/>
</xsl:template>
@jdsimcoe
jdsimcoe / data.twitter_search.php
Created October 24, 2013 17:26
Symphony-TwitterSearch
<?php
require_once(TOOLKIT . '/class.datasource.php');
require_once(TOOLKIT . '/class.entrymanager.php');
Class datasourcetwitter_search extends Datasource{
public $dsParamROOTELEMENT = 'twitter-search';
@jdsimcoe
jdsimcoe / .htaccess
Created October 22, 2013 05:59
htaccess
### Symphony 2.2.x ###
Options +FollowSymlinks -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
### SECURITY - Protect crucial files
@jdsimcoe
jdsimcoe / Symphony-Header-Error.md
Last active December 26, 2015 04:48
header-information-error

###Symphony Warning:

Cannot modify header information - headers already sent by (output started at /Users/jdsimcoe/Sites/atheycreek/workspace/elasticsearch/mappings/teachings.php:1)

An error occurred in /Users/jdsimcoe/Sites/atheycreek/symphony/lib/toolkit/class.page.php around line 308

303 if($key == 'status' && isset($value['response_code'])) { 304 $res_code = intval($value['response_code']); 305 self::renderStatusCode($res_code); 306 }

@jdsimcoe
jdsimcoe / teachings.php
Last active December 26, 2015 04:19
teachings-mapping-php
<?php
class elasticsearch_teachings {
public function mapData(Array $data, Entry $entry) {
$json = array();
// var_dump($data);
$json['_boost'] = 1;