Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Last active February 12, 2018 18:49
Show Gist options
  • Save wizardishungry/2660808 to your computer and use it in GitHub Desktop.
Save wizardishungry/2660808 to your computer and use it in GitHub Desktop.

Revisions

  1. wizardishungry revised this gist Feb 12, 2018. No changes.
  2. wizardishungry revised this gist Feb 12, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    gem 'concurrent-ruby'
    gem 'concurrent'
  3. wizardishungry revised this gist Feb 12, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    gem 'concurrent-ruby'
  4. wizardishungry revised this gist Feb 12, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    require 'etc'
    require 'concurrent'

    config.vm.provider "virtualbox" do |vb|
    v.cpus = Etc.nprocessors
    v.cpus = Concurrent.physical_processor_count
    end
  5. wizardishungry revised this gist Feb 12, 2018. No changes.
  6. wizardishungry revised this gist Feb 12, 2018. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@
    # -*- mode: ruby -*-
    # vi: set ft=ruby :
    require 'etc'

    if not RUBY_PLATFORM.downcase.include?("mswin")
    config.vm.customize ["modifyvm", :id, "--cpus",
    `awk "/^processor/ {++n} END {print n}" /proc/cpuinfo 2> /dev/null || sh -c 'sysctl hw.logicalcpu 2> /dev/null || echo ": 2"' | awk \'{print \$2}\' `.chomp ]
    config.vm.provider "virtualbox" do |vb|
    v.cpus = Etc.nprocessors
    end
  7. wizardishungry revised this gist Feb 12, 2018. No changes.
  8. wizardishungry revised this gist May 11, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    if not RUBY_PLATFORM.downcase.include?("mswin")
    config.vm.customize ["modifyvm", :id, "--cpus",
    `awk "/^processor/ {++n} END {print n}" /proc/cpuinfo 2> /dev/null || sh -c 'sysctl hw.logicalcpu 2> /dev/null || echo ": 2"' | awk \'{print \$2}\' `.chomp ]
    `awk "/^processor/ {++n} END {print n}" /proc/cpuinfo 2> /dev/null || sh -c 'sysctl hw.logicalcpu 2> /dev/null || echo ": 2"' | awk \'{print \$2}\' `.chomp ]
    end
  9. wizardishungry created this gist May 11, 2012.
    5 changes: 5 additions & 0 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    config.vm.customize ["modifyvm", :id, "--cpus",
    `awk "/^processor/ {++n} END {print n}" /proc/cpuinfo 2> /dev/null || sh -c 'sysctl hw.logicalcpu 2> /dev/null || echo ": 2"' | awk \'{print \$2}\' `.chomp ]