Skip to content

Instantly share code, notes, and snippets.

View Jesterovskiy's full-sized avatar
🇺🇦
Stand with Ukraine!

Oleksii Dashkevych Jesterovskiy

🇺🇦
Stand with Ukraine!
  • Ukraine
  • 05:39 (UTC +03:00)
View GitHub Profile
@sxua
sxua / install_headers.sh
Created October 13, 2012 16:57
Install debugger on ruby 1.9.3-p286 while debugger-ruby_core_source have no headers
git clone git://github.com/cldwalker/debugger-ruby_core_source.git
cd debugger-ruby_core_source
curl https://github.com/cldwalker/debugger-ruby_core_source/pull/3.patch | git am
gem install archive-tar-minitar
rake gem
gem install pkg/debugger-ruby_core_source-1.1.4.gem
@sxua
sxua / 0-readme.md
Created October 13, 2012 16:14 — forked from burke/0-readme.md
ruby-1.9.3-p286 cumulative performance patch.

Patch for ruby 1.9.3-p327 is here: https://gist.github.com/4063779

Patched ruby 1.9.3-p286 for 30% faster rails boot

Overview

This script installs a patched version of ruby 1.9.3-p286 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Many thanks to funny-falcon for the performance patches.

@michaelcox
michaelcox / SpecRunner.js
Last active January 11, 2024 06:05
Browser Unit Testing with Backbone Mocha Chai and RequireJS
require.config({
baseUrl: '/backbone-tests/',
paths: {
'jquery' : '/app/libs/jquery',
'underscore' : '/app/libs/underscore',
'backbone' : '/app/libs/backbone',
'mocha' : 'libs/mocha',
'chai' : 'libs/chai',
'chai-jquery' : 'libs/chai-jquery',
'models' : '/app/models'
@shinzui
shinzui / datasize.rake
Created February 14, 2010 07:40
Rake task to get database and table sizes.
# Run rake db:size to get a print of your database size in bytes.
# Run rake db:tables:size to get the sizes for individual tables
# Works for MySQL and PostgreSQL. Not tested elsewhere.
namespace :db do
desc 'Print data size for entire database'
task :size => :environment do
database_name = ActiveRecord::Base.connection.instance_variable_get("@config")[:database]
adapter = ActiveRecord::Base.connection.adapter_name.downcase