Skip to content

Instantly share code, notes, and snippets.

@aiafrasinei
aiafrasinei / SqlHt tool
Created January 15, 2022 16:13
sqlite 3 header tool, code generator
#pragma once
#include <string>
#include <vector>
class SqlHt
{
public:
~SqlHt();
change to previous working directory:
cd -
cd $OLDPWD
backup file:
cp file{,.bak}
change file extension:
mv file{.old,.new}
valgrind -log-file=/home/deneb/valog --leak-check=full --show-reachable=yes --track-origins=yes binary
Ctrl Shift L - more shortcuts
F3 - open declaration
Ctrl H - search in files
Ctrl Shift T - search java type
Ctrl Shift G - find references in workspace
Ctrl G - find reference in project
Ctrl O - methods, twice methods from parent
@aiafrasinei
aiafrasinei / java simple jar build
Created February 5, 2019 16:00
java simple jar build
javac Jrt.java Config.java ModuleInfo.java
jar -cvmf Manifest.txt Jrt.jar Jrt.class Config.class ModuleInfo.class
Manifest.txt
Main-Class: Jrt
@aiafrasinei
aiafrasinei / emacs.howto
Created February 5, 2019 15:59
emacs simple usage
C-x C-f - find file
C-x C-s - save
C-x C-w - save as
C-x C-c - exit
Navigation
M-f M-b - forward/backword 1 word
C-n C-p - next line , prev line
C-a C-e - begining of line , end of line
@aiafrasinei
aiafrasinei / vimrc
Created February 5, 2019 15:57
my vimrc
colorscheme elflord
set tabstop=4
set expandtab
set shiftwidth=4
set wildchar=<Tab> wildmenu wildmode=full
set ruler
set nobackup
set nowritebackup
set ignorecase
set smartcase
@aiafrasinei
aiafrasinei / vim.ide
Created February 5, 2019 15:56
vim cscope usage
build db:
cscope -R -b -q
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
CTRL + ] - go to definition
CTRL + \ s - search occurences of symbol below cursor
CTRL + t - go back
@aiafrasinei
aiafrasinei / vim.howto
Created February 5, 2019 15:54
vim usefull commands
-----------
Visual mode
-----------
v
y - yank
p - paste
select text << >> - indentation
d - delete marked text
~ - switch case