Skip to content

Instantly share code, notes, and snippets.

import java.swing do
JButton
JLabel
JSomething
end
import java.awt do
Event
end
require 'deprec'
set :user, "***"
set :application, "***"
set :domain, "***"
set :scm_username, '***'
set :scm_password, '***'
set :repository, "***/repo"
default_run_options[:pty] = true

possible typo renderer.rb:162 view_path = options.delete(:views) || settings.views || settings.views || "./views"

docs nonsynched? - why first one is erb? renderer.rb:149 # get "/foo", :respond_to => [:html, :js] do; render 'path/to/foo'; end # # If you request "/foo.js" with I18n.locale == :ru => [:"/path/to/foo.ru.js", :erb] # # If you request "/foo" with I18n.locale == :de => [:"/path/to/foo.de.haml", :haml]

XSS support?

obj
bin
deploy
deploy/*
_ReSharper.*
*.csproj.user
*.resharper.user
*.resharper
*.suo
*.cache
@jondot
jondot / gemserv.rb
Created October 29, 2010 15:14
Minimal gem server
require 'rubygems'
require 'sinatra'
mime_type :rz, 'application/x-gzip'
get '/' do
'hello.'
end
@jondot
jondot / Rakefile
Created October 29, 2010 15:40
Rakefile
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "test_gem"
gem.summary = %Q{one-line summary of your gem}
gem.description = %Q{longer description of your gem}
gem.email = "jondotan@gmail.com"
DotNetOpenAuth.dll!DotNetOpenAuth.Reporting.PersistentCounter.Increment(string category = "http://192.168.20.125:7231/OpenId/Provider") + 0x90 bytes
DotNetOpenAuth.dll!DotNetOpenAuth.Reporting.RecordEventOccurrence(string eventName = "PositiveAuthenticationResponse", string category = "http://192.168.20.125:7231/OpenId/Provider") + 0x267 bytes
DotNetOpenAuth.dll!DotNetOpenAuth.Reporting.RecordEventOccurrence(object eventNameByObjectType = Status: Cannot evaluate expression because the current thread is in a sleep, wait, or join, ClaimedIdentifier: Cannot evaluate expression because the current thread is in a sleep, wait, or join, string category = "http://192.168.20.125:7231/OpenId/Provider") + 0x110 bytes
DotNetOpenAuth.dll!DotNetOpenAuth.OpenId.RelyingParty.PositiveAnonymousResponse.PositiveAnonymousResponse(DotNetOpenAuth.OpenId.Messages.IndirectSignedResponse response = OpenID Cannot evaluate expression because the current thread is in a sleep, wait, or join Cannot evaluate expression because the
@jondot
jondot / gist:893189
Created March 29, 2011 20:30
albacore template
#
# set up nunit
#
download "http://launchpad.net/nunitv2/2.5/2.5.9/+download/NUnit-2.5.9.10348.zip", :unzip => "tools/nunit"
nunit "tools/nunit"
#
# set up ncover
#
ncover "existingtoolfolder/ncover", "*Foo.dll"
@jondot
jondot / gist:899636
Created April 2, 2011 16:51
nunit albathor template
puts "Downloading nunit..."
get "http://launchpad.net/nunitv2/2.5/2.5.9/+download/NUnit-2.5.9.10348.zip", "tools/nunit.zip"
unzip "tools/nunit.zip", :to => 'tools', :remove => true
nunit "tools/NUnit-2.5.9.10348/bin/net-2.0"
%self total self wait child calls name
7.25 336.19 24.39 0.00 336.19 32946868 Mongoid::Relations::Proxy#method_missing
5.78 336.18 19.46 0.00 336.18 5373758 Array#collect
5.11 17.20 17.20 0.00 0.00 327564 IO#read
4.98 336.33 16.75 0.00 336.33 12521414 Array#each
3.77 44.18 12.69 0.00 31.49 3239391 Mongoid::Validations#read_attribute_for_validation
3.50 42.00 11.77 0.00 30.24 6536943 Mongoid::Attributes#respond_to?
3.40 18.19 11.43 0.00 6.75 6536992 <Module::Mongoid>#allow_dynamic_fields
2.91 52.47 9.81 0.00 42.66 5455604 <Class::Array>#wrap
2.73 335.98 9.20 0.00 335.98 4063089 Mongoid::Validations::ReferencedValidator#validate_each