Skip to content

Instantly share code, notes, and snippets.

View hobodave's full-sized avatar
🎯
Focusing

David Abdemoulaie hobodave

🎯
Focusing
View GitHub Profile
<?php
$dom = new DOMDocument();
$dom->load('plugins.xml');
$xp = new DOMXPath($dom);
$xp->registerNamespace('p', 'http://www.example.com/xml/ns/plugins/1.0');
$plugins = $xp->query('//p:plugin');
Rails.cache.fetch(cache_key, expires_in: expires_in, race_condition_ttl: 7.days.to_i)
# JRuby 9.0.5.0, Rails 4.1.13
# ConcurrencyError: Detected invalid hash contents due to unsynchronized modifications with concurrent users
# .org/jruby/RubyMarshal.java:102:in `dump'(undefined
# …/gems/activesupport-4.1.13/lib/active_support/cache.rb: 669:in `dup_value!'
# …upport-4.1.13/lib/active_support/cache/memory_store.rb: 146:in `write_entry'
# …/gems/activesupport-4.1.13/lib/active_support/cache.rb: 571:in `handle_expired_entry'
# …/gems/activesupport-4.1.13/lib/active_support/cache.rb: 291:in `fetch'
listaccounts
{
"" : 1850.00000000,
"Mining" : 0.00000000,
"foo" : 0.00000000
}
llvm-g++ -stdlib=libstdc++ -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -v -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DUSE_IPV6=1 -I/Users/davida/Developer/litecoin/src/leveldb/include -I/Users/davida/Developer/litecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/davida/Developer/litecoin/src" -I"/Users/davida/Developer/litecoin/src"/obj -I"/opt/local/include" -I"/opt/local/include/db48" -o litecoind -L"/opt/local/lib" -L"/opt/local/lib/db48" leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/scrypt.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/txdb.o -dead_strip -ldb_cxx-4.8 -lboost_system-mt -lboost_filesystem-mt -lboost_program_opti
1/9/14 12:07:07.000 PM kernel[0]: exec of /Applications/coinyecoin-qt.app/Contents/MacOS/coinyecoin-qt denied since it was quarantined by PluginProcess and created without user consent, qtn-flags was 0x00000046
1/9/14 12:07:07.186 PM com.apple.launchd.peruser.2133323732[381]: (com.yourcompany.coinyecoin-qt.148752[12816]) Job failed to exec(3) for weird reason: 1
1/9/14 12:07:07.189 PM Finder[448]: 8837325: Attempting to SIGCONT to pid #12816 failed, with errno=#3, or the process failed to actually start
1/9/14 12:07:07.199 PM Finder[448]: 8837325: Attempting to SIGCONT to pid #12816 failed, with errno=#3, or the process failed to actually start
1/9/14 12:07:07.209 PM Finder[448]: 8837325: Attempting to SIGCONT to pid #12816 failed, with errno=#3, or the process failed to actually start
1/9/14 12:07:07.215 PM loginwindow[85]: ERROR | -[Application setAppContext:] | Unable to get PID for context [0,15498951]
1/9/14 12:07:07.215 PM Dock[446]: no information back from LS about running process LSASN:{hi=0x0;lo=0xe
acme_basic_cms:
resource: "@AcmeBasicCmsBundle/Controller/"
type: annotation
prefix: /
2013-06-05 20:20:04,687 | WARN | /admin/sendMessage.action | org.eclipse.jetty.servlet.ServletHandler | qtp1299222066-109307
javax.jms.JMSException: Stopped.
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1409)
at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1496)
at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:325)
at org.apache.activemq.web.WebClient.createSession(WebClient.java:372)
at org.apache.activemq.web.WebClient.getSession(WebClient.java:259)
at org.apache.activemq.web.controller.SendMessage.createMessage(SendMessage.java:172)
at org.apache.activemq.web.controller.SendMessage.sendMessages(SendMessage.java:71)
server {
listen *:80;
server_name www.example.com;
# Sets the host, even if proxying
set $safehost $http_host;
if ($http_x_forwarded_host != '') {
set $safehost $http_x_forwarded_host;
}
weight_lb|weight (lb.)
weight_kg|weight (kg)
distance_in|distance (inches)
distance_ft|distance (feet)
distance_m|distance (meters)
distance_mi|distance (miles)
time_sec|time (seconds)
time_min_sec|time (minutes:seconds)
reps|repetitions
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0