Skip to content

Instantly share code, notes, and snippets.

View jamescarr's full-sized avatar
🎯
Focusing

James Carr jamescarr

🎯
Focusing
View GitHub Profile
while [ -n "`docker ps | grep mysql`"]
do
echo "waiting on mysql..."
sleep 6
done
echo "mysql started!"
<br />
<b>Fatal error</b>: Call to undefined function libxml_disable_entity_loader() in <b>/home/unitedon/public_html/magento/app/code/core/Zend/XmlRpc/Request.php</b> on line <b>306</b><br />
vagrant@vagrant-ubuntu-trusty-64:~/mcrouter$ sudo docker run jamescarr/mcrouter /usr/local/share/install/bin/mcrouter --help
mcrouter 1.0
usage: /usr/local/share/install/bin/mcrouter [options] -p port(s) -f config
libmcrouter options:
Startup
--asynclog-disable disable async log file spooling
-a, --async-dir container directory for async storage spools [default: "/var/spool/mcrouter"]
--use-asynclog-version2 Enable using the asynclog version 2.0
>>> week_ago = datetime.datetime.now() - datetime.timedelta(days=7)
>>> week_ago > parser.parse('2014-07-30T19:06:39.000Z')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't compare offset-naive and offset-aware datetimes
>>> week_ago < parser.parse('2014-07-30T19:06:39.000Z')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't compare offset-naive and offset-aware datetimes
Elasticsearch::Service[es-01]/Elasticsearch::Service::Init[es-01]/Service[es-01]: Skipping because of failed dependencies
Error: Could not find a suitable provider for augeas
9 pizzas:
2 16" Pepperoni
2 16" Cheese
2 16" Sausage
2 16" Canadian Bacon & Pineapple
1 12" Gluten Free Pepperoni
4 2 liters of soda
jamescarr@James-MacBook-Air: ~/Projects/docker-presentation
$ ls [10:03:24]
Dockerfile hello.js html
jamescarr@James-MacBook-Air: ~/Projects/docker-presentation
$ docker run -i -t -v $(pwd):/src:ro 139ae5bb8a8b ls [10:03:26]
bin dev home lib64 mnt proc run src sys usr
boot etc lib media opt root sbin srv tmp var
jamescarr@James-MacBook-Air: ~/Projects/docker-presentation

I typically do a two way sync between evernote and some other application by having Zapier trigger off of notes with a specific tag. All you have to do is setup a custom filter on tags.

Tags

This way items synced to Evernote don't get retriggered and you only trigger off of actual new items in evernote.

handle(function() {
doSomething("with", "params");
});
function handle(fn) {
try {
fn();
} catch(e) {
var result = doOtherThings();
if (!result) {
node:
data: true
master: false
name: Voyant, Claire