Skip to content

Instantly share code, notes, and snippets.

https://play.google.com/store/apps/details?id=org.akvo.caddisfly
@zuhdil
zuhdil / tmux.conf
Last active October 28, 2024 01:50
# enable 256 colors
set -g default-terminal "screen-256color"
# window and pane index start from 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# notify something happens on other window
setw -g monitor-activity on
set -g visual-activity on
"" Plugins ===================================================================
" prevent loading vimball
let g:loaded_vimballPlugin=1
let g:loaded_vimball=1
" automatically install vim-plug
let s:has_bundle=1
if !filereadable(expand("~/.config/nvim/autoload/plug.vim"))
echo "Installing vim-plug..."
echo ""
set nocompatible " choose no compatibility with legacy vi
syntax on
filetype plugin indent on " load file type plugins + indentation
set encoding=utf-8
set showcmd " display incomplete commands
set hidden " allow buffer switching without saving
set nobackup " backups are nice if it's not cluttering working dir,
" and you should use VCS (git, hg, ...) for it anyway!
if has('wildmenu')
set wildmenu " show list instead of just completing
@zuhdil
zuhdil / reset_sequence.sql
Created June 14, 2013 08:04
Procedure to reset sequence in oracle dbms.
create or replace
procedure reset_sequence(p_seq in varchar2)
is
l_value number;
begin
-- Select the next value of the sequence
execute immediate
'select ' || p_seq ||
'.nextval from dual' INTO l_value;
@zuhdil
zuhdil / disable_ref_constraints.sql
Created June 14, 2013 07:48
Procedure to disable reference constraints in oracle dbms.
create or replace
procedure disable_ref_constraints (p_ref_name in varchar2)
is
begin
for cur_rec in (select table_name, constraint_name
from user_constraints
where r_constraint_name = p_ref_name
and status = 'ENABLED')
loop
execute immediate 'alter table ' || cur_rec.table_name
@zuhdil
zuhdil / cyclecolorscheme.vim
Created June 9, 2013 05:55
Automatically cycle vim colorschemes
" Automatically cycle colorschemes
"
" usage
" :CycleColorscheme sleep colorschemes
"
" note: use <Ctrl-C> to quit cycling
"
" example
" :CycleColorscheme 2 slate,torte,darkblue,delek
"