Skip to content

Instantly share code, notes, and snippets.

View kennycyb's full-sized avatar

Kenny Chong kennycyb

  • Malaysia
View GitHub Profile
@kennycyb
kennycyb / purge-recyclebin.sql
Created February 13, 2018 02:54
Oracle - PURGE recyclebin
begin
execute immediate 'purge recyclebin';
end;
/
@kennycyb
kennycyb / maven.md
Last active February 13, 2018 05:29
Java: maven

Make a release

mvn release:prepare
mvn release:perform

Rollback if error

mvn release:rollback
@kennycyb
kennycyb / cygwin.md
Last active February 13, 2018 05:31
Environment: cygwin - X11 Forwarding
@kennycyb
kennycyb / linux-cups-file.md
Created February 13, 2018 05:34
Linux: File Printer / Null Printer

Enable FileDevice

Edit /etc/cups/cupsd.conf

FileDevice yes

Setup Printer

$ lpadmin -p <printername> -E -v file:/dev/null

Enable JMX behind firewall

-Dcom.sun.management.jmxremote.rmi.port=9192

Delete all nodes and relationships

match (n) detach delete n

Remove all AT jobs

atrm $(atq | cut -f1)

~/.vimrc

set number
set incsearch
set mouse=a
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent

set smartindent

Add user to docker group

To allow a user to execute docker command without 'sudo'

$ sudo groupadd docker

$ sudo usermod -aG docker $USER