ctrl-r- reverse search history (reverse-i-search)ctrl-s- forward search history (reverse-i-search)ctrl-p- previous command in historyctrl-n- next command in history
ctrl-a- move the cursor to the beginning of the current linectrl-e- move the cursor to the end of the current linealt-b- move the cursor backwards one wordalt-f- move the cursor forward one wordctrl-k- delete from cursor to the end of the linectrl-u- delete from cursor to the beginning of the linealt-d- delete the word in front of the cursorctrl-w- delete the word behind of the cursor
ctrl-z- send process to backgroundctrl-c- kill current process
less- paged viewing with vim (ex view lots of git pending changes:git status | less)find- find named files (ex search curdir for file auth.py:find . -type f -name auth.py)
git for-each-ref --sort=-committerdate refs/heads/git branch --sort=-committerdate- ver 2.7.0+
git branch -a- list all branches, local & remotegit branch -r- list remote branchesgit remote show origin- show all remote branches including tracked and stale (example)
λ git remote show origin
* remote origin
Fetch URL: git@gitlab.com:aretedev/m10.git
Push URL: git@gitlab.com:aretedev/m10.git
HEAD branch: master
Remote branches:
4-delete-a-project tracked
master tracked
refs/remotes/origin/1-open-existing-project stale (use 'git remote prune' to remove)
refs/remotes/origin/quo stale (use 'git remote prune' to remove)
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)git remote prune origin- prune origin branches
λ git remote prune origin
Pruning origin
URL: git@gitlab.com:aretedev/m10.git
* [pruned] origin/1-open-existing-project
* [pruned] origin/quoALTER USER me IDENTIFIED BY my_new_password- reset password
- Date: date and time values down to the second (e.g. 1/1/10 13:01:01)
- TimeStamp: an extension of date, includes date and time values down to the fractional second (e.g. 1/1/10 13:01:01:0009)
INSERT INTO TABLE_NAME(DATE_FIELD) VALUES(to_date('2016-01-01 01:01:01', 'yyyy-mm-dd hh24:mi:ss'))
- 100 left-most characters
select substr(message, -100) from alerts order by alertid;
- 100 right-most characters
select substr(message, 100) from alerts order by alertid;
JDBC inserting a clob value from a clob field using a prepared statment:
Clob srcClob = (Clob)value;
Clob tgtClob = stmt.getConnection().createClob();
tgtClob.setString(1, srcClob.getSubString(1, (int)srcClob.length()));
stmt.setClob(icol, tgtClob);