Skip to content

Instantly share code, notes, and snippets.

Mar Plateado Immersion Team
---------------------------
*The Mar Plateado Immersion Team* is an informal group of native English and Spanish speakers who use the "Immersion" mechanism of Duolingo.com to support our study of each other's languages. We believe that serious students should work with entire documents, not just isolated sentences, and we work together to produce complete translations.
We coordinate our work through Duolingo discussion threads that list documents we are currently focusing on. This is called the *session message*, and the member who keeps it up to date is the *session owner*. Ownership rotates periodically.
You may be initially more comfortable translating to your own language from the language you are learning, but, once you have more experience, we encourage you to participate in "reverse immersion"--translating from your native language to the language being studied. On both sides, native speakers of the source language can help to determine the source's meaning or intent, whi
chef > databags(:apps).show('dbapp') { |n| n['group'] = 'nobody2'; n.save }
=> data_bag_item[:apps, "dbapp", {"group"=>"nobody", "server_roles"=>["dbapp"], "databases"=>{"_default"=>{"max_active"=>"100", "port"=>"3306", "username"=>"dbapp", "adapter"=>"mysql", "max_idle"=>"30", "database"=>"dbapp_production", "driver"=>"com.mysql.jdbc.Driver", "max_wait"=>"10000", "password"=>"awesome_password"}}, "id"=>"dbapp", "mysql_repl_password"=>{"_default"=>"mysql_repl"}, "type"=>{"dbapp"=>["java_webapp", "tomcat"]}, "database_master_role"=>["dbapp_database_master"], "war"=>{"_default"=>{"checksum"=>"056accd909ba13de6b3d3479c3b96e5b32e252948f88ef074c714ffac3a9d579", "source"=>"http://foo:8080/job/dbapp/com.opscode$dbapp/5/artifact/com.opscode/dbapp/0.0.1-SNAPSHOT/dbapp-0.0.1-SNAPSHOT.war"}, "dev"=>{"checksum"=>"056accd909ba13de6b3d3479c3b96e5b32e252948f88ef074c714ffac3a9d579", "source"=>"http://foo:8080/job/dbapp/com.opscode$dbapp/5/artifact/com.opscode/dbapp/0.0.1-SNAPSHOT/dbapp-0.0.1-SNAPSHOT.war"}}, "mysql_root_pas
@mlei
mlei / postinst.diff
Created February 9, 2012 00:14
debian postinst patch rundeck
diff --git a/packaging/debroot/DEBIAN/postinst b/packaging/debroot/DEBIAN/postinst
index 5764014..cd70b5d 100755
--- a/packaging/debroot/DEBIAN/postinst
+++ b/packaging/debroot/DEBIAN/postinst
@@ -4,10 +4,12 @@ set -e
setperm() {
local user="$1"
- local group="$2"
- local mode="$3"
@mlei
mlei / gist:1073102
Created July 8, 2011 23:47
script-copy escaping issue
04:45:40 [admin@localhost ][CONFIG] [workflow] Begin execution: rundeck-workflow-node-first
04:45:40 [admin@localhost ][CONFIG] preparing for sequential execution on 1 nodes
04:45:40 [admin@localhost ][CONFIG] Executing command on node: centos5.local, NodeEntryImpl{nodename=centos5.local,hostname=centos5.local,osName=null,osArch=null,osFamily=null,osVersion=null,username=mlei,tags=[],attributes={script-copy=scp ${file-copy.file} ${node.username}@${node.hostname}:${node.file-copy-destination-dir} && echo ${node.file-copy-destination-dir}`basename ${file-copy.file}`, username=mlei, file-copy-destination-dir=/tmp, node-executor=script-exec, nodename=centos5.local, hostname=centos5.local, script-exec=ssh ${node.username}@${node.hostname} ${exec.command}, file-copier=script-copy}}
04:45:40 [admin@localhost ][CONFIG] NodeSet: NodeSet{singleNode=centos5.local}
04:45:40 [admin@localhost ][CONFIG] Workflow: com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy$stepFirstWrapper@a4e9f61b
04:45:40 [a
@mlei
mlei / gist:1065899
Created July 5, 2011 20:54
test aclpolicy (markup)
<policies>
<policy description="This policy">
<context project="*">
<command group="DB3" job="*" actions="*"/>
</context>
<by>
<group name="user"/>
</by>
</policy>
</policies>
@mlei
mlei / gist:1036810
Created June 20, 2011 23:01
build error
Buildfile: /Users/mlei/src/controltier/ctiersvn/ctl-center/build.xml
clean:
[exec] Welcome to Grails 1.2.0 - http://grails.org/
[exec] Licensed under Apache Standard License 2.0
[exec] Grails home is set to: /Users/mlei/src/controltier/local/grails-1.2.0
[exec]
[exec] Base Directory: /Users/mlei/src/controltier/ctiersvn/ctl-center
[exec] Resolving dependencies...
[exec] Dependencies resolved in 2233ms.
Error executing script TestApp: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: org.hibernate.cache.UpdateTimestampsCacheCache: Could not create disk store. Initial cause was /tmp/org.hibernate.cache.UpdateTimestampsCache.data (Permission denied)
gant.TargetExecutionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory
@mlei
mlei / gist:817626
Created February 9, 2011 00:35
ctier aclpolicy sample
<policy description="Staging Zbc role">
<context project="*">
<command group="Staging/Zbc" job="*" actions="workflow_read,workflow_run,workflow_kill,events_read,resources_read"/>
</context>
<by>
<group name="stg.zbc"/>
</by>
</policy>
[jboss@ecom-int01 jboss-profiler-2.0.0.Beta5]$ java -Xmx512m -Djboss-profiler-client.properties=jboss-profiler-client.properties -jar jboss-profiler-client.jar startProfiler
2011-01-11 17:30:36,254 ERROR [org.jboss.profiler.client.cmd.Client] Error connecting RMI invoker client
org.jboss.remoting.CannotConnectException: Error connecting RMI invoker client
at org.jboss.remoting.transport.rmi.RMIClientInvoker.handleConnect(RMIClientInvoker.java:158)
at org.jboss.remoting.MicroRemoteClientInvoker.connect(MicroRemoteClientInvoker.java:242)
at org.jboss.remoting.Client.connect(Client.java:1522)
at org.jboss.remoting.Client.connect(Client.java:462)
at org.jboss.profiler.client.cmd.Client.main(Client.java:271)
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.InvalidClassException: org.jboss.remoting.transport.rmi.RemotingRMIClientSocketFactory; local class incompatible: stream classdesc serialVersionUID = -74915565895177