This file contains 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
1. set PowerShell's execution policies | |
## as admin | |
PS C:\Users\Jon> set-executionpolicy RemoteSigned -scope LocalMachine | |
## as normal user | |
PS C:\Users\Jon> set-executionpolicy Unrestricted -scope CurrentUser | |
PS C:\Users\Jon> get-executionpolicy -list | |
Scope ExecutionPolicy |
This file contains 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
# Assumes you have both the isolate and rake-compiler gems already installed. | |
C:\Users\Jon\Documents\RubyDev\fenix-git>\DevKit\devkitvars.bat | |
Adding the DevKit to PATH... | |
C:\Users\Jon\Documents\RubyDev\fenix-git>rake compile | |
mkdir -p tmp/i386-mingw32/fenix/1.9.3 | |
cd tmp/i386-mingw32/fenix/1.9.3 | |
C:/ruby193/bin/ruby.exe -I. ../../../../ext/fenix/extconf.rb --enable-debug | |
checking for main() in -lkernel32... yes |
This file contains 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
# In all results that follow a 500,000 line test file was read (3) times, first in binary | |
# modes and then in text mode. Results from a Win7 32bit system with freshly defragmented | |
# HDD and an Arch Linux system running in a VirtualBox VM. | |
# | |
# Benchmark workloads: | |
# https://github.com/jonforums/measurements/blob/master/workloads/core_brd_filelines_lf.rb | |
# https://github.com/jonforums/measurements/blob/master/workloads/core_rd_filelines_lf.rb | |
# | |
# RCI benchmark runner https://github.com/jonforums/measurements code: | |
# https://github.com/jonforums/measurements/blob/master/lib/inquisitor.rb#L87-97 |
This file contains 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
@echo off | |
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS | |
:: *** BEGIN CUSTOMIZATIONS *** | |
:: executables to build | |
set VIM=vim.exe | |
set GVIM=gvim.exe | |
set XXD_DIR=xxd | |
set XXD=xxd.exe |
This file contains 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
C:\Users\Jon>gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.8.10 | |
- RUBY VERSION: 1.9.3 (2011-09-27 patchlevel -1) [i386-mingw32] | |
- INSTALLATION DIRECTORY: C:/ruby193/lib/ruby/gems/1.9.1 | |
- RUBY EXECUTABLE: C:/ruby193/bin/ruby.exe | |
- EXECUTABLE DIRECTORY: C:/ruby193/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86-mingw32 |
This file contains 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
// Testing symbol visibility from a C++ executable | |
// file: vm.cpp | |
// revision: 09/29/2011 1:42:06 PM | |
// | |
// build via: | |
// export demangled symbols (mingw): g++ -DRBX_API_EXPORT -o vm.exe vm.cpp | |
// force export (mangled & demangled) symbols (*nix): g++ -o vm vm.cpp -Wl,-export-dynamic | |
// forced (mangled & demangled) symbol export (mingw): g++ -o vm.exe vm.cpp -Wl,-export-all-symbols | |
// export no symbols (mingw, *nix): g++ -o vm[.exe] vm.cpp | |
// |
This file contains 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
C:\Users\Jon\Documents\WebDev>git config --global --list | grep -P "^alias\.[abs]" | |
alias.all=!ruby c:/tools/gitall.rb | |
alias.br=branch | |
alias.st=status -sb | |
C:\Users\Jon\Documents\WebDev>git all fetch | |
No '.gitall_ignore' found; processing all '*-git' dirs... | |
[FETCH] 960-gs-git | |
[FETCH] cramp-git |
This file contains 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
C:\Users\Jon\Documents\RubyDev\rubinius-git>git log -1 --decorate --oneline | |
655ea01 (HEAD, origin/master, core/master, core/HEAD, master) Fix x86-32 fibers and use na | |
C:\Users\Jon\Documents\RubyDev\rubinius-git>echo %PATH% | |
C:\DevKit-w64\bin;C:\DevKit-w64\mingw\bin;C:\Program Files\CollabNet\Subversion Client; | |
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\; | |
C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft Windows Performance Toolkit\; | |
C:\tools;C:\Python27\Scripts;C:\Python27;C:\ruby187\bin;c:\scala\bin;c:\lua\bin;c:\groovy\bin;C:\gnuwin32\curl\bin; | |
C:\gnuwin32\diff\bin;C:\gnuwin32\grep\bin;C:\gnuwin32\findutils\bin;C:\gnuwin32\sed\bin;C:\gnuwin32\gawk\bin; | |
C:\gnuwin32\less\bin;C:\gnuwin32\upx\bin;C:\gnuwin32\coreutils\bin;C:\Program Files\Wix;C:\git\cmd |
This file contains 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
C:\Users\Jon\Documents\RubyDev\rubinius-git>git log -1 --graph --decorate --oneline | |
* c9ce00f (HEAD, core/master, core/HEAD, master) More JIT cleanup/refactoring | |
C:\Users\Jon\Documents\RubyDev\rubinius-git>echo %PATH% | |
C:\DevKit-w64\bin;C:\DevKit-w64\mingw\bin;C:\Program Files\CollabNet\Subversion Client; | |
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\; | |
C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft Windows Performance Toolkit\; | |
C:\tools;C:\Python27\Scripts;C:\Python27;C:\ruby193\bin;c:\scala\bin;c:\lua\bin;c:\groovy\bin;C:\gnuwin32\curl\bin | |
;C:\gnuwin32\diff\bin;C:\gnuwin32\grep\bin;C:\gnuwin32\findutils\bin;C:\gnuwin32\sed\bin;C:\gnuwin32\gawk\bin; | |
C:\gnuwin32\less\bin;C:\gnuwin32\upx\bin;C:\gnuwin32\coreutils\bin;C:\Program Files\Wix;C:\git\cmd |
This file contains 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/lib/albino.rb b/lib/albino.rb | |
index 387c8e9..b77d55e 100644 | |
--- a/lib/albino.rb | |
+++ b/lib/albino.rb | |
@@ -1,4 +1,5 @@ | |
require 'posix-spawn' | |
+require 'rbconfig' | |
## | |
# Wrapper for the Pygments command line tool, pygmentize. |