Skip to content

Instantly share code, notes, and snippets.

@yitsup2u
Last active May 8, 2018 07:11
Show Gist options
  • Save yitsup2u/9db65f8cf82a1b4525aa to your computer and use it in GitHub Desktop.
Save yitsup2u/9db65f8cf82a1b4525aa to your computer and use it in GitHub Desktop.
Favorite utility & configs
받을 때 주의사항! linux상에서 '$wget raw-file-link' 형태로 받아야 안깨진다!
# $Id: screenrc,v 1.15 2003/10/08 11:39:03 zal Exp $
#
# /etc/screenrc
#
# This is the system wide screenrc.
#
# You can use this file to change the default behavior of screen system wide
# or copy it to ~/.screenrc and use it as a starting point for your own
# settings.
#
# Commands in this file are used to set options, bind screen functions to
# keys, redefine terminal capabilities, and to automatically establish one or
# more windows at the beginning of your screen session.
#
# This is not a comprehensive list of options, look at the screen manual for
# details on everything that you can put in this file.
#
# ------------------------------------------------------------------------------
# SCREEN SETTINGS
# ------------------------------------------------------------------------------
startup_message off
#nethack on
#defflow on # will force screen to process ^S/^Q
deflogin on
#autodetach off
# turn visual bell off
vbell off
#vbell_msg " Wuff ---- Wuff!! "
# define a bigger scrollback, default is 100 lines
#defscrollback 1024
defscrollback 65536
# ------------------------------------------------------------------------------
# SCREEN KEYBINDINGS
# ------------------------------------------------------------------------------
# Remove some stupid / dangerous key bindings
bind ^k
#bind L
bind ^\
# Make them better
#bind \\ quit
bind K kill
bind I login on
bind O login off
bind } history
# doesn't use xoff and xon so change it/
bind s split
bind ^s split
bind q only
bind ^q only
# <C-t> for new tab
#bindkey "\024" screen 1
bindkey ^t screen
bindkey ^n screen
bindkey ^[n screen
# for alt right and left arrows
bindkey OC next
bindkey OD prev
# for alt PageUp/PageDown
#bindkey [5~ next
#bindkey [6~ prev
# Shift+Tab to next
#bindkey  next
# Alt-Number for selecting
bindkey 1 select 0
bindkey 2 select 1
bindkey 3 select 2
bindkey 4 select 3
bindkey 5 select 4
# to use F-Key in normal. dunno why it doesn't work normally.
bindkey [11~ stuff \033OP
bindkey [12~ stuff \033OQ
bindkey [13~ stuff \033OR
bindkey [14~ stuff \033OS
# F-Key for selecting
#bindkey [11~ select 0 # in PuTTY default
#bindkey [12~ select 1
#bindkey [13~ select 2
#bindkey [14~ select 3
#bindkey [15~ select 4
#bindkey -k k1 select 0 # in Xterm
#bindkey -k k2 select 1
#bindkey -k k3 select 2
#bindkey -k k4 select 3
#bindkey -k k5 select 4
# An example of a "screen scraper" which will launch urlview on the current
# screen window
#
#bind ^B eval "hardcopy_append off" "hardcopy -h $HOME/.screen-urlview" "screen urlview $HOME/.screen-urlview"
# ------------------------------------------------------------------------------
# TERMINAL SETTINGS
# ------------------------------------------------------------------------------
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M
# turn sending of screen messages to hardstatus off
hardstatus off
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo xterm*|rxvt*|kterm*|Eterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
# use this for the hard status string
hardstatus string "%h%? users: %u%?"
# An alternative hardstatus to display a bar at the bottom listing the# windownames and highlighting the current windowname in blue. (This is only
# enabled if there is no hardstatus setting for your terminal)
#
#hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
#hardstatus alwayslastline "%{.bW}%-Lw%{.rW}%n*%f %t%{-}%+Lw %= %c ${USER}@%H"
hardstatus alwayslastline "%{.bW}%-Lw%{.rW}%n*%f %t%{-}%+Lw %= ${USER}@%H"
caption splitonly "%{.bb}%-Lw%{.rW}%n*%f %t%{-}%+Lw %="
#hardstatus alwayslastline "%= %3n %t%? [%h]%? %="
# set these terminals up to be 'optimal' instead of vt100
#termcapinfo xterm*|linux*|rxvt*|Eterm* OP
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E>
# (This fixes the "Aborted because of window size change" konsole symptoms found
# in bug #134198)
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'
# To get screen to add lines to xterm's scrollback buffer, uncomment the
# following termcapinfo line which tells xterm to use the normal screen buffer
# (which has scrollback), not the alternate screen buffer.
#
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Enable non-blocking mode to better cope with flaky ssh connections.
defnonblock 5
#shelltitle "$ |bash"
# ------------------------------------------------------------------------------
# STARTUP SCREENS
# ------------------------------------------------------------------------------
# Example of automatically running some programs in windows on screen startup.
#
# The following will open top in the first window, an ssh session to monkey
# in the next window, and then open mutt and tail in windows 8 and 9
# respectively.
#
# screen top
# screen -t monkey ssh monkey
# screen -t mail 8 mutt
# screen -t daemon 9 tail -f /var/log/daemon.log
"favorite vim configuration
"place this to user root dir ~
set nu
set hlsearch
set ts=4
set sw=4
set et
set nobackup
set smartindent
syntax on
set showmatch
map <F12> :Tlist<cr>
set mouse=a
set laststatus=2
au BufNewFile,BufRead *.aj, setf aj
" Vim syntax file
" Language: AspectJ
" Maintainer: Therapon Skotiniotis<skotthe@ccs.neu.edu>
" Last Change: 2002 Oct 28
"
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" source the java.vim file
if version < 600
source <sfile>:p:h/java.vim
else
runtime! syntax/java.vim
endif
unlet b:current_syntax
" remove the javaError for .. in aspectJ
syn clear javaError
syn match ajError "<<<\|=>\|<>\|||=\|&&=\|[^-]->\|\*\/"
syn keyword ajAspectDef aspect priviledged dominates perthis pertarget
syn keyword ajPointcut pointcut
syn keyword ajAdviceDecl before after around returning throwing proceed
syn keyword ajIntroductions declare soft error warning parents
syn keyword ajPointcuts call execution initialization staticinitialization get set handler within withincode cflow cflowbelow target args
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_css_syn_inits")
if version < 508
let did_css_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink ajPointcuts Function
HiLink ajAspectDef Type
HiLink ajPointcut Type
HiLink ajAdviceDecl Statement
HiLink ajIntroductions Statement
HiLink ajPointcuts Statement
HiLink ajError Error
delcommand HiLink
endif
let b:current_syntax = "aj"
taglist
http://vim.sourceforge.net/scripts/script.php?script_id=273
toggle_comment
http://www.vim.org/scripts/script.php?script_id=3912
Download script-through files with wget
wget -O file.rename http://~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment