This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| No limit detected for the number of clients | |
| signal_pipe: FD=3 allocated (non-blocking mode) | |
| signal_pipe: FD=4 allocated (non-blocking mode) | |
| stunnel 4.41 on x86_64-unknown-linux-gnu platform | |
| Compiled/running with OpenSSL 1.0.0d 8 Feb 2011 | |
| Threading:PTHREAD SSL:ENGINE Auth:none Sockets:POLL,IPv6 | |
| stunnel 4.41 on x86_64-unknown-linux-gnu platform | |
| Compiled/running with OpenSSL 1.0.0d 8 Feb 2011 | |
| Threading:PTHREAD SSL:ENGINE Auth:none Sockets:POLL,IPv6 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LICENSES = [ | |
| "All Rights Reserved", | |
| "Attribution-NonCommercial-ShareAlike License (http://creativecommons.org/licenses/by-nc-sa/2.0/)", | |
| "Attribution-NonCommercial License (http://creativecommons.org/licenses/by-nc/2.0/)", | |
| "Attribution-NonCommercial-NoDerivs License (http://creativecommons.org/licenses/by-nc-nd/2.0/)", | |
| "Attribution License (http://creativecommons.org/licenses/by/2.0/)", | |
| "Attribution-ShareAlike License (http://creativecommons.org/licenses/by-sa/2.0/)", | |
| "Attribution-NoDerivs License (http://creativecommons.org/licenses/by-nd/2.0/)", | |
| "No known copyright restrictions (http://www.flickr.com/commons/usage/)", | |
| "United States Government Work (http://www.usa.gov/copyright.shtml)", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mongo = require "mongodb" | |
| express = require "express" | |
| app = express.createServer() | |
| server = new mongo.Server "127.0.0.1", 27017, {auto_reconnect: true} | |
| db = new mongo.Db "ars_api_development", server | |
| send_image = (req, res, db) -> | |
| image_id = req.params[0] | |
| store = new mongo.GridStore db, image_id, "r" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="player" style="background-image: url(http://media.giantbomb.com/uploads/6/68564/1821880-screen_shot_2011_06_24_at_9.56.43_am.jpg);" data-video="{"video_url": "quot;/tf2-meet-the-medic/17-4438/", "deck": "Applebee's promptly rejected the Medic's idea of serving Heavy-back ribs.", "publish_date_ts": 1308936240.0, "subscriber_only": false, "user_profile_id": 68564, "object_id": null, "video_type_id": 7, "id": 4438, "staff": false, "date_added": "2011-06-24 10:01:35", "publish": true, "age_gate": false, "poster_url": "http://media.giantbomb.com/uploads/6/68564/1821880-screen_shot_2011_06_24_at_9.56.43_am.jpg", "publish_date": "2011-06-24 10:24:00", "user_name": "GlenTennis", "video_comment_count": 81, "topic_id": 503699, "image_id": 1821880, "encoded&qu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Generic | |
| RE = /^http:\/\// | |
| class << self | |
| def valid_url?(url) | |
| url.match(RE) | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Generic | |
| class << self | |
| def pattern | |
| /^https?:\/\/.*/i | |
| end | |
| def valid_url? (url) | |
| url.match(pattern) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant@lucid32:~/style$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
| Initialized empty Git repository in /home/vagrant/.rvm/src/rvm/.git/ | |
| remote: Counting objects: 4939, done. | |
| remote: Compressing objects: 100% (2305/2305), done. | |
| Receiving objects: 100% (4939/4939), 1.61 MiB | 648 KiB/s, done. | |
| remote: Total 4939 (delta 3201), reused 3560 (delta 1951) | |
| Resolving deltas: 100% (3201/3201), done. | |
| RVM: Shell scripts enabling management of multiple ruby environments. | |
| RTFM: https://rvm.beginrescueend.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use JSON; | |
| use AnyEvent; | |
| use AnyEvent::Twitter; | |
| use AnyEvent::Feed; | |
| die "need json file with oauth credentials\n" unless -e $ARGV[0]; | |
| my @queue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| BASE=$HOME/src/usealice | |
| NAME=imageproxy | |
| PSGI=psgi/$NAME.psgi | |
| LOG=log/$NAME.log | |
| PID=var/$NAME.pid | |
| STATUS=var/$NAME.status | |
| PORT=5008 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use ExtUtils::MakeMaker; | |
| WriteMakefile( | |
| PREREQ_PM => {'AnyEvent::Feed' => '0.3'}, | |
| PREREQ_PM => {'AnyEvent::Redis' => '0.23'}, | |
| PREREQ_PM => {'Redis' => '1.904'}, | |
| ); |