Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Swapnil Abnave swapab

🎯
Focusing
  • Berlin, DE
Block or report user

Report or block swapab

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View foreman_bootdisk_test_errors.md

Rake:

centos7-devel :: ~/foreman ‹develop*› » rake test:foreman_bootdisk

.EEEE..EEE.......................

Finished in 6.314247s, 5.2263 runs/s, 9.5023 assertions/s.

  1) Error:
View keybase.md

Keybase proof

I hereby claim:

  • I am swapab on github.
  • I am swapab (https://keybase.io/swapab) on keybase.
  • I have a public key whose fingerprint is 1D3D 8DA4 6D43 B1D5 41FF D53B 4458 15A8 125C 1C6B

To claim this, I am signing this object:

View gitter.md

how to setup gitter server on hexchat/xchat

  1. Main Menu -> Network list -> Add

  2. Rename "New Network" to "GitterIM"

  3. Then "Edit" -> Servers Tab -> Add -> "irc.gitter.im"

  4. Check "Connect automatically"

  5. Check "Use SSL"

View rake_seed_error.log
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from install at /home/vagrant/.rvm/gems/ruby-2.2.4/gems/autoprefixer-rails-5.2.1.3/lib/autoprefixer-rails/sprockets.rb:25)
Seeding /home/vagrant/foreman/db/seeds.d/03-auth_sources.rb
Seeding /home/vagrant/foreman/db/seeds.d/03-permissions.rb
Seeding /home/vagrant/foreman/db/seeds.d/03-roles.rb
Seeding /home/vagrant/foreman/db/seeds.d/04-admin.rb
Seeding /home/vagrant/foreman/db/seeds.d/05-taxonomies.rb
Seeding /home/vagrant/foreman/db/seeds.d/06-architectures.rb
Seeding /home/vagrant/foreman/db/seeds.d/07-provisioning_templates.rb
@swapab
swapab / gist:7944591
Last active Dec 31, 2015
real-time benchmark - total count
View gist:7944591
#Test data set - 100K
(1..100000).each do |t|
redis.zadd 'ZSORT', t.minutes.ago.to_i, "#{t}-minute-ago"
end
=========================================================================================
2.0.0p195 :210 > Benchmark.bmbm do |bm|
bm.report{
puts redis.eval("return #redis.call('zrangebyscore', 'ZSORT', #{11.months.ago.to_i}, #{1.months.ago.to_i})")
@swapab
swapab / gist:7943621
Last active Dec 31, 2015
zrangebyscore
View gist:7943621
# Test Dataset
2.0.0p195 :071 > t10
=> 1386935151
2.0.0p195 :072 > t20
=> 1386934568
2.0.0p195 :073 > t30
=> 1386933971
2.0.0p195 :074 > t40
=> 1386933374
View gist:7942367
- request:
method: get
uri: http://www.legalwins.com/refuse-breath-test-mi-dui-arrest.php
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Anemone/0.7.2
Referer:
View Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'jquery-rails'
You can’t perform that action at this time.