Skip to content

Instantly share code, notes, and snippets.

Avatar

Dotan J. Nahum jondot

View GitHub Profile
View gist:337538
import java.swing do
JButton
JLabel
JSomething
end
import java.awt do
Event
end
View deploy.rb
require 'deprec'
set :user, "***"
set :application, "***"
set :domain, "***"
set :scm_username, '***'
set :scm_password, '***'
set :repository, "***/repo"
default_run_options[:pty] = true
View padrino-review.md

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?

View .gitignore.c#
obj
bin
deploy
deploy/*
_ReSharper.*
*.csproj.user
*.resharper.user
*.resharper
*.suo
*.cache
@jondot
jondot / gemserv.rb
Created Oct 29, 2010
Minimal gem server
View gemserv.rb
require 'rubygems'
require 'sinatra'
mime_type :rz, 'application/x-gzip'
get '/' do
'hello.'
end
View 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"
View strace
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 Mar 29, 2011
albacore template
View gist:893189
#
# 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 Apr 2, 2011
nunit albathor template
View gist:899636
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"
View gist:948248
%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