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
| # 1) Point *.example.com in your DNS setup to your server. | |
| # | |
| # 2) Setup an Apache vhost to catch the star pointer: | |
| # | |
| # <VirtualHost *:80> | |
| # ServerName *.example.com | |
| # </VirtualHost> | |
| # | |
| # 3) Set the current account from the subdomain | |
| class ApplicationController < ActionController::Base |
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
| # This is a trivial HTTP proxy server, intended for use as a troubleshooting tool | |
| # ONLY (not for real, actual, production use). I wrote this because I couldn't find | |
| # a simple HTTP proxy that I could use to test HTTP proxy support in Net::SSH. | |
| # | |
| # This code is in the public domain, so do with it what you will! | |
| require 'socket' | |
| server = TCPServer.new('127.0.0.1', 8080) | |
| client = server.accept |
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
| EASY MARSHMALLOWS | |
| ----------------- | |
| Marshmallows are perhaps one of the simplest confections you can make. They only require | |
| a handful of ingredients, a batch can be thrown together in 10-15 minutes (plus *cough* | |
| 3 hours for them to set), and you can flavor them however you like. (You haven't LIVED | |
| until you've had coconut marshmallows!) | |
| Hardware needed: |
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 | |
| # Author: Chmouel Boudjnah <chmouel@chmouel.com> | |
| # Not officially supported by Rackspace only as a best effort basis :) | |
| # Define yes to make it to copy to url to clipboard (via a shortened url | |
| # service) You need to have the software xclip installed in your system. | |
| COPY_URL_TO_CLIPBOARD=yes | |
| # Containers to ignore in the list | |
| CONTAINERS_TO_IGNORE=".CDN_ACCESS_LOGS" |
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
| BASIC BAECHU KIMCHI | |
| -------------------------------------------------------------------------- | |
| Baechu (Napa cabbage) kimchi is one of the staple foods in Korea. Spicy | |
| and tangy, it is typically served as a side dish, with rice, but is also | |
| found in various Korean soups and stews. | |
| This basic version has just the fundamentals; once you're comfortable | |
| with this version, you might try adding shredded carrots, Daikon radish, | |
| pickled baby shrimp, or any number of other things. Search around online |
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 | |
| # | |
| # Builds Nginx with Passenger support. | |
| # Uses the www/nginx FreeBSD port as the nginx source, also applies | |
| # the FreeBSD port patches and /usr/local/etc/rc.d/nginx rc(8) script. | |
| # | |
| # Enables building Nginx with Passenger from REE for example as the | |
| # www/nginx port with PASSENGER enabled uses system ruby. | |
| # |
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
| BASIC OI (CUCUMBER) KIMCHI | |
| -------------------------------------------------------------------------- | |
| Oi (cucumber) kimchi is a delicious, refreshing variation on the | |
| traditional Korean kimchi recipe. | |
| This particular recipe is a modified version of the recipe posted by Dr. | |
| Ben Kim, at http://www.drbenkim.com/how-to-make-cucumber-kim-chi.htm. | |
| -------------------------------------------------------------------------- |
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
| BASIC BAECHU KIMCHI | |
| -------------------------------------------------------------------------- | |
| Baechu (Napa cabbage) kimchi is one of the staple foods in Korea. Spicy | |
| and tangy, it is typically served as a side dish, with rice, but is also | |
| found in various Korean soups and stews. | |
| This basic version has just the fundamentals; once you're comfortable | |
| with this version, you might try adding shredded carrots, Daikon radish, | |
| pickled baby shrimp, or any number of other things. Search around online |
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 'thread' | |
| require 'json' | |
| require 'net/http' | |
| require 'uri' | |
| require 'betabrite' | |
| require 'psych' | |
| require 'usb' | |
| class StreamClient | |
| def initialize user, pass |
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
| BASIC OI (CUCUMBER) KIMCHI | |
| -------------------------------------------------------------------------- | |
| Oi (cucumber) kimchi is a delicious, refreshing variation on the | |
| traditional Korean kimchi recipe. | |
| This particular recipe is a modified version of the recipe posted by Dr. | |
| Ben Kim, at http://www.drbenkim.com/how-to-make-cucumber-kim-chi.htm. | |
| -------------------------------------------------------------------------- |
OlderNewer