Skip to content

Instantly share code, notes, and snippets.

View zachbrowne's full-sized avatar

Zach Browne zachbrowne

View GitHub Profile
@zachbrowne
zachbrowne / custom.css
Created December 7, 2011 21:55
Add Fast Loading Social Sharing to WordPress Thesis Theme
/* .clear rules may be removed if you have them already in your custom.css */
.clear {
clear:both;
}
/* share buttons */
#social_buttons {
clear:both;
margin-bottom:1.5em;
}
.custom_share_button_box {
@zachbrowne
zachbrowne / custom_functions.php
Created December 7, 2011 21:56
Add Body OnLoad js to WordPress Thesis Theme
<?php
function custom_body_class_event($classes) {
$classes[] .= '" onload="setMoveType();';
return $classes;
}
add_filter('thesis_body_classes', 'custom_body_class_event',99,1);
?>
@zachbrowne
zachbrowne / custom.css
Created December 7, 2011 22:01
Create Profile Form Page with WordPress and Thesis
/* PROFILE FORM ON FRONT */
.custom form#your-profile table {
width:100%;
}
.custom form#your-profile table td span,.custom form#your-profile table td p.indicator-hint {
clear:both;
display:block;
text-align:right;
}
@zachbrowne
zachbrowne / custom.css
Created February 9, 2012 21:34
Adding Full Facebook Integration with the Thesis Theme for WordPress
/* Facebook Like Box */
.fb-like {
float: right;
margin: 0 0 5px 15px;
}
/* Facebook Comments Plugin */
.fb-comments {
margin-top: 20px;
background: #f9f9f9;
@zachbrowne
zachbrowne / jquery-ui-tabs.css
Created March 1, 2012 20:43
Custom CSS jQuery Tabs (Blue Gradient)
/*
* jQuery UI CSS Framework 1.8.17
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*/
@zachbrowne
zachbrowne / functions.php
Created March 12, 2012 04:14 — forked from mattonomics/functions.php
Thesis Child Theme - Advanced
<?php
if (! defined('ABSPATH'))
die('Please do not directly access this file');
include_once(TEMPLATEPATH . '/functions.php');
class thesis_child_theme_example extends thesis_custom_loop {
public function __construct() {
@zachbrowne
zachbrowne / google_redirect_remove.js
Created March 14, 2012 15:13
Userscript to remove URL redirection from google sites
// ==UserScript==
// @name Google Redirect Remove
// @id google_redirect_remove
// @namespace scripts.zachbrowne.com
// @description Remove URL redirection from google sites
// @license GPL v3
// @include *://www.google.*/*q=*
// @include *://www.google.*/*tbs=*
// @include *://www.google.*/search?*
// @include *://www.google.*/webhp?*
@zachbrowne
zachbrowne / youtube_downloader.js
Created March 14, 2012 15:24
Userscript to download YouTube videos with one click.
// ==UserScript==
// @name YouTube Downloader
// @id youtube_downloader
// @namespace scripts.zachbrowne.com
// @description Download YouTube videos with one click.
// @author Zach Browne
// @license GPL v3
// @version 1.4
// @include http://www.youtube.com/watch?v=*
// @include http://www.youtube.com/watch?feature=*
@zachbrowne
zachbrowne / instructions.txt
Created March 29, 2012 14:28
Install RVM, Ruby, Rails, Apache & Passenger on Ubuntu 10.04
1. apt-get update && apt-get upgrade
2. apt-get install apache2
3. su - zach
4. bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
5. source ~/.bash*
6. sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
7. rvm install 1.9.3
8. rvm use 1.9.3 --default
9. gem install rails
10. gem install passenger
@zachbrowne
zachbrowne / .bashrc
Created April 3, 2012 14:43
Useful Bash Aliases
alias fix='sudo find /home/zach/www/*/public -type d -exec chmod 755 {} \; && sudo find /home/zach/www/*/public -type f -exec chmod 644 {} \; && sudo chown -R zach:zach /home/zach && sudo chown -R www-data:www-data /home/zach/www/*/public'