Skip to content

Instantly share code, notes, and snippets.

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
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
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
--------------------------------------------------------------------------
Starting the web interface on 0.0.0.0:8001...
--------------------------------------------------------------------------
Run 'touch STOP' to stop downloading.
Starting GetItemFromTracker for Item
Starting GetItemFromTracker for Item
#!/usr/bin/expect
set timeout 20
set user "admin"
set password ""
spawn telnet 192.168.1.254
expect "Login: "
send "$user\n"

Regular Expression:

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

Replacement:

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
| |
@Cameron-D
Cameron-D / xanga.sh
Last active December 18, 2015 16:29
Script for running xanga-grab on an instantserver.io instance.
#!/bin/bash
sudo apt-get update
sudo apt-get install -y build-essential lua5.1 liblua5.1-0-dev python python-setuptools python-dev git-core openssl libssl-dev python-pip rsync gcc make git tmux htop
pip install --user seesaw
git clone https://github.com/ArchiveTeam/xanga-grab.git
cd xanga-grab
./get-wget-lua.sh
# Start downloading with:
@Cameron-D
Cameron-D / generated_query.sql
Created June 6, 2013 02:55
This is the query that MySQL generates when querying against the view.
select `p`.`nid` AS `nid`,`h`.`hid` AS `hid`,`h`.`name` AS `hookname`,`h`.`type` AS `type`,`p`.`dateline` AS `dateline`,`bau_forum`.`u`.`uid` AS `uid`,`bau_forum`.`u`.`username` AS `username`,`bau_forum`.`u`.`usergroup` AS `usergroup`,`bau_forum`.`u`.`displaygroup` AS `displaygroup`,`bau_forum`.`u`.`avatar` AS `avatar`,`post`.`fid` AS `fid`,`post`.`tid` AS `tid`,`t`.`subject` AS `thread_subject`,`post`.`pid` AS `post_id`,`post`.`subject` AS `post_subject` from `bau_forum`.`mybb_proactivity_log` `p` join `bau_forum`.`mybb_proactivity_hooks` `h` join `bau_forum`.`mybb_users` `u` join `bau_forum`.`mybb_posts` `post` join `bau_forum`.`mybb_threads` `t` left join `bau_forum`.`mybb_proactivity_hidden` `hide` on(((`bau_forum`.`hide`.`hid` = `h`.`hid`) and (`bau_forum`.`hide`.`uid` = '297'))) left join `bau_forum`.`mybb_proactivity_hide_threads` `hide_thread` on(((`bau_forum`.`hide_thread`.`tid` = `post`.`tid`) and (`bau_forum`.`hide_thread`.`uid` = '297'))) left join `bau_forum`.`mybb_proactivity_hide_forums` `hide_
mysql> show profile;
+--------------------------------+----------+
| Status | Duration |
+--------------------------------+----------+
| starting | 0.000014 |
| Waiting for query cache lock | 0.000002 |
| checking query cache for query | 0.000068 |
| checking permissions | 0.000002 |
| checking permissions | 0.000001 |
| checking permissions | 0.000001 |