Skip to content

Instantly share code, notes, and snippets.

View DovgaNik's full-sized avatar
🇹🇩

DovgaNik

🇹🇩
  • Bucharest, Romania
  • 16:44 (UTC +03:00)
View GitHub Profile
@DovgaNik
DovgaNik / Api
Created September 30, 2021 12:22
1603f21aaf8b3581646475b3c3e8541860988e38
JVessel tracker is yet another api for Marine traffic, bu it has many pros that can make you using it in your everyday life
@DovgaNik
DovgaNik / Move frame
Last active August 3, 2021 19:51
This code will allow you moving undecorated frames in Java Swing
int xMouse;
int yMouse;
private void formMousePressed(java.awt.event.MouseEvent evt) {
xMouse = evt.getX();
yMouse = evt.getY();
}
private void formMouseDragged(java.awt.event.MouseEvent evt) {
int x = evt.getXOnScreen();
#Appereance
URxvt*saveLines: 1000
URxvt*scrollBar: false
URxvt*background: #212121
URxvt*foreground: #C0C0C0
#Fonts
URxvt.font:xft:Monospace:pixelsize=15
URxvt.boldfont:xft:Monospace-Bold:pixelsize=15
@DovgaNik
DovgaNik / 00-keyboard.conf
Last active July 6, 2022 07:35
Arch linux + i3 + polybar configurations
#/etc/X11/xorg.conf.d/00-keyboard.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us,ru"
Option "XkbModel" "pc105"
Option "XkbVariant" "qwerty"
Option "XkbOptions" "grp:caps_toggle"
EndSection

My Vim handbook

Standart functions

  1. Working with files:
    • :edit - will open file or refresh current file
    • :w - will write save the file
    • :q - will close the file
  2. Multiple windows: