Skip to content

Instantly share code, notes, and snippets.

View arvindkgs's full-sized avatar

Arvind Kumar GS arvindkgs

View GitHub Profile
@arvindkgs
arvindkgs / NewRepo.md
Last active May 3, 2021 05:52
[Git] Git commands #cheatsheet #cli #git
  1. git init on local folder
  2. Create new empty repository on remote without any files
  3. git remote add origin git@github.com:arvindgs/kinesisdemo.git
  4. git branch --set-upstream-to=origin/master master
  5. git add .
  6. git commit -m "Initial commit"
  7. git push
@arvindkgs
arvindkgs / README.md
Last active March 5, 2021 07:18
[Kubernetes] Kubernetes commands #kubecl

Common kubectl commands


debug

  1. Open shell to debug cluster
    kubectl run ubuntu -it --image=ubuntu --restart=Never --rm

log

  1. Log from current instead of from beginning
    kubectl logs -f --tail 0 pod
@arvindkgs
arvindkgs / Using Minikube Locally for Development.MD
Last active January 11, 2021 08:18 — forked from rcherara/Using Minikube Locally for Development.MD
[Minikube] Using Minikube Locally for Development #kubernetes #cli

Install Minikube with virtual-box VM driver

$ brew update && brew install kubectl && brew cask install docker minikube virtualbox
$ brew cask reinstall minikube
$ minikube delete
$ rm -fr ~/.minikube/
@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
@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
Created February 18, 2021 11:45
[Python] Python

Pip freeze requirement

pip -r

@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 / 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 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 / REST-API.md
Last active March 10, 2023 16:33
[Spring-boot] Spring boot