Skip to content

Instantly share code, notes, and snippets.

View RobinStamer's full-sized avatar

Robin Stamer RobinStamer

  • Xiennith Software
  • Edmonton, Alberta
View GitHub Profile
$ ./images.js http://xkcd.com/ /imgs/ /imgs.xkcd.com/ /imgs.xkcd.com/comics/
Trying: //imgs//
Trying: //imgs.xkcd.com//
A xkcd.com logo
S http://imgs.xkcd.com/s/9be30a7.png
===
A Worst-Case Shopping
T Wait a minute. If I'm escaping from a submarine at 50 meters, then I'll *definitely* need a flashlight to find air pockets for gradual decompression on the way up. Time to start shopping professional dive lights.
S http://imgs.xkcd.com/comics/worst_case_shopping.png
===
$ mongofiles -vvvvv -h h1 -d genoce -c comic.images list
Wed Jun 8 14:47:11 creating new connection to:h1
Wed Jun 8 14:47:11 BackgroundJob starting:
connected to: h1
$ echo 'db.comic.images.files.find()' | mongo h1/genoce
MongoDB shell version: 1.8.1
connecting to: h1/genoce
genoce:PRIMARY> db.comic.images.files.find()
{ "_id" : ObjectId("4defd9774dcb56464f000001"), "filename" : "http://imgs.xkcd.com/comics/worst_case_shopping.png", "contentType" : "binary/octet-stream", "length" : 87593, "chunkSize" : 262144, "uploadDate" : ISODate("2011-06-08T20:20:08.311Z"), "aliases" : null, "metadata" : { "deleteme" : 1 }, "md5" : "07c46ce8abf39b335dfb9cb707e463cc" }
genoce:PRIMARY> bye
<ovrflw0x> if i buy synology NAS and format it with EXT3, then can i stream media from it to a Blu ray player which supports Fat32 format?
<ovrflw0x> will the blu ray player be able to read from it?
<ovrflw0x> anybody alive!?
<-- ovrflw0x (~c53@unaffiliated/ovrflw0x) has quit (Read error: Connection reset by peer)
--> ovrflw0x ([email protected]) has joined ##networking
<ovrflw0x> anybody
<ovrflw0x> hellllloooOOlll!
<Ethos> Sometimes you need to wait more than 5 minutes
<ovrflw0x> what do you say Ethos will it work?
<-- messere (~messere@gateway/tor-sasl/messere) has quit (Quit: Leaving)
$ node tmp.js;cat tmp.js
Name: ???
Next: Sat Jun 25 2011 13:30:50 GMT-0600 (MDT)
URL: http://twokinds.keenspot.com
Regex: /images\/[0-9]/
Name: XKCD
Next: Fri Jun 24 2011 22:31:50 GMT-0600 (MDT)
URL: http://xkcd.com/
Regex: /\/imgs.xkcd.com\/comics\//
mysql> SELECT AVG(rating), songs.song_id FROM songs LEFT JOIN ratings USING (song_id) GROUP BY songs.song_id;
+-------------+---------+
| AVG(rating) | song_id |
+-------------+---------+
| NULL | 1 |
| 2.5000 | 2 |
| NULL | 3 |
+-------------+---------+
3 rows in set (0.02 sec)
genoce:PRIMARY> x = db.comic.images.files.findOne({'metadata.comic': {$exists: true}})
{
"_id" : ObjectId("4e1352eb41466f2037000001"),
"filename" : "http://www.valkyriesquadron.com/wp-content/webcomic/comic/ch1pg22.jpg",
"contentType" : "binary/octet-stream",
"length" : 201600,
"chunkSize" : 262144,
"uploadDate" : ISODate("2011-07-05T18:07:41.165Z"),
"aliases" : null,
"metadata" : {
genoce:PRIMARY> db.test.find()
{ "_id" : ObjectId("4d84b3dfbf83054e8d71d1b9"), "test" : 5, "arr" : [ ] }
{ "_id" : ObjectId("4d881bd683d4b4608fe01a37"), "test" : 4, "arr" : [ 1, 2, 3 ] }
{ "_id" : 1 }
{ "_id" : "asdf" }
genoce:PRIMARY> db.test.update({}, {$set: {x:{}}}, false, true)
genoce:PRIMARY> db.test.find()
{ "_id" : ObjectId("4d84b3dfbf83054e8d71d1b9"), "arr" : [ ], "test" : 5, "x" : { } }
{ "_id" : ObjectId("4d881bd683d4b4608fe01a37"), "arr" : [ 1, 2, 3 ], "test" : 4, "x" : { } }
{ "_id" : 1, "x" : { } }
<figaro> Hmm pcboy, your still here?
<figaro> Anyway, im here on regards of the LainOS project
<figaro> im interested in revamping the original project, and i may be able to help with publicity if i were to get the source code and any related documents
<Ling> The original project's only code is just a barely modified version of blackbox that doesn't even compile on a modern distribution.
<figaro> is their any way to rebuild the original OS project?
<Ling> I *might* have it somewhere, but IMO it's worthless, you're actually better off just forking from a more recent commit.
<Ling> Yeah, I managed to compile it. There wasn't anything noticably different with it.
<Ling> Compared to Fluxbox or Openbox.
<figaro> their was 3 downloads on the original OS website
<figaro> all varying in version number
@RobinStamer
RobinStamer / SCP-N1
Created August 5, 2011 11:59
SCP Entries
tl;dl: -1: Amulet summons. -2: girl/woman capable of moving amulet. (exists only during the night) -3: horde of monsters. (exists only during the day)
Item #: SCP-N1
Object Class: Keter
Special Containment Procedures: SCP-N1 is to be kept near/in a vault with 5m thick concrete walls, and at least one cell
which has no entrance with adamantium-reinforced concrete walls that are at least 5m thick. At least two cells must be
available within a summer-solstace night's walk. SCP-N1-1 will be placed in any cell that is currently intact, all other
cells are to be repaired to standard ASAP, likewise any damage to the vault proper that hinders or disables its purpose
// ChatView Font
ChatLine { font: normal 8pt "Monospace"; background: #07070D; foreground: #FFFFFF; }
ChatLine#plain { font: normal 8pt "Monospace"; background: #07070D; foreground: #FFFFFF; }
// Sender Colors
ChatLine#plain[sender="self"] { foreground: #FFFFFF; background: #170740; }
ChatLine::sender#plain[sender="self"] { foreground: #888888; background: #170740; }
ChatLine#action[sender="self"] { foreground: #372780; background: #888888 }
ChatLine::sender#action[sender="self"] { foreground: #0070FF; }
ChatLine#join { foreground: #208080; }