Skip to content

Instantly share code, notes, and snippets.

View michaljemala's full-sized avatar
🤘
Enjoying Golang

Michal Jemala michaljemala

🤘
Enjoying Golang
  • Bratislava, Slovakia
View GitHub Profile
$ cf push wls-sample-web -b https://github.com/michaljemala/weblogic-buildpack -p resources/wls/WlsSampleWeb.war
Creating app wls-sample-web in org mjemala-org / space development as mjemala@gopivotal.com...
OK
Using route wls-sample-web.cfapps.io
Binding wls-sample-web.cfapps.io to wls-sample-web...
OK
Uploading wls-sample-web...
Uploading app files from: resources/wls/WlsSampleWeb.war
{"type": "step_started", "id": "microbosh.setting_manifest"}
Running bosh micro deployment micro/
Deployment set to '/var/tempest/workspaces/default/deployments/micro/micro_bosh.yml'
{"type": "step_finished", "id": "microbosh.setting_manifest"}
{"type": "step_started", "id": "microbosh.deploying"}
Running bosh micro deploy /var/tempest/stemcells/bosh-stemcell-2690.3-vsphere-esxi-ubuntu-trusty-go_agent.tgz --update-if-exists
Verifying stemcell...
File exists and readable OK
Verifying tarball...
@michaljemala
michaljemala / PCF Security Groups Test
Last active August 29, 2015 14:09
A transcript of test scenario for PCF security groups
[1]----------------------------------------------------------------------------
$ cf security-groups
Getting security groups as admin
OK
Name Organization Space
#0 all_open
[2]----------------------------------------------------------------------------
$ cf running-security-groups
@michaljemala
michaljemala / cf-ssh
Created January 30, 2015 17:29
SSH Client
package main
import (
"fmt"
"log"
// "github.com/cloudfoundry/cli/plugin"
"golang.org/x/crypto/ssh"
"golang.org/x/net/websocket"
)
@michaljemala
michaljemala / timeout.go
Last active August 29, 2015 14:17
A sample Go app demonstrating the 150.214.47.153:35443 is not accessible on PWS
package main
import (
"fmt"
"log"
"net"
"net/http"
"os"
)
$ cat dea_next/dea_next.log | grep "\"log_level\":\"error\""
{"timestamp":1424586340.7287219,"message":"stat-collector.info-retrieval.failed","log_level":"error","source":"Dea::StatCollector","data":{"handle":"18f946ch24j","error":"command exited with failure","backtrace":["/var/vcap/packages/dea_next/vendor/cache/warden-dd32a459c99d/em-warden-client/lib/em/warden/client/connection.rb:27:in `get'","/var/vcap/packages/dea_next/vendor/cache/warden-dd32a459c99d/em-warden-client/lib/em/warden/client.rb:43:in `call'","/var/vcap/packages/dea_next/lib/container/container.rb:192:in `call'","/var/vcap/packages/dea_next/lib/container/container.rb:170:in `info'","/var/vcap/packages/dea_next/lib/dea/stat_collector.rb:26:in `retrieve_stats'","/var/vcap/packages/dea_next/lib/dea/stat_collector.rb:69:in `block in promise_retrieve_stats'","/var/vcap/packages/dea_next/lib/dea/promise.rb:92:in `call'","/var/vcap/packages/dea_next/lib/dea/promise.rb:92:in `block in run'"]},"thread_id":13174900,"fiber_id":30092060,"process_id":1
@michaljemala
michaljemala / NativeDumper.java
Created May 19, 2015 09:15
A sample Native Memory Tracking dump
package org.example;
import java.lang.management.ManagementFactory;
import javax.management.MBeanServer;
import javax.management.ObjectName;
public class NativeDumper {
public static String dumpNative() {
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
try {

Keybase proof

I hereby claim:

  • I am michaljemala on github.
  • I am mije (https://keybase.io/mije) on keybase.
  • I have a public key whose fingerprint is 1697 6835 3FBB 3BCC DA81 ED49 F434 C962 4B5D D96D

To claim this, I am signing this object:

{
"Hrid":"Cash",
"Claim":{
"Type":"Quantity",
"Values":{
"RowContains":[
":CashBankInHand",
":CashBank",
":CashBankOnHand",
":CashInHand"