Skip to content

Instantly share code, notes, and snippets.

@pnminh
pnminh / VsCode_SSH_Workspace.md
Last active May 12, 2020 18:38
VsCode SSH Workspace

SSH Workspace

Install VsCode

On Fedora/RHEL/CentOS

$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
$ sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
$ sudo dnf check-update
$ sudo dnf install code
$ code
@pnminh
pnminh / settings.xml
Last active November 19, 2019 16:38
a sample maven settings.xml that provides mirror to maven central and deployment repos for releases and snapshots
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<mirrors>
<mirror>
<!--Send all requests to the mirror repo except the 2 org ones for snapshots and release-->
<!-- This helps with resolving urls using environment variables if the value gets changed -->
<id>maven-public</id>
<mirrorOf>*,!org-snapshots,!org-releases,!confluent-releases</mirrorOf>
<url>https://org.jfrog.io/org/maven-public</url>
</mirror>
@pnminh
pnminh / ngrxintro.md
Created December 5, 2018 23:00 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@pnminh
pnminh / Jenkinsfile
Created February 4, 2018 05:56 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@pnminh
pnminh / Jenkinsfile
Created February 1, 2018 23:01 — forked from HarshadRanganathan/Jenkinsfile
Jenkins Declarative Pipeline Example
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'
@pnminh
pnminh / Jenkinsfile
Created February 1, 2018 23:01 — forked from HarshadRanganathan/Jenkinsfile
Jenkins Declarative Pipeline Example
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'
@pnminh
pnminh / iterm2.md
Created January 30, 2018 15:28 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Fullscreen + Enter
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
@pnminh
pnminh / README.md
Created January 26, 2018 23:56 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@pnminh
pnminh / Gradle SpringMVC.md
Created January 10, 2018 03:47 — forked from somecuitears/Gradle SpringMVC.md
Spring MVC from Gradle in IntelliJ

Creating Gradle Project

  1. Create New Project

  2. Select Java and Web from the Option

  3. You will be asked to provide GroupID and ArtifactID

  • GroupID: it will identify your project uniquely across all projects. (E.g. com.project.model | com.project.plugins)