Skip to content

Instantly share code, notes, and snippets.

View rixth's full-sized avatar

Thomas Rix rixth

View GitHub Profile
Index: cmsworkflow/code/ThreeStep/SiteConfigThreeStepWorkflow.php
===================================================================
--- cmsworkflow/code/ThreeStep/SiteConfigThreeStepWorkflow.php (revision 97653)
+++ cmsworkflow/code/ThreeStep/SiteConfigThreeStepWorkflow.php (working copy)
@@ -128,6 +128,7 @@
*/
public function canPublish($member = null) {
if(!$member && $member !== FALSE) $member = Member::currentUser();
+ if (is_numeric($member)) $member = DataObject::get_by_id('Member', $member);
#!/usr/bin/ruby
# Search a users previous 3200 for a keyword.
unless ARGV.size == 2
puts "USAGE: look-for-tweet.rb username terms"
Process.exit
end
username = ARGV.first
# File you want to get before it's deleted
fileToSave = 'blarblarblar'
# If you want to specify a little bit we can trim off the end
# do it here in bytes. This may make the script more likely to
# save your file.
buffer = 0;
# Wait for the file to be created
print "Okay, please start the process that outputs "+fileToSave+"\n";
while true