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 ruby | |
| # | |
| # Script: HipChat bot in Ruby | |
| # Author: Jordan Ritter <jpr5@darkridge.com> | |
| # | |
| unless `rvm-prompt i g`.chomp == "ree@xmpp" | |
| exec("rvm ree@xmpp ruby #{$0}") | |
| 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
| require 'httparty' | |
| require 'ruby-notify-my-android' | |
| set :application, "example" | |
| set :repository, "" | |
| set :scm, :none | |
| role :web, "localhost" | |
| role :web, "example.tld" |
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
| var bogart = require('bogart'); | |
| var Q = require('promised-io/lib/promise'); | |
| var mongoose = require('mongoose'); | |
| var PostSchema = new mongoose.Schema({ | |
| title: String, | |
| body: String, | |
| comments: [ CommentSchema ] | |
| }); |
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
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
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 python | |
| # wol.py | |
| # based on http://code.activestate.com/recipes/358449-wake-on-lan/ | |
| # added for loop to use arpwatch's MAC address list instead of manually having to maintain a list of MAC addresses | |
| # there could be potential security problems with using the arpwatch list so use at your own risk. | |
| # [DZ]: Original Version by Jeremy Z (10Bitworks SA, Tx) <zunkworks@gmail.com> | |
| # [DZ](Change Log): Added Command Line Option Parsing, regex parsing to wake_on_lan() |
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 | |
| # Dropbox CLI Installer | |
| # Version 1.0b - Dwight Spencer <dspencer@odesk.com> | |
| # Copyright (C)2009 CompuTEK Industries, LLC. All Rights Reserved. | |
| # | |
| # Installs Dropbox cloud file sync service onto a full CLI based linux | |
| # $ installer=./dropbox_installer.sh; chmod +x $installer && ./$installer | |
| # | |
| function grab() |
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
| # Used to dynamically add a rails page view when using Jquery Mobile | |
| # Author Nick Treadway @nicktea | |
| window.insert_page = (id, content) -> | |
| page = $("<article id="+id+" data-role='page' data-url="+id+" data-add-back-btn='true'>" + content + "</article>") | |
| page.appendTo('body') | |
| $('a').attr("href", "#" + id).click -> | |
| $.mobile.changePage(page, {transition: "slide"}) | |
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
| /** | |
| * ar_user.h | |
| * CodeTests 0x01 | |
| * | |
| * Copyright (C)2012, Dwight Spencer (Denzuko) <dspencer@denzuko.co.cc> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a | |
| * copy of this software and associated documentation files (the "Software"), | |
| * to deal in the Software without restriction, including without limitation | |
| * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
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
| --require should | |
| --reporter spec | |
| --ui bdd |
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
| (function() { | |
| describe('Application', function() { | |
| it('should exists', function() { | |
| var app = new Application(); | |
| app.should.be.an.instanceof(Application); | |
| }); | |
| }); | |
| }).call(this); |