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
Chain INPUT (policy ACCEPT) | |
target prot opt source destination | |
FWR all -- anywhere anywhere | |
ACCEPT tcp -- anywhere anywhere tcp dpt:www | |
ACCEPT tcp -- anywhere anywhere tcp dpt:https | |
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh | |
Chain FORWARD (policy ACCEPT) | |
target prot opt source destination |
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
$ cat /etc/chef/solo.rb | |
# Thanks to: https://github.com/akitaonrails/chef-debian/blob/master/solo.rb | |
# chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json | |
file_cache_path "/tmp/chef-solo" | |
cookbook_path "/etc/chef/cookbooks" | |
log_level :info | |
log_location STDOUT | |
ssl_verify_mode :verify_none |
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
remote_file "#{Chef::Config[:file_cache_path]}/redis.tar.gz" do | |
source "http://redis.googlecode.com/files/redis-2.2.10.tar.gz" | |
action :create_if_missing | |
end | |
** [out :: 192.168.1.102] [Wed, 15 Jun 2011 15:39:17 -0700] INFO: Processing remote_file[/tmp/chef-solo/redis.tar.gz] action create_if_missing (redis::default line 48) | |
** [out :: 192.168.1.102] [Wed, 15 Jun 2011 15:39:17 -0700] ERROR: remote_file[/tmp/chef-solo/redis.tar.gz] (redis::default line 48) has had an error | |
** [out :: 192.168.1.102] [Wed, 15 Jun 2011 15:39:17 -0700] ERROR: Running exception handlers | |
** [out :: 19 |
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
$ lein repl | |
"REPL started; server listening on localhost:9592." | |
user=> (require '[clj-http.client :as client]) | |
nil | |
user=> (client/get "http://api.stackoverflow.com/1.1/questions/5700021") | |
{:status 200, :headers {"content-encoding" "gzip", "content-type" "application/json; charset=utf-8", "date" "Wed, 20 Apr 2011 02:57:40 GMT", "x-aspnetmvc-version" "3.0", "cache-control" "private", "x-ratelimit-current" "286", "content-length" "586", "x-ratelimit-max" "300", "connection" "close", "x-aspnet-version" "4.0.30319"}, :body "�\b �`I�%&/m�{J�J��t�\b�`$ؐ@������iG#)�*��eVe]f@�흼��{���{���;�N'���?\\fdl��J�ɞ!���?~|?\"~�o���Gm�f�G������.���>��#�uE�l���4����� | |
�s�hZV?���F�geѬ���bQ-��s���m���es���Z/[��|3��6���ڤ�������V��eUmn!���x~��X�e���u\rz|t�. ����5M��u\f!_�͆�M�������E�e;jj羮��yM_���֍!��Ý��=��z�����/����|LԌf�̮�e��f?��dE4��պ̀������|���?Ϛ9���A>}xp�{0{p>�����ٽ�;�����{�~��Z��{;�vw�������gE:8���(���e�^w�^�����<��W3�q���e�_9�����L��y����a�γ��]��hK&�tV |
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
$ sh build.sh | |
+ /usr/bin/ocamlopt -I +camlimages graphics.cmxa camlimages.cmxa seamcarving.cmx energyBias.cmx sobel.cmx cmdline_resizer.cmx carve.cmx -o carve.native | |
File "_none_", line 1, characters 0-1: | |
Error: No implementations provided for the following modules: | |
Gdk referenced from /usr/lib/ocaml/camlimages/camlimages.cmxa(Ximage2), | |
/usr/lib/ocaml/camlimages/camlimages.cmxa(OXimage2) | |
GDraw referenced from /usr/lib/ocaml/camlimages/camlimages.cmxa(Ximage2), | |
/usr/lib/ocaml/camlimages/camlimages.cmxa(OXimage2) | |
Command exited with code 2. | |
Compilation unsuccessful after building 16 targets (15 cached) in 00:00:00. |
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
$ ./script/generate vulcanize complete_passenger_mysql | |
wrong number of arguments (1 for 0) | |
$ vulcanize complete_passenger_mysql | |
/usr/lib/ruby/1.8/monitor.rb:262:in `initialize': wrong number of arguments (1 for 0) (ArgumentError) | |
from /usr/lib/ruby/1.8/monitor.rb:262:in `initialize' | |
from /usr/lib/ruby/gems/1.8/gems/rubber-1.12.0/lib/rubber/instance.rb:15:in `initialize' | |
from /usr/lib/ruby/gems/1.8/gems/rubber-1.12.0/lib/rubber/configuration.rb:34:in `new' | |
from /usr/lib/ruby/gems/1.8/gems/rubber-1.12.0/lib/rubber/configuration.rb:34:in `initialize' | |
from /usr/lib/ruby/gems/1.8/gems/rubber-1.12.0/lib/rubber/configuration.rb:13:in `new' | |
from /usr/lib/ruby/gems/1.8/gems/rubber-1.12.0/lib/rubber/configuration.rb:13:in `get_configuration' |
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
LDSHARED rbx/melbourne.so | |
/usr/bin/ruby1.8 -S rake -r /home/russell/src/rubinius/config.rb -r /home/russell/src/rubinius/rakelib/ext_helper.rb -r /home/russell/src/rubinius/rakelib/dependency_grapher.rb build | |
(in /home/russell/src/rubinius/lib/ext/nkf) | |
CC nkf.c | |
LDSHARED nkf.so | |
Building openssl | |
/home/russell/src/rubinius/bin/rbx-build extconf.rb | |
/home/russell/src/rubinius/bin/../vm/vm: symbol lookup error: /home/russell/src/rubinius/bin/../vm/vm: undefined symbol: _ZN4llvm8RegistryINS_10GCStrategyENS_14RegistryTraitsIS1_EEE4HeadE | |
rake aborted! | |
Command failed with status (127): [/home/russell/src/rubinius/bin/rbx-build e...] |
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 ViewObject | |
include Enumerable | |
extend Forwardable | |
def_delegators :@views, :<<, :[], :[]=, :last, :first, :push | |
def initialize controller | |
@controller = controller | |
@views = [] | |
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
<fieldset> | |
<legend>Add your images here!!</legend> | |
<ol> | |
<li> | |
<label for="foo">FOO</label> | |
<input name="foo" /> | |
</li> | |
</ol> | |
</fieldset> |
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
# Our own variable where we deploy this app to | |
deploy_to = "/srv/example.com" | |
current_path = "#{deploy_to}/current" | |
shared_path = "#{deploy_to}/shared" | |
shared_bundler_gems_path = "#{shared_path}/bundler_gems" | |
# See http://unicorn.bogomips.org/Sandbox.html | |
# Helps ensure the correct unicorn_rails is used when upgrading with USR2 | |
Unicorn::HttpServer::START_CTX[0] = "#{shared_bundler_gems_path}/bin/unicorn_rails" |