ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
namespace :figaro do | |
desc "SCP transfer figaro configuration to the shared folder" | |
task :setup do | |
transfer :up, "config/application.yml", "#{shared_path}/application.yml", :via => :scp | |
end | |
desc "Symlink application.yml to the release path" | |
task :finalize do | |
run "ln -sf #{shared_path}/application.yml #{release_path}/config/application.yml" | |
end |
In YAML, you can use the pseudo key/value-pair <<: *ref
to merge the mapping referenced by ref
into the current mapping.
It would be nice to have a similar concept for the sequence type that performed "splicing".
For example, if we chose ~@
to represent this pseudo-type (arbitrarily; I chose this only because the ~@
does something similar in Clojure macros):
foo: &foo
- 1
<?php | |
add_filter('xmlrpc_methods', 'wpse39662_add_login_method'); | |
function wpse39662_add_login_method($methods) | |
{ | |
$methods['wpse39662.login'] = 'wpse39662_check_login'; | |
return $methods; | |
} | |
function wpse39662_check_login($args) |
I've just gotten back from the awesome mloc.js conference. There was a talk about compiling C# to JavaScript and one of the benefits explained was static types. Someone from the audience asked, who needs types when you do Test Driven Development?
I tried to address the question in my talk on Roy but I talked to some developers afterwards and they thought that TDD
class people::jfryman { | |
# Applications | |
include chrome::stable | |
include onepassword | |
include dropbox | |
include alfred | |
include macvim | |
include zsh | |
include homebrew | |
include fitbit |
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
This is how I got Armory (etotheipi/BitcoinArmory; http://bitcoinarmory.com/) cross-compiled for the Raspberry Pi.
This is a great way to keep an air-gapped offline wallet for only $30 dollars for the RPi (that you can also use for other things; experiment, it's awesome) and $7 for a Class 10 4GB SD card, really easy to keep in a safe and secret place.
;; borrowed from ibdknox/jayq | |
(defn map->js [m] | |
(let [out (js-obj)] | |
(doseq [[k v] m] | |
(aset out (name k) v)) | |
out)) | |
(defn clj->js | |
"Recursively transforms ClojureScript maps into Javascript objects, | |
other ClojureScript colls into JavaScript arrays, and ClojureScript |