This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/X11/bin/sessreg -w /var/run/utmpx -a $USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
#/ Usage: pow [on|off] | |
#/ Toggle between running Pow (http://pow.cx) and Apache on Mac OS X. | |
# Show Usage | |
function usage { | |
grep '^#/' "$0" | cut -c4- | |
exit 2 | |
} | |
[ -z "$1" -o "$1" = "--help" ] && usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS X Mountain Lion clean install Rails development environment setup using MySQL, imagemagick, homebrew and rvm. Rough steps, your mileage or your needs may vary: | |
- Install XCode from the App Store. | |
- Launch XCode > Preferences > Downloads > Install the Command Line Tools | |
- Install XQuartz version 2.7.2 http://xquartz.macosforge.org/trac/wiki/X112.7.2 | |
- Install git, I used git-osx-installer version 1.7.11.3 http://code.google.com/p/git-osx-installer/downloads/list | |
- Install Ruby 1.9.3 with rvm, run this command on a terminal and follow the instructions: curl -L https://get.rvm.io | bash -s stable --ruby | |
- Install MySQL using the DMG installer, I used version 5.1.63 found here http://dev.mysql.com/downloads/mysql/5.1.html I use this to get the files needed for the mysql2 gem to install, I don't install the prefpane or the init script since I use MAMP as my MySQL server on my Mac. | |
- Install homebrew: https://github.com/mxcl/homebrew/wiki/installation | |
- Install ghostscript, from a terminal: brew install ghosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* | |
* Function similar to wp_link_pages but outputs an ordered list instead and adds a class of current to the current page | |
*/ | |
function pico_link_pages( $args = '' ) { | |
$defaults = array( | |
'before' => '<p>' . __( 'Pages:' ), 'after' => '</p>', | |
'link_before' => '', 'link_after' => '', | |
'next_or_number' => 'number', 'nextpagelink' => __( 'Next page' ), | |
'previouspagelink' => __( 'Previous page' ), 'pagelink' => '%', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Start the engine */ | |
require_once( get_template_directory() . '/lib/init.php' ); | |
/** Child theme (do not remove) */ | |
define( 'CHILD_THEME_NAME', 'Sample Child Theme' ); | |
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/genesis' ); | |
/** Add Viewport meta tag for mobile browsers */ | |
add_action( 'genesis_meta', 'add_viewport_meta_tag' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
_______ | |
These simple SCSS/SASS mixins for Foundation 4 are made by me to deal with media-queries and have a clean code at the same time! ;) | |
****IMPORTANT**** | |
Due to Foundation 4 uses mobile-first methodology, every $phone-"X" variable in these mixins defines the value for every screen size. | |
$desktop-"X" values overrides $phone-"X" values when the width of the window is 768px and above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# instead of pull which does fetching and merging it to the current branch (which has diamond effects on commits nodes) you can use this. | |
# git fetch && git rebase remotename/branchname local_branchname | |
git fetch && git rebase origin/sprint1 sprint1 | |
#update your local copy of remote repository by using fetch then rebase your localbranch to the remote repository copy (which is origin/sprint1) then checkout the local_branch which is sprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var express = require('express'); | |
var path = require('path'); | |
var tinylr = require('tiny-lr'); | |
var createServers = function(port, lrport) { | |
var lr = tinylr(); | |
lr.listen(lrport, function() { | |
gutil.log('LR Listening on', lrport); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you'll need homebrew too | |
cd Sites | |
git clone git://github.com/midgetspy/Sick-Beard.git sickbeard | |
# Probably need this: | |
# sudo easy_install cheetah | |
# | |
# test: | |
# python sickbeard/SickBeard.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include gulp | |
var gulp = require('gulp'); | |
// Include Our Plugins | |
var sass = require('gulp-sass'); | |
var lr = require('tiny-lr'), | |
refresh = require('gulp-livereload'), | |
server = lr(); |
OlderNewer