This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| minimum=2000 | |
| medium=4500 | |
| maximum=6200 | |
| value=$minimum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/gc.c b/gc.c | |
| index 0f84e22..feb54f1 100644 | |
| --- a/gc.c | |
| +++ b/gc.c | |
| @@ -98,6 +98,15 @@ ruby_gc_params_t initial_params = { | |
| #endif | |
| }; | |
| +#ifndef HAVE_LONG_LONG | |
| +#define LONG_LONG long |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| time=1500 # 25 minutes | |
| title="Pomodoro" | |
| icon=/home/yorickpeterse/Pictures/icons/tomato.png | |
| notify-send -i "$icon" "$title" "Starting a new Pomodoro timer" | |
| sleep $time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pkgname=android-4.0.3 | |
| pkgver=r03 | |
| pkgrel=3 | |
| pkgdesc='Platform for Google Android SDK' | |
| arch=('any') | |
| url="http://developer.android.com/sdk/index.html" | |
| license=('custom') | |
| depends=('android-sdk>=r17') | |
| _android_api=android-15 | |
| _android_ver=android-4.0.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'httpclient' | |
| require 'json' | |
| url = 'http://www.reddit.com/r/r4r.json' | |
| after = nil | |
| posts = [] | |
| client = HTTPClient.new | |
| tags = { | |
| '[M4F]' => 0, | |
| '[M4M]' => 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :syntax do | |
| desc 'Checks the syntax of ERB files' | |
| task :erb do | |
| require 'action_view' | |
| Dir['app/views/**/*.erb'].each do |file| | |
| template = File.read(file) | |
| begin | |
| ActionView::Template::Handlers::Erubis \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| siege -c 10 -b -t 30s http://localhost:9393 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with Rubinius.synchronize: | |
| $ ./bin/benchmark core/file/bench_each_byte.rb | |
| === rbx === | |
| File#each_byte with a small file | |
| 29.1 (±0.0%) i/s - 146 in 5.023101s (cycle=2) | |
| File#each_byte with a medium file | |
| 3.3 (±0.0%) i/s - 17 in 5.228034s (cycle=1) | |
| File#each_byte with a large file | |
| 0.3 (±0.0%) i/s - 2 in 6.110730s (cycle=1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| desc: (none) | |
| cmd: ruby rss_growth_during_redis_publish.rb -n 1000000 | |
| time_unit: i | |
| #----------- | |
| snapshot=0 | |
| #----------- | |
| time=0 | |
| mem_heap_B=0 | |
| mem_heap_extra_B=0 | |
| mem_stacks_B=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/rss_growth_during_redis_publish.rb b/rss_growth_during_redis_publish.rb | |
| index f6d1526..cecfdef 100755 | |
| --- a/rss_growth_during_redis_publish.rb | |
| +++ b/rss_growth_during_redis_publish.rb | |
| @@ -8,6 +8,14 @@ require 'celluloid/io' # Unclear if this is required, or if Celluloid will hand | |
| require 'celluloid/redis' | |
| require 'celluloid/autostart' | |
| +Thread.new do | |
| + loop do |
OlderNewer