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/bash | |
| # this forces Arena into full screen mode on startup, set back to 3 to reset | |
| # note that if you go into the Arena "Graphics" preference panel, it will reset all of these | |
| # and you will need to run these commands again | |
| defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0 | |
| defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0 | |
| # you can also replace the long complicated integer bit with any other scaled 16:9 | |
| # resolution your system supports. |
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 express = require('express'), | |
| path = require('path'), | |
| fs = require('fs'); | |
| var app = express(); | |
| var staticRoot = __dirname + '/'; | |
| app.set('port', (process.env.PORT || 3000)); | |
| app.use(express.static(staticRoot)); |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "hashicorp/precise64" | |
| config.vm.network "forwarded_port", guest: 8000, host: 8000 | |
| config.vm.synced_folder ".", "/vagrant_data" | |
| config.vm.provider "virtualbox" do |v| | |
| v.memory = 1024 | |
| 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
| #!/bin/bash | |
| function die() { | |
| echo "${1}" | |
| exit 1 | |
| } | |
| which printf > /dev/null 2>&1 || die "Shell integration requires the printf binary to be in your path." | |
| which sed > /dev/null 2>&1 || die "Shell integration requires the sed binary to be in your path." |
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 client = {}; | |
| client.run = function (options) { | |
| options = options || {}; | |
| var socket = io.connect(options.remote || "http://localhost:8080"); | |
| socket.on('connect', function() { | |
| var term = new Terminal({ |
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
| <?php | |
| /* | |
| * This is a PayPal IPN (Instant Payment Notification) broadcaster | |
| * Since PayPal does not provide any straightforward way to add | |
| * multiple IPN listeners we'll have to create a central IPN | |
| * listener that will broadcast (or filter and dispatch) Instant | |
| * Payment Notifications to different destinations (IPN listeners) | |
| * | |
| * http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ | |
| * |
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 | |
| # Installation guide found here: http://www.phing.info/docs/guide/stable/ | |
| echo 'Adding Pear Channel >>>' | |
| sudo pear channel-discover pear.phing.info | |
| echo 'Installing Pear >>>' | |
| pear install phing/phing | |
NewerOlder