Skip to content

Instantly share code, notes, and snippets.

Show docker version

Syntax:

docker version

List images

Syntax:

@vpiotr
vpiotr / linux_setup.md
Last active May 6, 2022 23:01
First things to do after Linux Mint fresh install

Linux - first things to do after install

These commands were tested on Linux Mint 20.03

Use most recent kernel version

From distribution repo - using Update Manager

Select the latest version which works for you: https://www.makeuseof.com/upgrade-kernel-linux-mint/

From cutting edge repo

Basic commands

Run Maven from another directory:

 mvn -f tutorials/pom.xml clean verify

Run JAR application via exec-maven-plugin:

 mvn exec:java

Annotations

Spring Data - Document

@Document - specify collection @Field - specify column (field) name @Indexed - add field to index @TextIndexed - full text index @Transient - do not store @DBRef - ref @PersistentConstructor - use this constractor for deserialization

Swagger QuickRef

Specification

Local Docker execution

Swagger Editor

Run Swagger Editor via Docker

@vpiotr
vpiotr / svn-quickref.md
Created August 14, 2019 10:48
SVN Command Quickref

Basic commands

Add

  • add files

    svn add myscript.sh
    
  • add all which are not in SVN

@vpiotr
vpiotr / git-quickref.md
Last active November 8, 2022 23:06
Git Command Quickref

Configure

  • show config value

    git config --global user.name
    
  • edit all config values

    nano ~/.gitconfig
    
@vpiotr
vpiotr / MyDesktopApp.nsi
Last active May 16, 2019 18:28
Sample NSIS script used in my desktop application
;--------------------------------------------------------------
;Sample NSIS script for MyDesktopApp
;
;Author: Piotr Likus, 2019
; https://github.com/vpiotr
;
;Initial script automatically created by Mihov NSIS Helper 3.2
; http://freeware.mihov.com
;
;Some patterns to be replaced:
@vpiotr
vpiotr / 99bottles.js
Created October 12, 2017 05:27
99 Botttles of Beer in JavaScript
// 99 Botttles of Beer (see http://www.99-bottles-of-beer.net/)
// Language: JavaScript (SeaMonkey)
//
// Features:
// * no usage of digits
// * strings are not repeated
// * no external libs required
function bottles(x) {