Skip to content

Instantly share code, notes, and snippets.

View dgroup's full-sized avatar
:octocat:
Focused forward

Yurii Dubinka dgroup

:octocat:
Focused forward
View GitHub Profile
@dgroup
dgroup / postgresql-cheatsheet.md
Last active September 4, 2020 21:21 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL cheatsheet

PSQL

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

Command Description
@dgroup
dgroup / Git cheatsheet.md
Last active April 23, 2017 00:06 — forked from cferdinandi/terminal-cheat-sheet.txt
git-cheatsheet
  ### Quick Start

  git clone <url>                 # Clone directory
  git checkout -b <new-branch>    # Create new local branch
  git push -u origin <new-branch> # Sync local branch with remote
  git checkout <branch>           # Checkout branch
  git push origin <branch>        # Push branch to remote
@dgroup
dgroup / vim_cheatsheet.md
Created November 1, 2017 09:24 — 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
@dgroup
dgroup / Notes.md
Created December 11, 2018 05:17 — forked from chrisvest/Notes.md
PrintCompilation on different versions of HotSpot VM

About PrintCompilation

This note tries to document the output of PrintCompilation flag in HotSpot VM. It was originally intended to be a reply to a blog post on PrintCompilation from Stephen Colebourne. It's kind of grown too big to fit as a reply, so I'm putting it here.

Written by: Kris Mok rednaxelafx@gmail.com

Most of the contents in this note are based on my reading of HotSpot source code from OpenJDK and experimenting with the VM flags; otheres come from HotSpot mailing lists and other reading materials listed in the "References" section.

This

@dgroup
dgroup / jmc-setup.md
Last active December 24, 2018 20:06 — forked from aragozin/setup.txt
JMC Workshop Notes

Install the JMC on OSX 10.14.2, Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

  1. Download the swt cocoa jar from here.
  2. Go to JDKs jmc path (You can find this path by right-clicking on jmc icon in the dock -> Options -> Show in Finder, Then right click on App -> Show Package Contents). For example:
    cd /Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/lib/missioncontrol
    # Back up exisiting jar using 
    sudo mv plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar ../
    # Copy downloaded zip's swt.jar using 
    sudo cp ~/Downloads/swt.jar plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.1.v20140903-1947.jar