Skip to content

Instantly share code, notes, and snippets.

@pavel-zrb
pavel-zrb / vim_cheatsheet.md
Created December 27, 2023 10:47 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@pavel-zrb
pavel-zrb / java_signal_exit.md
Created July 20, 2023 11:58 — forked from aphor/java_signal_exit.md
Java default signal handler exit behavior

Thank you to @thobe, please try Neo4J, the coolest NoSQL DB

Tuesday, February 19, 2013 JVMs and kill signals Ever wondered how a JVM reacts to various kill signals? The (intended) behaviour might be documented somewhere already, but I found having a table of > the actual behaviour available quite useful. In particular I wanted to know which kill signals trigger the JVM to run registered shutdown hooks, and > > which kill signals don't actually terminate the JVM. So I decided to compile a table of that information.

I wrote up a small Java application that just registers a shutdown hook that I can detect whether it has executed or not, and then sleeps until I get a chance to kill it:

@pavel-zrb
pavel-zrb / iterm2.md
Created March 2, 2023 09:01 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@pavel-zrb
pavel-zrb / docker-help.md
Created June 11, 2019 09:53 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@pavel-zrb
pavel-zrb / tomcat.ssl.txt
Created February 27, 2017 13:17 — forked from folkengine/tomcat.ssl.txt
TOMCAT SSL
To create the tomcat ssl keystore
keytool -genkeypair -alias tomcat -keyalg RSA -keysize 1024 -validity 365 -keystore %CATALINA_HOME%\conf\keystore
To export it as a certificate
keytool -export -keystore "%CATALINA_HOME%\conf\keystore" -alias tomcat -file "%CATALINA_HOME%\conf\tomcat.cer"
To import into the JRE cacerts
keytool -import -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -alias tomcat -file "%JAVA_HOME%\conf\tomcat.cer"
@pavel-zrb
pavel-zrb / http statuses
Created February 27, 2017 12:46 — forked from albandiguer/http statuses
http statuses
Status Code Status Message Symbol
1xx Informational
100 Continue :continue
101 Switching Protocols :switching_protocols
102 Processing :processing
2xx Success
200 OK :ok
201 Created :created
202 Accepted :accepted
@pavel-zrb
pavel-zrb / gist:88def6734f5420509a1ebd837ed3233a
Created February 12, 2017 11:55 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name