View 1.Enter-pyspark-shell
1 2 3 4 5 6 7 8 9 10
macarooni:geekout emjayess$ pyspark
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Spark assembly has been built with Hive, including Datanucleus jars on classpath
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
15/02/03 09:18:31 INFO SecurityManager: Changing view acls to: emjayess
15/02/03 09:18:31 INFO SecurityManager: Changing modify acls to: emjayess
15/02/03 09:18:31 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(emjayess); users with modify permissions: Set(emjayess)
15/02/03 09:18:32 INFO Slf4jLogger: Slf4jLogger started
View davinci-cover-letter.md

The Skills of Leonard da Vinci

via Letters of Note

My Most Illustrious Lord,

Having now sufficiently seen and considered the achievements of all those who count themselves masters and artificers of instruments of war, and having noted that the invention and performance of the said instruments is in no way different from that in common usage, I shall endeavour, while intending no discredit to anyone else, to make myself understood to Your Excellency for the purpose of unfolding to you my secrets, and thereafter offering them at your complete disposal, and when the time is right bringing into effective operation all those things which are in part briefly listed below:

  1. I have plans for very light, strong and easily portable bridges with which to pursue and, on some occasions, flee the enemy, and others, sturdy and indestructible either by fire or in battle, easy and convenient to lift and place in position. Also means of burning and destroy
View drupal-cache-tables
1 2 3 4 5 6 7 8 9 10
#mysql> show tables from `mydrupaldb` where `tables_in_mydrupaldb` like '%cache%';
mysql> show tables like '%cache%'; # this works, for just a single pattern match
+----------------------------------+
| Tables_in_mydrupaldb |
+----------------------------------+
| cache |
| cache_admin_menu |
| cache_apachesolr |
| cache_block |
| cache_bootstrap |
View gist:1be85587bc9d2a5ebc17
1
from:(pfizer OR deliciouspfizer OR justpfizer OR specialpfizer OR strongpfizer OR openpfizer OR crazypfizer OR enjoypfizer OR pillbypfizer OR oz OR droz OR docoz OR obama OR "presidential health" OR studentloans OR ellen OR cheap_viagra OR housepayment OR auto-warranty OR term-life)
View lolsalary.js
1 2 3 4 5 6 7 8 9
if ($threshold <= $salary_sucks) {
foreach $pill in @pills {
pop($pill);
}
push($resume);
}
else {
suck_it_up();
}
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 @@";
Something went wrong with that request. Please try again.