Skip to content

Instantly share code, notes, and snippets.

View filiptepper's full-sized avatar
🏠
Working from home

Filip Tepper filiptepper

🏠
Working from home
View GitHub Profile
@filiptepper
filiptepper / profile #1
Created April 29, 2011 07:15
Bug in JRuby's profiler?
main thread profile results:
Total time: 21.13
total self children calls method
----------------------------------------------------------------
18.16 0.00 18.16 1 RSpec::Core::Runner.run
18.01 0.01 18.00 189 Array#collect
17.95 0.00 17.95 1 RSpec::Core::Runner.run_in_process
17.95 0.00 17.95 1 RSpec::Core::CommandLine#run
16.90 0.00 16.90 1 RSpec::Core::Reporter#report
Ext.require(['Ext.grid.*', 'Ext.data.*', 'Ext.util.*', 'Ext.state.*', 'Ext.window.*']);
Ext.onReady(function() {
var myData = [
['3m Co']];
var store = Ext.create('Ext.data.ArrayStore', {
fields: [
{
name: 'company'
server "a.production.com", :app
server "b.production.com", :app
rvm remove 1.9.2
curl https://gist.github.com/raw/999435/fc2718ac3f488ab2341b65dc2ae5c123f8859bff/fast-require-ruby-19.2-p180 > /tmp/require-performance-fix.patch
rvm install 1.9.2 --patch /tmp/require-performance-fix.patch
#!/bin/sh
#This is a start script for nginx. Tested on Unbuntu Edge.
#Should work on Ubuntu, Debian and probably a few other Linux distros.
#Change DAEMON and CONFIG_FILE if neccessary
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#Location of nginx binary. Change path as neccessary
[~] $ rvm install 1.9.3
Installing Ruby from source to: /Users/filiptepper/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...
ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /Users/filiptepper/.rvm/src/ruby-1.9.3-p0
ruby-1.9.3-p0 - #extracted to /Users/filiptepper/.rvm/src/ruby-1.9.3-p0
Fetching yaml-0.1.4.tar.gz to /Users/filiptepper/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/filiptepper/.rvm/src
Configuring yaml in /Users/filiptepper/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/filiptepper/.rvm/src/yaml-0.1.4.
@filiptepper
filiptepper / const_get.rb
Created November 21, 2011 13:56
Today I Learned
module Oink
class Doink
end
end
> Kernel.const_get("Oink::Doink")
NameError: wrong constant name Oink::Doink
> Kernel.const_get("Oink").const_get("Doink")
=> Oink::Doink
@filiptepper
filiptepper / TechDecisions.md
Created December 1, 2011 07:30
Choices to make in a new Rails project. Would love to see this forked with other's opinions.

Team Support

Source Code Control

git (private server)
Alternative: github

Time Tracking

Cashboard

# gem install metric_fu
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: metric_fu requires chronic (~> 0.3.0); churn requires chronic (>= 0.2.3), chronic (>= 0.2.3); main requires chronic (~> 0.6.2)
@filiptepper
filiptepper / gist:1469164
Last active September 28, 2015 17:08
Rekrutacja

O nas

Durszlak jest serwisem agregującym blogi kulinarne.

Jeżeli uważasz, że to brzmi nudnie - masz rację. Dlatego potrzebujemy Ciebie, bo chcemy zrobić dużo więcej.

Wymagania

Wymagania wszyscy mają takie same.

image