Skip to content

Instantly share code, notes, and snippets.

Folder PATH listing for volume Ponies
Volume serial number is E06C-4FC3
C:.
| tree.txt
|
+---MLPMusicArchive Full - Copy
| | Additions List.txt
| | Fixes.txt
| | List Of Songs.txt
| |

Regular Expression:

\[soundcloud\](https?:\/\/(www\.)?soundcloud\.com\/[a-z0-9\-\/]*)\[/soundcloud\]

Replacement:

#!/usr/bin/expect
set timeout 20
set user "admin"
set password ""
spawn telnet 192.168.1.254
expect "Login: "
send "$user\n"
--------------------------------------------------------------------------
Starting the web interface on 0.0.0.0:8001...
--------------------------------------------------------------------------
Run 'touch STOP' to stop downloading.
Starting GetItemFromTracker for Item
Starting GetItemFromTracker for Item
inc/3rdparty/phpmailer/class.phpmailer.php: * Options: "8bit", "7bit", "binary", "base64", and "quoted-printable".
inc/3rdparty/phpmailer/class.phpmailer.php: public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
inc/3rdparty/phpmailer/class.phpmailer.php: * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
inc/3rdparty/phpmailer/class.phpmailer.php: protected function encodeFile($path, $encoding = 'base64')
inc/3rdparty/phpmailer/class.phpmailer.php: * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
inc/3rdparty/phpmailer/class.phpmailer.php: public function encodeString($str, $encoding = 'base64')
inc/3rdparty/phpmailer/class.phpmailer.php: case 'base64':
inc/3rdparty/phpmailer/class.phpmailer.php: $encoded = chunk_split(base64_encode($str), 76, $this->LE);
inc/3rdparty/phpmailer/class.phpm
Received item '2498090001:2498100000' from tracker.
Starting PrepareDirectories for Item 2498090001:2498100000
Finished PrepareDirectories for Item 2498090001:2498100000
Starting WgetDownload for Item 2498090001:2498100000
Failed WgetDownload for Item 2498090001:2498100000
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/seesaw/pipeline.py", line 55, in
_enqueue_with_except
task.enqueue(item)
File "/usr/local/lib/python2.7/dist-packages/seesaw/externalprocess.py", line
PS C:\Users\Cameron> smartctl -a sda
smartctl 6.2 2013-07-26 r3841 [x86_64-w64-mingw32-win7-sp1] (sf-6.2-1)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Blue (SATA)
Device Model: WDC WD5000AAKS-22A7B0
Serial Number: WD-WMASY3391457
LU WWN Device Id: 5 0014ee 000d9ae98
Firmware Version: 01.03B01

Okay, so I'm assuming that is being run from a hook on do_new_reply_start?

Instead of calling error() in your code, put in the code from inside Cedric's function:

if(preg_match($regex, $post->data['message'], $match)) {
  if(!isset($mybb->cookies['myplugin_errors'])) {
    $count = 0;
  } else {
    $count = $mybb->cookies['myplugin_errors'];

}

@Cameron-D
Cameron-D / pollrecount.php
Created July 7, 2014 11:06
Recount MyBB Polls
<?php
if(!defined("IN_MYBB"))
{
die("This file cannot be accessed directly.");
}
function pollrecount_info()
{
return array(
"name" => "Poll Recount",
Blocking task: Get video URLs. Please wait...
Traceback (most recent call last):
File "video.py", line 71, in <module>
main()
File "video.py", line 22, in main
assert response.geturl() == HTML_PAGE.format(video_id)
AssertionError
Command '['python', 'video.py', u'ideal-garage-doors-2720066']' returned non-zero exit status 1
Blocking task: Get video URLs. Please wait...
Traceback (most recent call last):