Skip to content

Instantly share code, notes, and snippets.

View seandenigris's full-sized avatar

Sean DeNigris seandenigris

View GitHub Profile
Metacello new
repository: 'github://juliendelplanque/SQLite3/src';
baseline: 'SQLite3';
load.
"Calibre Example"
connection := SQLite3Connection on: FileLocator home / 'Dropbox (Personal)'/'Calibre Library'/'metadata.db'.
connection open.
connection tableNames.
@seandenigris
seandenigris / .gitignore
Last active November 13, 2018 14:05 — forked from FiloSottile/dump-imap.py
Simple script to dump an IMAP folder into eml files
.password
Downloads/
@seandenigris
seandenigris / refesh_open_with.sh
Created September 2, 2015 21:54
Mac Refresh "Open With" menu items
# From http://apple.stackexchange.com/a/66891/9507
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -f /Applications/Open\ with\ Vim.app/
killall Finder
@seandenigris
seandenigris / gist:d153ff4757f681c5169a29cf832ca31a
Last active May 19, 2018 13:24
Pharo 7 Debug Log - Freetype Problem?
THERE_BE_DRAGONS_HERE
Could not find accessor for variable named "'dest'"
19 May 2018 9:12:21.051871 am
VM: Mac OS - intel - 1013.2 - CoInterpreter VMMaker.oscog-eem.2380 uuid: c76d37e1-445c-4e34-9796-fc836dfd50c9 May 9 2018
StackToRegisterMappingCogit VMMaker.oscog-eem.2380 uuid: c76d37e1-445c-4e34-9796-fc836dfd50c9 May 9 2018
VM: 201805090836 https://github.com/OpenSmalltalk/opensmalltalk-vm.git Date: Wed May 9 10:36:12 2018 CommitHash: 334be97 Plugins: 201805090836 https://github.com/OpenSmalltalk/opensmalltalk-vm.git
Image: Pharo7.0alpha [Build information: Pharo-7.0+alpha.build.3.sha.b90156109489d468b9847b6b37a38f06957849d8 (32 Bit)]
@seandenigris
seandenigris / gist:98426ea2a93dd2b44538880add36e306
Created May 19, 2018 13:22
Pharo 7 Debug Log - Freetype Problem?
This file has been truncated, but you can view the full file.
THERE_BE_DRAGONS_HERE
Could not find accessor for variable named "'dest'"
19 May 2018 9:12:21.051871 am
VM: Mac OS - intel - 1013.2 - CoInterpreter VMMaker.oscog-eem.2380 uuid: c76d37e1-445c-4e34-9796-fc836dfd50c9 May 9 2018
StackToRegisterMappingCogit VMMaker.oscog-eem.2380 uuid: c76d37e1-445c-4e34-9796-fc836dfd50c9 May 9 2018
VM: 201805090836 https://github.com/OpenSmalltalk/opensmalltalk-vm.git Date: Wed May 9 10:36:12 2018 CommitHash: 334be97 Plugins: 201805090836 https://github.com/OpenSmalltalk/opensmalltalk-vm.git
Image: Pharo7.0alpha [Build information: Pharo-7.0+alpha.build.3.sha.b90156109489d468b9847b6b37a38f06957849d8 (32 Bit)]
@seandenigris
seandenigris / update_iceberg_1_7.st
Created April 14, 2018 17:51
Iceberg 1.7 Update Script
MetacelloPharoPlatform select.
#(
'BaselineOfTonel'
'BaselineOfLibGit'
'BaselineOfIceberg'
'MonticelloTonel-Core'
'MonticelloTonel-FileSystem'
'MonticelloTonel-Tests'
'Iceberg-UI'
'Iceberg-Plugin-GitHub'
@seandenigris
seandenigris / discordst-dnu
Created March 19, 2018 12:55
DiscordSt Margin DNU #withRight:
Margin(Object)>>doesNotUnderstand: #withRight:
RubTextFieldArea(RubAbstractTextArea)>>margins:
GLMRubTextFieldMorph(RubScrolledTextMorph)>>margins:
GLMRubTextFieldBrick(GLMRubScrolledTextBrick)>>doesNotUnderstand: #margins:
[ :b |
b editBrick
hShrinkWrap;
rubricBackgroundColor: b themer rubricBackgroundColor;
margins: (self defaultPadding @ 0) asMargin ] in GTPlaygroundEditableTabLabel>>initialize in Block: [ :b | ...
BlockClosure>>cull:
@seandenigris
seandenigris / StateSpecsConflictStack.txt
Last active March 19, 2018 01:33
Call Chain from StateSpecs Load Conflict
MetacelloAllowConflictingProjectUpgrade>>defaultAction
UndefinedObject>>handleSignal:
Context>>handleSignal:
Context>>handleSignal:
MetacelloAllowConflictingProjectUpgrade(Exception)>>pass
[ ^ exception pass ] in MetacelloScriptEngine>>handleConflict: in Block: [ ^ exception pass ]
Dictionary>>at:ifAbsent:
MetacelloScriptEngine>>handleConflict:
MetacelloAllowConflictingProjectUpgrade>>handleResolutionFor:
[ :ex | "option handlers need to be outermost set of handlers ... last line of defense before users are involved" ex handleResolutionFor: self ] in [ [ actionBlock
@seandenigris
seandenigris / file_copy_verify.st
Created February 5, 2018 03:27
Scratch pad of code to verify some photos were moved successfully (works in Pharo)
dropBox := (FileLocator home / 'Dropbox/source_folder').
dbFiles := dropBox allFiles reject: [ :e | e basename = '.DS_Store' ].
targetFolder := '/path/to/target' asFileReference.
targetFiles := targetFolder allFiles reject: [ :e | e basename = '.DS_Store' ].
[ :job |
(targetFiles last: (targetFiles size - 1369)) do: [ :tf |
| suffix matches |
suffix := tf basename copyAfterLast: $_.
matches := dbFiles select: [ :sf |
| currentSuffix |
@seandenigris
seandenigris / functions.php
Created October 30, 2015 03:09
WordPress Disable TinyMCE Tag Stripping
// Add to functions.php to disable tag stripping from visual editor
// From http://wordpress.stackexchange.com/questions/52582/how-to-disable-tinymce-from-removing-span-tags
function override_mce_options($initArray) {
$opts = '*[*]';
$initArray['valid_elements'] = $opts;
$initArray['extended_valid_elements'] = $opts;
return $initArray;
}
add_filter('tiny_mce_before_init', 'override_mce_options');