Skip to content

Instantly share code, notes, and snippets.

View arvindkgs's full-sized avatar

Arvind Kumar GS arvindkgs

View GitHub Profile
@arvindkgs
arvindkgs / DEBUG.md
Last active May 2, 2021 13:23
[Java] Java

java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar MyApp.jar

@arvindkgs
arvindkgs / Query.md
Created March 27, 2021 07:11
[Kibana] Kibana

Search across multiple values

Use "is one of" in filter

@arvindkgs
arvindkgs / BASH.md
Last active September 5, 2021 12:44
[Unix] Unix tools
  1. To quickly jump to important folders in your terminal, bookmark them as
    ln -s path/to/project ~/.bookmarks/@project
    then to navigate to project folder - goto @project

    But before you can do that do below -

    1. create directory ~/.bookmarks
    2. Add below to .bashrc

if [ -d "$HOME/.bookmarks" ]; then

@arvindkgs
arvindkgs / REST-API.md
Last active March 10, 2023 16:33
[Spring-boot] Spring boot
@arvindkgs
arvindkgs / README.md
Created February 25, 2021 11:41
[Eclipse] Eclipse

Synchronize View

In the Synchronize view, click on the dropdown arrow next to Synchronize button, then select "Synchronize...". In the dialog that appears choose Git, press Next. Then the crucial part - select destination to be HEAD for your repository and check "Include local uncommitted changes in comparison". Click Finish.

@arvindkgs
arvindkgs / Debugging.md
Last active March 6, 2023 06:51
[Spring Debug] Spring Debug

Print all beans on startup

@SpringBootApplication
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }

  @Bean
@arvindkgs
arvindkgs / README.md
Created February 18, 2021 11:47
[AWS] AWS

Credentials

  1. Credentials file is stored in ~/.aws/credentials and it should have permissions 600. Set it by chmod 600 ~/.aws/credentials
@arvindkgs
arvindkgs / README.md
Created February 18, 2021 11:45
[Python] Python

Pip freeze requirement

pip -r

@arvindkgs
arvindkgs / README.md
Last active October 3, 2021 19:18
[maven] maven

Initalize mvn wrapper for project

  1. Run mvn -N io.takari:maven:wrapper in project root

Run individual tests

mvn -Dtest=TestClass test

Skip tests

mvn install -DskipTests

Build

@arvindkgs
arvindkgs / README.md
Last active June 11, 2022 04:25
[Mysql] Mysql cheatsheet #persistance

Installation

https://dev.mysql.com/downloads/mysql/ Download TAR option

Setup

  1. Unpack TAR
  2. Create data directory in exploded root
  3. Initialize - mysqld --initialize
  4. Check for line and make note of root password