Skip to content

Instantly share code, notes, and snippets.

View 7hunderbird's full-sized avatar
👶
Since 1976.

Tyler Bird 7hunderbird

👶
Since 1976.
View GitHub Profile

install php

By default this version of homebrew has both Apache and MySQL support so we only need to add International support option.

brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew update
Removed ~/.pearrc
Installed XQuartz-2.7.4.dmg
brew install php55 
@7hunderbird
7hunderbird / fix iconv will be deprecated, use String#encode instead
Last active December 14, 2015 22:29
Use this to help get rid of the annoying warning when using Ruby 1.9 and you probably have Activesupport.
1. do a `gem env` to get your paths:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [x86_64-darwin12.2.0]
- INSTALLATION DIRECTORY: /Users/deploy/.rbenv/versions/1.9.3-p392-railsexpress/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /Users/deploy/.rbenv/versions/1.9.3-p392-railsexpress/bin/ruby
- EXECUTABLE DIRECTORY: /Users/deploy/.rbenv/versions/1.9.3-p392-railsexpress/bin
- RUBYGEMS PLATFORMS:
- ruby
FIXME:
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.9.0
or
libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2
@ck-on
ck-on / ocp.php
Last active July 24, 2025 05:10
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
@blasterpal
blasterpal / validate_bundler_cache.sh
Last active December 12, 2015 00:28
Validate your bundler cache for OSX. For use in your Ruby (or Rails) project that is managed with Bundler.
#!/usr/bin/env bash
if [[ $1 != [yY] ]] ; then
echo 'Ensure this is executed in your bundled project.'
echo 'i.e. where the Gemfile is located'
ehco 'you should run 'bundle clean' first to ensure you don't check unused gems
echo "Type 'Y/y' to proceed"
read proceed
@raggi
raggi / validate_local_cache.sh
Last active December 11, 2015 23:39
A script to validate your local gem cache against the public s3 repositories. If you find mismatches that contain both local and remote values, please post them in comments.
#!/usr/bin/env sh
if ! which md5sum > /dev/null; then
echo Install md5sum
exit 1
fi
if ! which curl > /dev/null; then
echo Install curl
exit 1

ruby-1.9.3-p484 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p484 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@cwgem
cwgem / gist:4630490
Last active December 11, 2015 16:49
A really REALLY basic look at the AWS SDK Ruby gem

Requirements

Ruby

I used Rubinius 1.9 for this but MRI and others that support the AWS gem will probably work.

Gem

You'll need to install the gem from here

@btoone
btoone / countdown.rb
Last active December 11, 2015 07:49
# Inspired by https://github.com/7hunderbird
# Execute via `curl -fs https://gist.github.com/raw/4569096/373e78aa18b438e74f04a782dd5ca7416b2cb50a/countdown.rb | ruby`
# in the terminal
require 'Date'
today = Date.today
deadline = Date.new(2013, 03, 04)
num_of_days = (deadline - today).to_i