Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

The account has been cancelled and an email confirmation has been sent to the email address on file. Thanks.
streamate.com Support
supportteam@streamate.com
On Mon Jul 28 11:47:33 2014, sunil.srivatsa@gmail.com wrote:
> Hi,
>
> Could you please delete my account. I keep receiving these password
> reset
exec_cmd () {
# if [ $# -ne 1 ]; then
# echo "exec_cmd must be called with a command to execute."
# exit 1
# fi
echo "[`date +%Y-%m-%d:%H:%M:%S`] Executing command: ${1}"
${@}
EXIT_CODE=$?
if [ ${EXIT_CODE} -ne 0 ]; then
echo "Command exited with non-zero exit code: ${EXIT_CODE}"

Keybase proof

I hereby claim:

  • I am alphastorm on github.
  • I am sunilsrivatsa (https://keybase.io/sunilsrivatsa) on keybase.
  • I have a public key whose fingerprint is 80CB BBA7 0175 53D6 1777 9F96 FED0 32B8 B994 9E4A

To claim this, I am signing this object:

@alphastorm
alphastorm / ZeroCaterPrimes.py
Created October 22, 2012 20:30
Math-y Challenge from zerocater.com/challenge
"""
Sunil Srivatsa - 10/22/12
Math-y Challenge from zerocater.com/challenge
Notes:
I use a .txt file of the first 78498 prime numbers from 2 to <1 million from:
http://www.svobodat.com/primes/PRIMES1T.TXT
"""
import sys
@alphastorm
alphastorm / ZeroCaterPrimes.py
Created October 22, 2012 20:31
Math-y Challenge from zerocater.com/challenge
"""
Sunil Srivatsa - 10/22/12
Math-y Challenge from zerocater.com/challenge
Notes:
I use a .txt file of the first 78498 prime numbers from 2 to <1 million from:
http://www.svobodat.com/primes/PRIMES1T.TXT
"""
import sys, urllib2
sunil why are you so awesome
/data/app/unity-etl/installs/unity-etl_7cc7044ac7e28be15138cf2521a1446793ba1c16/vendor/bundle/ruby/1.9.1/gems/thrift-0.9.1/lib/thrift/transport/socket.rb:111:in `read': Socket: Timed out reading 4 bytes from gun7.sjc1c.square:10000 (Thrift::TransportException)
from /data/app/unity-etl/installs/unity-etl_7cc7044ac7e28be15138cf2521a1446793ba1c16/vendor/bundle/ruby/1.9.1/gems/rbhive-0.5.0/lib/thrift/sasl_client_transport.rb:82:in `reset_buffer!'
from /data/app/unity-etl/installs/unity-etl_7cc7044ac7e28be15138cf2521a1446793ba1c16/vendor/bundle/ruby/1.9.1/gems/rbhive-0.5.0/lib/thrift/sasl_client_transport.rb:45:in `read_into_buffer'
from /data/app/unity-etl/installs/unity-etl_7cc7044ac7e28be15138cf2521a1446793ba1c16/vendor/bundle/ruby/1.9.1/gems/thrift-0.9.1/lib/thrift/protocol/binary_protocol.rb:194:in `read_i32'
from /data/app/unity-etl/installs/unity-etl_7cc7044ac7e28be15138cf2521a1446793ba1c16/vendor/bundle/ruby/1.9.1/gems/thrift-0.9.1/lib/thrift/protocol/binary_protocol.rb:
2014-01-15 17:05:09,943 INFO org.apache.hadoop.hive.metastore.HiveMetaStore: 131: source:/10.1.128.51 drop_table : db=transaction_cost tbl=batmobile_payments_deduped
2014-01-15 17:05:09,944 INFO org.apache.hadoop.hive.metastore.HiveMetaStore.audit: ugi=anonymous ip=/10.1.128.51 cmd=source:/10.1.128.51 drop_table : db=transaction_cost tbl=batmobile_payments_deduped
2014-01-15 17:05:09,944 INFO org.apache.hadoop.hive.metastore.HiveMetaStore: 131: source:/10.1.128.51 get_table : db=transaction_cost tbl=batmobile_payments_deduped
2014-01-15 17:05:09,944 INFO org.apache.hadoop.hive.metastore.HiveMetaStore.audit: ugi=anonymous ip=/10.1.128.51 cmd=source:/10.1.128.51 get_table : db=transaction_cost tbl=batmobile_payments_deduped
2014-01-15 17:05:09,982 INFO hive.metastore.hivemetastoressimpl: deleting hdfs://nameservice1/user/hive/warehouse/transaction_cost.db/batmobile_payments_deduped
2014-01-15 17:05:09,990 WARN org.apache.hadoop.fs.TrashPolicyDefault: Can't create trash directory: hdfs://nameservi
Traceback (most recent call last):
File "/opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/share/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1198, in communicate
req.respond()
File "/opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/share/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 568, in respond
self._respond()
File "/opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/share/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 582, in _respond
for chunk in response:
File "/opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/share/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/http/__init__.py", line 408, in next
chunk = self._iterator.next()
File "/opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/share/hue/apps/beeswax/src/beeswax/data_export.py", line 74, in data_generator
[15/Jan/2014 18:34:04 +0000] access INFO 10.1.5.253 sunil - "GET /beeswax/watch/json/6285 HTTP/1.1"
[15/Jan/2014 18:34:04 +0000] cluster WARNING Picking HA JobTracker: default
[15/Jan/2014 18:34:04 +0000] cluster WARNING Picking HA JobTracker: default
[15/Jan/2014 18:34:04 +0000] cluster WARNING Picking HA JobTracker: default
[15/Jan/2014 18:34:04 +0000] cluster WARNING Picking HA JobTracker: default
[15/Jan/2014 18:34:04 +0000] models WARNING get_profile(sunil)
[15/Jan/2014 18:34:04 +0000] access INFO 10.1.5.253 sunil - "GET /beeswax/watch/6285 HTTP/1.1"
[15/Jan/2014 18:34:04 +0000] cluster WARNING Picking HA JobTracker: default
[15/Jan/2014 18:34:04 +0000] cluster WARNING Picking HA JobTracker: default
[15/Jan/2014 18:34:04 +0000] cluster WARNING Picking HA JobTracker: default