Skip to content

Instantly share code, notes, and snippets.

View ipoddar-ibm's full-sized avatar

Indrajit Poddar ipoddar-ibm

  • IBM
  • Pittsburgh, pA
View GitHub Profile
@ipoddar-ibm
ipoddar-ibm / TensorFlowMachineLearningWithFinancialDataOnNimbixPlatform.ipynb
Last active April 22, 2017 13:43
Jupyter notebook for Tensorflow time series analysis on NIMBIX with GPUs based on Google Cloud Platform
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ipoddar-ibm
ipoddar-ibm / bosh-openstack-stemcell-ppc64le.txt
Created July 25, 2016 19:34
Steps for building BOSH openstack stemcell on POWER
prerequisites: go-1.6.2 binary (go-1.6.2-ppc64le.tar.gz)
cd ~
sudo tar xvfz go-1.6.2-ppc64le.tar.gz -C /usr/local
sudo ln -s /usr/local/go/bin/go /usr/local/bin
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.3.1
@ipoddar-ibm
ipoddar-ibm / microbosh-boshinit.yml
Created July 25, 2016 19:25
Deployment manifest for bosh init on OpenPOWER
---
name: bosh
releases:
- name: bosh
url: http://ftp.unicamp.br/pub/ppc64el/ubuntu/14_04/cloud-foundry/bosh-release.tgz
sha1: 3e828b4a47876c8065c1d28a0c24ec19f612efa2
- name: bosh-openstack-cpi
url: http://ftp.unicamp.br/pub/ppc64el/ubuntu/14_04/cloud-foundry/cpi-release.tgz
sha1: 4b5613c7b4cf00fcd20a214a7b6689921a85ec6b
@ipoddar-ibm
ipoddar-ibm / bosh-release-openstack-cpi-release.txt
Created July 25, 2016 19:14
Steps to create bosh release and openstack cpi release
cd ~
mkdir -p ~/releases
sudo apt-get update
sudo apt-get install -y git libmysqlclient-dev libpq-dev libxml2-dev libxslt1-dev
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.3.1
source ~/.rvm/scripts/rvm
gem install bundler -v 1.11
@ipoddar-ibm
ipoddar-ibm / workingcfpush.txt
Last active September 4, 2015 20:49
Working cf push of a test app with the node.js buildpack on power
ubuntu@dance:~$ cf update-buildpack nodejsbp -p buildpack/ -i 1 --enable
Updating buildpack nodejsbp...
Done uploading
OK
ubuntu@dance:~$ cf buildpacks
Getting buildpacks...
buildpack position enabled locked filename
nodejsbp 1 true false buildpack.zip
nullbp 2 true false null-buildpack.zip
@ipoddar-ibm
ipoddar-ibm / dea_nextcfpushnullbperror.txt
Created September 3, 2015 18:17
dea_next error log for cf push null bp error
root@f8e28372-a6f2-4828-bfef-82dd60a1d955:/var/vcap/sys/log/dea_next# cat dea_nextcfpushnullbperror.txt
{"timestamp":1441300178.7677147,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"staging.0-7c9872cd407e4178a707e7ed51cdf47f.start","data":{"app_id":"852e9f27-5ffe-4045-bb8d-6491cc38b163","stack":"trustyppc64le","task_id":"1a469d1b174240d3a25bf7d76510885b","properties":{"services":[],"resources":{"memory":512,"disk":1024,"fds":16384},"environment":["CF_STACK=trustyppc64le"],"meta":{"command":"./simple-go-web-app --port $PORT","console":false},"buildpack_key":"ac75f1e8-5ec6-4bfe-8e91-a6820522d928_6e8cca841eeae5ed9971745c7cc88d31978b1bfc"},"download_uri":"http://admin:admin@10.0.1.62:9022/staging/apps/852e9f27-5ffe-4045-bb8d-6491cc38b163","upload_uri":"http://admin:admin@10.0.1.62:9022/staging/droplets/852e9f27-5ffe-4045-bb8d-6491cc38b163/upload","buildpack_cache_download_uri":null,"buildpack_cache_upload_uri":"http://admin:admin@10.0.1.62:9022/staging/buildpack_cac
@ipoddar-ibm
ipoddar-ibm / wardenlogsforcfpushnullbp.txt
Created September 3, 2015 18:12
warden logs for cf error on null bp push
root@f8e28372-a6f2-4828-bfef-82dd60a1d955:/var/vcap/sys/log/warden# tail -67 warden.log
{"timestamp":1441300179.67319,"message":"Container started","log_level":"debug","source":"Warden::Container::Linux","data":{"handle":"18up1lj60kp"},"thread_id":550160478920,"fiber_id":550166268140,"process_id":30147,"file":"/var/vcap/data/packages/warden/cfc2bf519afa88d1d093f47233a0568f139de744.1-dd65ea2bdb9a22becd6b39e033b8093ce88d347f/warden/lib/warden/container/linux.rb","lineno":108,"method":"do_create"}
{"timestamp":1441300179.6738367,"message":"Wrote snapshot in 0.000373","log_level":"debug","source":"Warden::Container::Linux","data":{"handle":"18up1lj60kp"},"thread_id":550160478920,"fiber_id":550166268140,"process_id":30147,"file":"/var/vcap/data/packages/warden/cfc2bf519afa88d1d093f47233a0568f139de744.1-dd65ea2bdb9a22becd6b39e033b8093ce88d347f/warden/lib/warden/container/base.rb","lineno":334,"method":"write_snapshot"}
{"timestamp":1441300179.6739779,"message":"create (took 0.882635)","log_level":"debug","source":"
@ipoddar-ibm
ipoddar-ibm / cfpusherrornullbp.txt
Created September 3, 2015 17:15
CF push errors on null buildpack
ubuntu@dance:~/go/src/github.com/allomov/simple-go-web-app$ cf push
Using manifest file /home/ubuntu/go/src/github.com/allomov/simple-go-web-app/manifest.yml
FAILED
Server error, status code: 0, error code: rest_client_error, message: I/O error on POST request for "http://uaa.10.0.1.57.xip.io/oauth/token":uaa.10.0.1.57.xip.io: Name or service not known; nested exception is java.net.UnknownHostException: uaa.10.0.1.57.xip.io: Name or service not known
ubuntu@dance:~/go/src/github.com/allomov/simple-go-web-app$ cf push -s trustyppc64le -b nullbp
Using manifest file /home/ubuntu/go/src/github.com/allomov/simple-go-web-app/manifest.yml
Using stack trustyppc64le...
OK
@ipoddar-ibm
ipoddar-ibm / cfpusherrors.txt
Created September 2, 2015 19:19
cf push errors
root@f8e28372-a6f2-4828-bfef-82dd60a1d955:/var/vcap/sys/log/warden# cat warden.log
{"timestamp":1440690807.9646275,"message":"Configuration","log_level":"info","source":"Warden::Server","data":{"server":{"unix_domain_path":"/var/vcap/data/warden/warden.sock","unix_domain_permissions":511,"container_klass":"Warden::Container::Linux","container_grace_time":300,"job_output_limit":10485760,"quota":{"disk_quota_enabled":true},"allow_nested_warden":false,"container_rootfs_path":"/var/vcap/packages/rootfs_cflinuxfs2","container_depot_path":"/var/vcap/data/warden/depot","container_rlimits":{"core":0},"pidfile":"/var/vcap/sys/run/warden/warden.pid"},"logging":{"level":"debug","file":"/var/vcap/sys/log/warden/warden.log","syslog":"vcap.warden"},"network":{"pool_network":"10.254.0.0/22","deny_networks":[],"allow_networks":["172.16.0.0/24","192.168.111.0/24","140.211.168.0/24","10.0.1.0/24"],"allow_host_access":false,"mtu":1500},"port":{"pool_start_port":61001,"pool_size":4000},"user":{"pool_start_uid":20000,"pool_size":
@ipoddar-ibm
ipoddar-ibm / uaa_errors.txt
Last active September 2, 2015 04:33
uaa startup errors on internal deployment of cloud foundry
ubuntu@dance:~$ bosh vms
[WARNING] Loading the cli took 38.9 seconds, consider cleaning your gem environment
Acting as user 'admin' on 'my-bosh'
Deployment `cf'
Director task 53
Task 53 done