$ rails g model User
belongs_to
has_one
#!/usr/bin/env ruby | |
# A quick and dirty implementation of an HTTP proxy server in Ruby | |
# because I did not want to install anything. | |
# | |
# Copyright (C) 2009-2014 Torsten Becker <torsten.becker@gmail.com> | |
# | |
# 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, |
#!/bin/bash | |
# creates ssh tunnel | |
ssh -N -f -L 5353:localhost:5353 remote-host | |
# makes udp -> tcp stream | |
socat UDP-RECVFROM:53,fork TCP:localhost:5353 |
// | |
// UntitledAppDelegate.m | |
// Untitled | |
// | |
// Created by Michael Brooks on 11-01-28. | |
// Copyright __MyCompanyName__ 2011. All rights reserved. | |
// | |
#import "UntitledAppDelegate.h" | |
#import "PhoneGapViewController.h" |
#!/usr/bin/env ruby -w | |
require 'rubygems' | |
require 'fog' | |
require 'pp' | |
AWS_ACCESS_KEY = ENV['AWS_ACCESS_KEY_ID'] | |
AWS_SECRET_KEY = ENV['AWS_SECRET_ACCESS_KEY'] | |
def get_cf_connection() |
EUCA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE})) | |
export S3_URL=http://173.205.188.130:8773/services/Walrus | |
export EC2_URL=http://173.205.188.130:8773/services/Eucalyptus | |
export EC2_PRIVATE_KEY=${EUCA_KEY_DIR}/euca2-garnaat-e5ec560d-pk.pem | |
export EC2_CERT=${EUCA_KEY_DIR}/euca2-garnaat-e5ec560d-cert.pem | |
export EC2_JVM_ARGS=-Djavax.net.ssl.trustStore=${EUCA_KEY_DIR}/jssecacerts | |
export EUCALYPTUS_CERT=${EUCA_KEY_DIR}/cloud-cert.pem | |
export EC2_ACCESS_KEY='999999999999999999999999999999999999' | |
export EC2_SECRET_KEY='00000000000000000000000000000000000000' | |
# This is a bogus value; Eucalyptus does not need this but client tools do. |
Copyright (C) 2011 by Colin MacKenzie IV | |
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, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
# !/bin/bash | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# | |
# 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, | |
# and/or sell copies of the Software, and to permit persons to whom the |
require 'rubygems' | |
require 'em-proxy' | |
require 'http_tools' | |
require 'uuid' | |
# > ruby em-proxy-http.rb | |
# > curl --proxy localhost:8080 www.google.com | |
host = "0.0.0.0" | |
port = 8080 |
require 'sinatra/base' | |
require 'openssl' | |
require 'webrick' | |
require 'webrick/https' | |
class App1 < Sinatra::Base | |
get '/' do | |
'app1' | |
end | |
end |