Skip to content

Instantly share code, notes, and snippets.

View AJ-Acevedo's full-sized avatar
🤓
Studying

AJ Acevedo AJ-Acevedo

🤓
Studying
View GitHub Profile
@AJ-Acevedo
AJ-Acevedo / this_should_work.css
Last active December 25, 2015 10:59
For Jillaone
/* Comment the current #thank-you-for-subscribing class and add this */
#thank-you-for-subscribing {
font-size: 60px;
min-height: 100%;
min-width: 1024px;
width: 100%;
/*width: auto; */
height: auto;
position: fixed;
@AJ-Acevedo
AJ-Acevedo / .gitignore
Created October 6, 2013 22:11
Example .gitignore file for WordPress with customized plugins, and files to include in the root directory.
# Ignore everything
*
# Ignore everything except
!.gitignore
!.htaccess
!Gruntfile.js
!/lists/
!/lists/*
!/lists/*/*
@AJ-Acevedo
AJ-Acevedo / option.php
Last active December 24, 2015 01:19
Simple Solution to run a Development WordPress installation with the same database and codebase as the production server.
// Substitute URL for local/dev deploys
if ($option == "siteurl" || $option == "home") {
if ( strcmp($_SERVER['HTTP_HOST'], 'http://localhost') != 0)
return "http://$_SERVER[HTTP_HOST]";
}
@AJ-Acevedo
AJ-Acevedo / admin-bar-fix.css
Last active April 25, 2017 00:39
WordPress 3.6 and Bootstrap 3 Admin bar overlap fix
// This fixes the WordPress admin-bar 28px overlap issue with Bootstrap 3.
body.admin-bar .navbar {
position:fixed;
top: 28px;
z-index: 1000;
height: 40px;
// If the above does not work try this if your nav is wrapped in .header
@AJ-Acevedo
AJ-Acevedo / Multienancy-with-rails.md
Last active December 21, 2015 03:39
Multienancy with Rails book corrections from: The version published on 2013-08-10

These suggestions are referencing pages from the pdf version published on 2013-08-10

Page: 5
Details:
If using rspec then there is no need for the test directory.

Original:
rails plugin new subscribem --full --mountable --dummy-path spec/dummy

@AJ-Acevedo
AJ-Acevedo / Contract_Fixed.md
Last active December 21, 2015 01:19 — forked from malarkey/Contract Killer 3.md
AJAlabs - Web Design and Development, Fixed Rate Contract

AJAlabs - Web Development Contract

Revised date: 08/13/2013

Between us [company name]
and you [customer name]

Summary:

Bearded's Hourly Contract

Date: [[Date of Document]] Between [Our Company] and [Your Company]

Summary

We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.

@AJ-Acevedo
AJ-Acevedo / fizzbuzz.rb
Created August 8, 2013 19:57
Fizz Buzz - Written in Ruby
#!/usr/bin/env ruby
# Fizz Buzz
# Copyright (c) 2013 AJ Acevedo | http://ajacevedo.com
# This content is released under the MIT License.
# http://www.opensource.org/licenses/mit-license.php
# Version: 0.1
# The heavy lifting of Fizz Buzz
def fizz_buzz?(count)
@AJ-Acevedo
AJ-Acevedo / ruby.log
Last active December 20, 2015 10:59
Ruby Segmentation fault - Attempting to run $ RAILS_ENV="staging" rake db:migrate --trace
$ RAILS_ENV="staging" rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
/usr/local/lib/ruby/gems/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]