Matt J. Sorenson emjayess

View drush-perm-grant.sh
1 2 3 4 5 6 7
#!/bin/bash
 
# clear the lock file
rm /path/to/drupal/site/lock
 
# grant (back) roles and permissions that are capable of content 'writes'
drush @site perm-revoke --roles="contributor" --permissions="post comments,create answer content,create feed content"
View curl-couchdb-upgrade
1 2
$ curl http://127.0.0.1:5984/
{"couchdb":"Welcome","uuid":"41cdbb1ba7c86925d439edaf67369888","version":"1.3.1","vendor":{"version":"1.3.1-1","name":"Homebrew"}}
View step-1-which-versions-grails
1 2 3 4 5 6 7 8 9 10
# find the versions available in homebrew
 
# optionally
brew up
## ... homebrew refreshes all package information
 
brew versions grails
## 2.2.2 git checkout a3fdc1f /usr/local/Library/Formula/grails.rb
## 2.2.1 git checkout aa5c440 /usr/local/Library/Formula/grails.rb
## 2.2.0 git checkout 5c5b964 /usr/local/Library/Formula/grails.rb
View mysql-table-table-prefix-nix.sh
1 2 3
mysql --database=mydb --host=my.host --user=myuser -e "show tables" -s |
egrep "^mytableprefix_" |
xargs -I "@@" echo mysql --database=mydb --host=my.host --user=myuser -e "DROP TABLE @@";
View gist:5463489

Permission denied (public key) even tho my deploy key is evidently recognized...

ubuntu@news:~$ ssh -T git@bitbucket.org
Warning: Permanently added the RSA host key for IP address '207.223.240.182' to the list of known hosts.
conq: authenticated via a deploy key.

You can use git or hg to connect to Bitbucket. Shell access is disabled.
ubuntu@news:~$ sudo git clone git@bitbucket.org:example/example.git /var/www/sites/news
Cloning into '/var/www/sites/news'...
View pouchdb-server.sh
1 2 3 4
npm install pouchdb-server && npm start pouchdb-server
curl http://127.0.0.1:5984
{ "pouchdb-server": "Welcome!", "version": "0.1.0" }
# <3
View ericafail
1 2 3 4 5 6 7 8 9 10
macaroni:empress emjayess$ erica create-app appid=empress
==> empress (create-app)
Writing empress/_id
Writing empress/language
Writing empress/.couchapprc
Writing empress/views/by_type/map.js
macaroni:empress emjayess$ erica push empress
==> empress (push)
ERROR: push failed while processing /Users/emjayess/Sources/couchapp_star/empress: {'EXIT',{undef,[{jiffy,encode,
[{[{<<"_id">>,<<"_design/empress">>},
View config.log
1 2 3 4 5 6 7 8 9 10
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
It was created by Apache CouchDB configure 1.2.1, which was
generated by GNU Autoconf 2.67. Invocation command line was
 
$ ./configure --prefix=/usr/local/Cellar/couchdb/1.2.1 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc --with-erlang=/usr/local/lib/erlang/usr/include --with-js-include=/usr/local/include/js --with-js-lib=/usr/local/lib
 
## --------- ##
## Platform. ##
View hello_world.css
1 2 3 4 5 6 7 8 9 10
body.node-type-article .field-name-body p:first-child:before {
content: "Content starts here! ";
font-style: italic;
display: block;
}
 
body.node-type-article #content:after {
content: "Hello World!";
font-weight: bold;
font-size: 150%;
View commerce-product-display.export.rule
1 2 3 4 5 6 7 8 9 10
{ "rules_auto_create_product_display" : {
"LABEL" : "Auto-create product display",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules", "entity" ],
"ON" : [ "commerce_product_insert" ],
"IF" : [
{ "entity_has_field" : { "entity" : [ "commerce-product" ], "field" : "field_sku" } }
],
"DO" : [
{ "entity_create" : {
Something went wrong with that request. Please try again.