Skip to content

Instantly share code, notes, and snippets.

View lukaszx0's full-sized avatar

Lukasz Strzalkowski lukaszx0

  • Column
View GitHub Profile
@lukaszx0
lukaszx0 / ping.rake
Created April 20, 2012 12:45
Keeping heroku dyno alive
# $ heroku addons:add scheduler:standard
# $ heroku addons:open scheduler
require "net/http"
desc "Ping app"
task :ping do
url = 'my-app.herokuapp.com'
puts "ping? (#{url})"
@lukaszx0
lukaszx0 / caveatPatchor.js
Created August 28, 2012 12:39 — forked from protocool/caveatPatchor.js
Sample Propane caveatPatchor.js file
/**
Sample Propane caveatPatchor.js file based on tmm1's avatar hack.
You'll need at least version 1.1.1 to experiment with this:
http://propaneapp.com/appcast/Propane.1.1.1.zip
Once I'm sure exposing this hack-injection point doesn't cause problems
I'll do an official auto-updating version.
As of version 1.1.1, Propane will load and execute the contents of
~ › brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 5a0d6f96dcfaa29dce9183828bdd96273b3a72c4
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.2: build 5666
@lukaszx0
lukaszx0 / bash
Created March 16, 2013 21:43
Resque config
$ resque --config config/resque.rb work
@lukaszx0
lukaszx0 / Gemfile
Created June 25, 2013 10:46 — forked from drogus/Gemfile
source "http://rubygems.org"
gem "webmachine"
gem "actionpack"
gem "thin"
gem "datamapper"
gem "dm-migrations"
gem "dm-sqlite-adapter"
gem "debugger"
ActionController::Base
ActionDispatch::Routing::RouteSet::MountedHelpers
#<Module:0x007fd9d3c66420>
#<Module:0x007fd9d210f640>
ActionController::Testing
ActionController::ParamsWrapper
ActionController::Instrumentation
ActionController::Rescue
ActionController::HttpAuthentication::Token::ControllerMethods
ActionController::HttpAuthentication::Digest::ControllerMethods
~/projects/rails/railties extract_renderers› rake test
/Users/strzalek/.rbenv/versions/1.9.3-p194/bin/ruby -w -Itest:lib:/Users/strzalek/projects/rails/railties/../activesupport/lib:/Users/strzalek/projects/rails/railties/../actionpack/lib:/Users/strzalek/projects/rails/railties/../activemodel/lib test/app_rails_loader_test.rb
Run options: --seed 41815
# Running:
..............
Finished in 0.044610s, 313.8310 runs/s, 403.4970 assertions/s.
# Running:
/Users/strzalek/projects/rails/railties/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `action_view' for #<Rails::Railtie::Configuration:0x007fda0caf6ef8> (NoMethodError)
from /Users/strzalek/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/jquery-rails-2.2.2/lib/jquery/rails/railtie.rb:7:in `block in <class:Railtie>'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:36:in `call'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/strzalek/projects/rails/activesupport/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/strzalek/projects/rails/railties/lib/rails/application.rb:118:in `initialize'
class TestController < ActionController::Base
protect_from_forgery
def render_string_hello_world
render "Hello world!"
end
def render_text_hello_world
render :text => "hello world"
end
@lukaszx0
lukaszx0 / test.geojson
Last active December 21, 2015 00:29
Geojson test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.