Skip to content

Instantly share code, notes, and snippets.

View RawSanj's full-sized avatar
🏠
Working from home

Sanjay Rawat RawSanj

🏠
Working from home
View GitHub Profile
package org.springsource.examples.spring31.web.config;
// ...
@Configuration
@EnableWebMvc
@ComponentScan(basePackageClasses = { ViewController.class, CustomerService.class })
public class WebMvcConfiguration {
---
applications:
- name: spring-boot-sample-tomcat-jsp
memory: 512M
buildpack: https://github.com/cloudfoundry/java-buildpack.git
domain: local.pcfdev.io
path: target/spring-boot-sample-tomcat-jsp-1.3.3.RELEASE.war
<!DOCTYPE html>
<html>
<head>
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.rtl.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
2017-03-05T16:56:40.17+0000 [STG/0] OUT Uploading droplet...
2017-03-05T16:56:41.34+0000 [STG/0] OUT Uploaded build artifacts cache (44.9M)
2017-03-05T16:56:46.19+0000 [STG/0] OUT Uploading complete
2017-03-05T16:56:46.23+0000 [STG/0] OUT Destroying container
2017-03-05T16:56:48.01+0000 [STG/0] OUT Successfully destroyed container
2017-03-05T16:56:48.35+0000 [CELL/0] OUT Successfully created container
2017-03-05T16:56:52.99+0000 [CELL/0] OUT Starting health monitoring of container
2017-03-05T16:56:57.77+0000 [APP/PROC/WEB/0]OUT :: http://jhipster.github.io ::
2017-03-05T16:56:57.77+0000 [APP/PROC/WEB/0]OUT ██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
2017-03-05T16:56:57.77+0000 [APP/PROC/WEB/0]OUT ██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
@RawSanj
RawSanj / Debbuging RsaJwkDefinition
Last active March 15, 2017 08:17
org.springframework.security.jwt.crypto.sign.InvalidSignatureException: RSA Signature did not match content
Debbuger @ org.springframework.security.oauth2.provider.token.store.jwk.RsaJwkDefinition(.....)
keyId: Tj2ZjSzMEfrjahHgBbrE8hb4oiW48JL6md4FXKTHF1M
modulus: my8rn-JVgZWviLl38kJlbYjOvTGV0uWVACInRHpn-i6xlfZoyI_KwGz8kSoVe8JmfzHhdHFUiCv2hiH9nNMNzQ6MemkqzVb2rnSFiOJ-vhlVlWlCozDyR458SjQBVIH3kujwnbdC0dwcLyVoOLqNj-JfqFS36Z7aUKFGbVEsr_AI5RRsn6nsaQ-sFo3-b6uAVoJMIa47q3jG7MgltNfDgmaaonwUPauXZztKzB1ZwJ3yxaXwDfchS-98kfXgzbIg2dU4OBj85UY0RP3BVBkxpuvW0GaUZvuBxfyH6kMhlhWabIql0rzxGjy0eT-z3EUHNuhizGN9HdqrGWzs1YVEcw
exponent: AQAB
keyId: x3ILxHmimJYNDrJSXAriCOIFlaJ4sAtExrvdcjhFQHQ
modulus: hJRUMyySyWj4b5c3MSTqN82On4N7ADPIDGLvp93mtez7tSVnuixujS0IBLLzvdWKfNumRt74y0EptdsxJSfM5Hnnos3p6pg5MIrgvsI0ebWEV6mHTmSI-ordi-WQW2j7oOmWTa0Ob3qAbJ6hsYDCP-hHqYLFgk8dOt-2UstUarAOYf9EXVO0-NzubCCCX_e8au-rfTN1tULEdcLvFEc9fuFUMzk0aWMBM4xKkCLKIu4O9IhnJKtEsHvNjWJ7it2rpXlT-7R22gmX-2LsqxiLxPyLCtUHH9nYUiL35y0fnmVSob-d_pmHh4zUPb3h3kQg5vRTOF-TGeouyVwtpnWzVQ
exponent: AQAB
@RawSanj
RawSanj / windowsdiego.md
Created April 29, 2017 18:53 — forked from sneal/windowsdiego.md
Add Windows diego to dev pcf

This builds upon the exsting PcfDev Vagrant box by adding a Windows 2012R2 cell capable of hosting .NET 4.5 applications.

Bring up the PcfDev Vagrant box

Add the following provisioner block before the existing provisioner block in the PcfDev Vagrantfile and before you initially bring up the box:

  # Special provisioner to support Windows Cells
 config.vm.provision "shell", run: "once" do |s|
@RawSanj
RawSanj / README.md
Created May 4, 2017 02:54 — forked from polvi/README.md
HDFS of Kubernetes

Easiest HDFS cluster in the world with kubernetes.

Inspiration from kimoonkim/kubernetes-HDFS

kubectl create -f namenode.yaml
kubectl create -f datanode.yaml

Setup a port-forward to so you can see it is alive:

@RawSanj
RawSanj / native-mem-tracking.md
Created December 7, 2018 05:16 — forked from prasanthj/native-mem-tracking.md
Native memory tracking in JVM

Enable native memory tracking in JVM by specifying the following flag

-XX:NativeMemoryTracking=detail

Know the <PID> of the java process

jps

To print ps based RSS

ps -p <PID> -o pcpu,rss,size,vsize

To print native memory tracking summary

@RawSanj
RawSanj / make-all.sh
Created January 18, 2019 15:08
Run maven commands on all Maven Projects inside a directory
#!/usr/bin/env bash
#Set the root directory
RootProjectDirectory=`pwd`
echo "Making all Maven Projects under '"${RootProjectDirectory}"' directory"
for project in `find . -name "pom.xml"`;
do
cd "${project/pom.xml/}";
$@;
@RawSanj
RawSanj / keybase.md
Created March 15, 2019 17:33
Keybase proof

Keybase proof

I hereby claim:

  • I am rawsanj on github.
  • I am rawsanj (https://keybase.io/rawsanj) on keybase.
  • I have a public key ASDP4qIEhmy6kLun17J5ZbTjt0dyfO7t8Dxc0OhhFIFJGgo

To claim this, I am signing this object: