Skip to content

Instantly share code, notes, and snippets.

View dalehenrich's full-sized avatar

Dale Henrichs dalehenrich

View GitHub Profile
@dalehenrich
dalehenrich / caseSensitiveSourceSearch.st
Created May 6, 2012 18:05
Case sensitive source search for Pharo
| aString |
aString := ''.
SystemNavigation default
browseMessageList: (SystemNavigation default allMethodsWithSourceString: aString matchCase: true)
name: 'Methods containing ', aString printString
autoSelect: aString
@dalehenrich
dalehenrich / filteredCaseSensitiveSearch.st
Created May 6, 2012 18:10
filtered case sensitive search
| aString list |
aString := 'true'.
list := SystemNavigation default allMethodsWithSourceString: aString matchCase: true.
list := list select: [:methodReference | methodReference methodClass name asString includesSubString: 'Test'].
SystemNavigation default
browseMessageList: list
name: 'Methods containing ', aString printString
autoSelect: aString
@dalehenrich
dalehenrich / ConfigurationOfExternal.baseline10..st
Created May 8, 2012 21:20
old-style ConfigurarionOfExternal ... baseline10: method and version10: method
baseline10: spec
<version: '1.0-baseline'>
spec
for: #'common'
do: [
spec blessing: #'baseline'.
spec
package: 'External-Core';
package: 'External-Tests' with: [ spec requires: 'External-Core' ];
yourself.
@dalehenrich
dalehenrich / BaselineOfExternal.baseline..st
Created May 8, 2012 21:26
new-style for github ... ConfigurationOf and BaselineOf
baseline: spec
<baseline>
spec
for: #'common'
do: [
spec
package: 'External-Core';
package: 'External-Tests' with: [ spec requires: 'External-Core' ];
yourself.
spec
@dalehenrich
dalehenrich / shmmax.sh
Created May 10, 2012 19:13
set shmmax
# For GemStone
kernel.shmmax = 4702657536
kernel.shmall = 1148109
export shmmaxNew=14000000000
export shmallNew=$(($shmmaxNew / 4096))
# Linux-x86_64
sudo bash -c "echo $shmmaxNew > /proc/sys/kernel/shmmax"
@dalehenrich
dalehenrich / gitAlias.config
Created May 13, 2012 02:12
suggested? git configuration settings
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[color]
branch = auto
diff = auto
interactive = auto
status = auto
@dalehenrich
dalehenrich / newway.st
Created June 7, 2012 02:29
Just loaded Seaside30 into a Pharo1.3 using Metacello scripting api....
Metacello new
configuration: 'Seaside30';
version: '3.0.7';
repository: 'http://squeaksource.com/Seaside30';
load.
@dalehenrich
dalehenrich / ss3removeVersion.st
Created July 12, 2012 04:41
expression to remove package versions from SS3 project
run
(SSRepository current projectAt: 'VimPharo') versionAt: 'VimPharo-SeanDeNigris.2.mcz'
%
@dalehenrich
dalehenrich / metacelloUpdate.st
Created July 17, 2012 23:12
latest metacello update script
Metacello image
baseline: #('Metacello' 'FileTree');
load.
Metacello image
configuration: #('Metacello' 'MetacelloPreview' 'FileTree');
get.
@dalehenrich
dalehenrich / tests.st
Created July 19, 2012 00:25
list of tests that will need to use upgrade command
"
***********************************************
3727*** FAILURES *******************
3728 MetacelloRegistryLoadScriptTestCase debug: #testFie40Foo35FooLoad.
3729 MetacelloClassicLoadScriptTestCase debug: #testClassicFie40Foo35FooLoad.
3730 MetacelloCurrentVersionScriptTestCase debug: #testCompareCurrentVersion.
3731 MetacelloScriptingLockTestCase debug: #testBasicLockNLoadDisallowConflict.
3732 MetacelloDetermineCurrentVersionForLoadScriptTest debug: #testIssue112Upgrade.
3733 MetacelloScriptingConflictsTestCase debug: #testFileTreeLoadConfigurationVersionsNotification2.
3734 MetacelloScriptingLockTestCase debug: #testBasicLockNLoadNUnload.