Skip to content

Instantly share code, notes, and snippets.

@jackperry
jackperry / gist:6084768
Created July 25, 2013 23:34
sublime user settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Tomorrow/Tomorrow-Night.tmTheme",
"font_face": "Source Code Pro",
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
@jackperry
jackperry / gist:7040013
Created October 18, 2013 11:07
Trying to use http://www.howtoinstallghost.com/how-to-host-ghost-on-an-apache-subdomain/ to get WordPress installs and a Ghost install working together properly. Thought it worked for a minute, but the WordPress domain (DOMAIN.com) just went to the Ghost one (DOMAIN2.com) as well.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName DOMAIN.com
ServerAlias www.DOMAIN.com
DocumentRoot /var/www/DOMAIN.com/public_html
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
<?php
// Your path to simplepie
include_once('/path/to/simplepie/simplepie.inc'); // Include SimplePie
// Feeds you want to aggregate
$feeds = array(
'http://jon.smajda.com/rss.xml',
'http://smajda.tumblr.com/rss',
'http://files.smajda.com/jon/feeds/greader/',
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Special Boards.tmTheme",
"font_face": "Consolas",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
@jackperry
jackperry / gist:8280055
Created January 6, 2014 09:00
Enable opening Sublime Text 2 from the command line.
echo 'alias subl="C:/Program\ Files/Sublime\ Text\ 2/sublime_text.exe"' >> ~/.bashrc
@jackperry
jackperry / SassMeister-input.scss
Created November 4, 2014 07:28
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
#hero-slider {
.controller {
ul li.webinar-mashup{
h1, h2{
{
"Seti_no_bar_undertabs": true,
"Seti_tabs_small": true,
"bold_folder_labels": true,
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"caret_extra_width": 1,
"caret_style": "phase",
"color_scheme": "Packages/Seti_UI/Scheme/Seti_monokai.tmTheme",
"draw_white_space": "selection",
@jackperry
jackperry / gist:7c583ca57b292bf69b9f
Last active August 29, 2015 14:21
ACF meta_query Pre-Fix
<?php
$today = date('Ymd');
$meta_query = array(
'relation' => 'OR',
array(
'key' => 'custom_date',
'compare' => '>=',
'value' => $today
),
array(
@jackperry
jackperry / gist:69d8c4d7327a135f5cda
Created May 19, 2015 06:52
ACF meta_query Post-Fix
<?php
$today = date('Ymd');
$meta_query = array(
'relation' => 'OR',
array(
'key' => 'custom_date',
'compare' => '>=',
'value' => $today
),
array(