Skip to content

Instantly share code, notes, and snippets.

View vbhavsar's full-sized avatar
👋

Vishal Bhavsar vbhavsar

👋
  • New Jersey
  • 17:25 (UTC -04:00)
View GitHub Profile
Unit 2 Study Practice
I am a 6 digit number:
___ ___ ___ ___ ___ ____
My 7 is worth 700,000
My 2 is worth 1/10 of my 7
@vbhavsar
vbhavsar / clouddriver-logs.md
Last active June 19, 2019 15:08
clouddriver logs after vpa upgrade
2019-06-18 19:50:14.926  WARN 1 --- [    handlers-15] c.n.s.o.c.t.m.WaitForManifestStableTask  : [anonymous] Unable to read manifest 'VerticalPodAutoscaler role-resolver' in 'alf' for account gke-gke-xpn-1-asia-east1-asia-east1-4h0y

2019-06-18 19:50:14.926  INFO 1 --- [    handlers-15] c.n.s.orca.clouddriver.OortService       : [anonymous] <--- HTTP 404 http://spin-clouddriver.spinnaker:7002/manifests/gke-gke-xpn-1-asia-east1-asia-east1-4h0y/alf/VerticalPodAutoscaler%20role-resolver (3505ms)

2019-06-18 19:50:14.908  WARN 1 --- [0.0-7002-exec-8] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [com.netflix.spinnaker.kork.web.exceptions.NotFoundException: Manifest (account: gke-gke-xpn-1-asia-east1-asia-east1-4h0y, location: alf, name: VerticalPodAutoscaler role-resolver) not found]

2019-06-18 19:50:11.420  INFO 1 --- [    handlers-15] c.n.s.orca.clouddriver.OortService       : [anonymous] ---> HTTP GET http://spin-clouddriver.spinnaker:7002/manifests/gke-gke-xpn-1-asia-east1-asia-east1-4h0y/alf/Verti
13:32:42 2019/02/25 18:32:42 [DEBUG] apply: google_container_cluster.spotify_gke_cluster: executing Apply
[snip]
13:32:42 2019-02-25T18:32:42.654Z [DEBUG] plugin.terraform-provider-google-beta_v1.20.0_x4: 2019/02/25 18:32:42 [DEBUG] Locking "google-container-cluster/[project]/[region]/[region]-[cluster-name]"
13:32:42 2019-02-25T18:32:42.654Z [DEBUG] plugin.terraform-provider-google-beta_v1.20.0_x4: 2019/02/25 18:32:42 [DEBUG] Locked "google-container-cluster/[project]/[region]/[region]-[cluster-name]"
13:32:42 2019-02-25T18:32:42.654Z [DEBUG] plugin.terraform-provider-google-beta_v1.20.0_x4: 2019/02/25 18:32:42 [DEBUG] Waiting for state to become: [success]
13:32:42 enable_binary_authorization: "" => "false"
13:32:42 enable_kubernetes_alpha: "" => "false"
13:32:42 2019-02-25T18:32:42.655Z [DEBUG] plugin.terraform-provider-google-beta_v1.20.0_x4: 2019/02/25 18:32:42 [DEBUG] Google API Request Details:
13:32:42 2019-02-25T18:
@vbhavsar
vbhavsar / visualvm on remote host
Last active July 20, 2016 16:51
Instructions for profiling a jvm process running on a remote host behind a firewall/NAT/bastion host.
Prerequisites:
- X manager on the local machine. Something like XQuartz works for Mac.
To profile a java process running on a host behind a firewall/NAT/bastion host, follow these instructions:
host1 = localhost
host2 = NAT
host3 = ec2
In a terminal:
@vbhavsar
vbhavsar / quest_js.md
Last active August 29, 2015 14:03
My quest

I have set out on a quest to conquer the super addictive Android game Jewels Star. The goal is to get 3 stars in all levels of the game. I have decided to take the help of a few Computer Science disciplines.

What I have done so far

  • Install Jewels Star apk on an Android emulator
  • Use java.awt.robot to capture screenshots and move jewels around
  • Store each cell's rgb value. Currently I'm only storing the rgb value of the center point but if this isn't accurate enough, I can use rgb values from more regions of the cell (more on that later).