initial commit
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
.DS_Store
|
||||
tmp*
|
||||
.netrwhist
|
||||
.swp
|
||||
60
.gitmodules
vendored
Normal file
60
.gitmodules
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
[submodule "vim/bundle/vim-pathogen"]
|
||||
path = vim/bundle/vim-pathogen
|
||||
url = https://github.com/tpope/vim-pathogen.git
|
||||
[submodule "vim/bundle/ctrlp.vim"]
|
||||
path = vim/bundle/ctrlp.vim
|
||||
url = https://github.com/kien/ctrlp.vim.git
|
||||
[submodule "vim/bundle/ack.vim"]
|
||||
path = vim/bundle/ack.vim
|
||||
url = https://github.com/mileszs/ack.vim.git
|
||||
[submodule "vim/bundle/nerdcommenter"]
|
||||
path = vim/bundle/nerdcommenter
|
||||
url = https://github.com/scrooloose/nerdcommenter.git
|
||||
[submodule "vim/bundle/nerdtree"]
|
||||
path = vim/bundle/nerdtree
|
||||
url = https://github.com/scrooloose/nerdtree.git
|
||||
[submodule "vim/bundle/supertab"]
|
||||
path = vim/bundle/supertab
|
||||
url = https://github.com/ervandew/supertab.git
|
||||
[submodule "vim/bundle/vim-fugitive"]
|
||||
path = vim/bundle/vim-fugitive
|
||||
url = https://github.com/tpope/vim-fugitive.git
|
||||
[submodule "vim/bundle/gundo.vim"]
|
||||
path = vim/bundle/gundo.vim
|
||||
url = https://github.com/sjl/gundo.vim.git
|
||||
[submodule "vim/bundle/vim-endwise"]
|
||||
path = vim/bundle/vim-endwise
|
||||
url = https://github.com/tpope/vim-endwise.git
|
||||
[submodule "vim/bundle/vim-ruby"]
|
||||
path = vim/bundle/vim-ruby
|
||||
url = https://github.com/vim-ruby/vim-ruby.git
|
||||
[submodule "vim/bundle/vim-rails"]
|
||||
path = vim/bundle/vim-rails
|
||||
url = https://github.com/tpope/vim-rails.git
|
||||
[submodule "vim/bundle/vim-surround"]
|
||||
path = vim/bundle/vim-surround
|
||||
url = https://github.com/tpope/vim-surround.git
|
||||
[submodule "vim/bundle/vimwiki"]
|
||||
path = vim/bundle/vimwiki
|
||||
url = https://github.com/vimwiki/vimwiki.git
|
||||
[submodule "vim/bundle/vim-coffee-script"]
|
||||
path = vim/bundle/vim-coffee-script
|
||||
url = https://github.com/kchmck/vim-coffee-script.git
|
||||
[submodule "vim/bundle/vim-cucumber"]
|
||||
path = vim/bundle/vim-cucumber
|
||||
url = https://github.com/tpope/vim-cucumber.git
|
||||
[submodule "vim/bundle/vim-haml"]
|
||||
path = vim/bundle/vim-haml
|
||||
url = https://github.com/tpope/vim-haml.git
|
||||
[submodule "vim/bundle/vim-mustache-handlebars"]
|
||||
path = vim/bundle/vim-mustache-handlebars
|
||||
url = https://github.com/mustache/vim-mustache-handlebars.git
|
||||
[submodule "vim/bundle/vim-javascript"]
|
||||
path = vim/bundle/vim-javascript
|
||||
url = https://github.com/pangloss/vim-javascript.git
|
||||
[submodule "vim/bundle/yaml-vim"]
|
||||
path = vim/bundle/yaml-vim
|
||||
url = https://github.com/ingydotnet/yaml-vim.git
|
||||
[submodule "vim/bundle/delimitMate"]
|
||||
path = vim/bundle/delimitMate
|
||||
url = https://github.com/Raimondi/delimitMate.git
|
||||
8
NERDTreeBookmarks
Normal file
8
NERDTreeBookmarks
Normal file
@@ -0,0 +1,8 @@
|
||||
relaunch /Users/michi/Documents/workspace_ruby/HRZ/fiona-uniffm
|
||||
cgi /Users/michi/Documents/workspace_ruby/HRZ/cgi-antrag
|
||||
hrz /Users/michi/Documents/workspace_ruby/HRZ
|
||||
fiona /Users/michi/Documents/workspace_ruby/HRZ/fiona-uniffm
|
||||
root /Users/michi
|
||||
ruby /Users/michi/Documents/workspace_ruby
|
||||
web /Users/michi/Documents/workspace_ruby/HRZ/Relaunch/web_uni-frankfurt_de
|
||||
|
||||
6
README.md
Normal file
6
README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
zlorfi's dotfiles
|
||||
=================
|
||||
|
||||
* copy to your ~ ($HOME)
|
||||
* create symlinks via the `make_my_dotfiles.sh` script
|
||||
* run ```git submodule init && git submodule update``` before starting vim
|
||||
19
gvimrc
Normal file
19
gvimrc
Normal file
@@ -0,0 +1,19 @@
|
||||
" Copy to ~/.gvimrc or ~/_gvimrc.
|
||||
|
||||
"set guifont=Menlo\ Regular:h14
|
||||
set guifont=Source\ Code\ Pro:h16
|
||||
set antialias " MacVim: smooth fonts.
|
||||
set encoding=utf-8 " Use UTF-8 everywhere.
|
||||
set guioptions-=T " Hide toolbar.
|
||||
set guioptions-=L " Hide left scrollbar
|
||||
set guioptions-=l
|
||||
set guioptions-=r " Don't show right scrollbar
|
||||
set background=light " Background.
|
||||
set lines=50 columns=150 " Window dimensions.
|
||||
"set fullscreen
|
||||
set fuoptions=maxvert,maxhorz
|
||||
set transp=1
|
||||
colorscheme molokai
|
||||
|
||||
"set cmdheight=2
|
||||
|
||||
50
irbrc
Normal file
50
irbrc
Normal file
@@ -0,0 +1,50 @@
|
||||
#$LOAD_PATH << File.expand_path('~/.ruby')
|
||||
|
||||
# Make gems available
|
||||
require 'rubygems'
|
||||
require 'irb/completion'
|
||||
|
||||
# Save history
|
||||
IRB.conf[:SAVE_HISTORY] = 1500
|
||||
IRB.conf[:HISTORY_FILE] = File.expand_path('~/.irb_history')
|
||||
|
||||
# Automatic Indentation
|
||||
IRB.conf[:AUTO_INDENT] = true
|
||||
|
||||
# Load the readline module.
|
||||
IRB.conf[:USE_READLINE] = true
|
||||
|
||||
# Remove the annoying irb(main):001:0 and replace with >>
|
||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||
|
||||
begin
|
||||
require 'interactive_editor'
|
||||
rescue LoadError => err
|
||||
warn "Couldn't load interactive_editor: #{err}"
|
||||
end
|
||||
|
||||
begin
|
||||
require 'awesome_print'
|
||||
AwesomePrint.irb!
|
||||
rescue LoadError => err
|
||||
warn "Couldn't load awesome_print: #{err}"
|
||||
end
|
||||
## Enable wirble
|
||||
#require 'wirble'
|
||||
#Wirble.init
|
||||
#
|
||||
## Enable colored output
|
||||
#Wirble.colorize
|
||||
|
||||
# load rails stuff?
|
||||
# load (File.dirname(__FILE__) + '/.railsrc') if $0 == 'irb' && ENV['RAILS_ENV']
|
||||
|
||||
script_console_running = ENV.include?('RAILS_ENV') && IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers')
|
||||
rails_running = ENV.include?('RAILS_ENV') && !(IRB.conf[:LOAD_MODULES] && IRB.conf[:LOAD_MODULES].include?('console_with_helpers'))
|
||||
irb_standalone_running = !script_console_running && !rails_running
|
||||
|
||||
if script_console_running
|
||||
require 'logger'
|
||||
Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT))
|
||||
end
|
||||
|
||||
10
jumprc
Normal file
10
jumprc
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
toner: /Users/michi/Documents/workspace_ruby/HRZ/Tonerverwaltung
|
||||
cgi: /Users/michi/Documents/workspace_ruby/HRZ/cgi-antrag
|
||||
dl: /Users/michi/Downloads
|
||||
ruby: /Users/michi/Documents/workspace_ruby
|
||||
misc: /Users/michi/Documents/workspace_misc
|
||||
node: /Users/michi/Documents/workspace_nodejs
|
||||
hrz: /Users/michi/Documents/workspace_ruby/HRZ
|
||||
relaunch: /Users/michi/Documents/workspace_ruby/HRZ/fiona-uniffm
|
||||
fiona: /Users/michi/Documents/workspace_ruby/HRZ/fiona-uniffm
|
||||
29
make_my_dotfiles.sh
Executable file
29
make_my_dotfiles.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Generate symlinks for files
|
||||
for i in gemrc gvimrc irbrc jumprc NERDTreeBookmarks screenrc vimrc zshrc
|
||||
do
|
||||
if [ ! -f $HOME/.$i ]
|
||||
then
|
||||
ln -s $HOME/dotfiles/$i $HOME/.$i
|
||||
else
|
||||
echo Symlink $HOME/.$i already exists
|
||||
fi
|
||||
done
|
||||
|
||||
for j in vim zsh
|
||||
do
|
||||
if [ ! -d $HOME/.$j ]
|
||||
then
|
||||
ln -s $HOME/dotfiles/$j $HOME/.$j
|
||||
else
|
||||
echo Symlink $HOME/.$j already exists
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -d $HOME/.vim/tmp ]
|
||||
then
|
||||
mkdir $HOME/.vim/tmp
|
||||
else
|
||||
echo tmp folder $HOME/.vim/tmp already exists
|
||||
fi
|
||||
7
screenrc
Normal file
7
screenrc
Normal file
@@ -0,0 +1,7 @@
|
||||
shell -${SHELL}
|
||||
caption always "%{= kc}%H (system load: %l)%-21=%{= .m}%D %d.%m.%Y %0c"
|
||||
defscrollback 1024
|
||||
startup_message off
|
||||
hardstatus on
|
||||
hardstatus alwayslastline
|
||||
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@
|
||||
85
tmux.conf
Normal file
85
tmux.conf
Normal file
@@ -0,0 +1,85 @@
|
||||
# use vi mode
|
||||
set -g mode-keys vi
|
||||
|
||||
# remap tmux
|
||||
set -g prefix C-a
|
||||
unbind C-b
|
||||
bind C-a send-prefix
|
||||
|
||||
# sane scrolling
|
||||
set -g mode-mouse on
|
||||
|
||||
#setting the delay between prefix and command
|
||||
set -sg escape-time 1
|
||||
|
||||
# start window index of 1 instead of 0
|
||||
set-option -g base-index 1
|
||||
|
||||
# Start panes at 1 instead of 0. tmux 1.6 only
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Status line left side
|
||||
set -g status-left-length 40
|
||||
set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
|
||||
set -g status-utf8 on
|
||||
|
||||
# Status line right side
|
||||
# 15% | 28 Nov 18:15
|
||||
set -g status-right '#[fg=blue]%d %b %R'
|
||||
|
||||
# Update the status bar every sixty seconds
|
||||
set -g status-interval 30
|
||||
|
||||
# Center the window list
|
||||
set -g status-justify centre
|
||||
|
||||
# default statusbar colors
|
||||
set -g status-fg white
|
||||
set -g status-bg default
|
||||
set -g status-attr bright
|
||||
|
||||
# default window title colors
|
||||
set-window-option -g window-status-fg white
|
||||
set-window-option -g window-status-bg default
|
||||
set-window-option -g window-status-attr dim
|
||||
|
||||
# active window title colors
|
||||
set-window-option -g window-status-current-fg white
|
||||
set-window-option -g window-status-current-bg default
|
||||
set-window-option -g window-status-current-attr bright
|
||||
|
||||
# reload config
|
||||
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||||
|
||||
# auto window rename
|
||||
set-window-option -g automatic-rename
|
||||
|
||||
# enable activity alerts
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
# splitting panes
|
||||
bind _ split-window -h
|
||||
bind - split-window -v
|
||||
|
||||
# set correct term
|
||||
set -g default-terminal xterm
|
||||
|
||||
# easily toggle synchronization (mnemonic: e is for echo)
|
||||
bind e setw synchronize-panes on
|
||||
bind E setw synchronize-panes off
|
||||
|
||||
# moving between panes
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# Pane resizing
|
||||
bind -r H resize-pane -L 5
|
||||
bind -r J resize-pane -D 5
|
||||
bind -r K resize-pane -U 5
|
||||
bind -r L resize-pane -R 5
|
||||
|
||||
# Mac OS copy&paste
|
||||
set-option -g default-command "reattach-to-user-namespace -l zsh"
|
||||
1
vim/bundle/ack.vim
Submodule
1
vim/bundle/ack.vim
Submodule
Submodule vim/bundle/ack.vim added at f183a345a0
1
vim/bundle/ctrlp.vim
Submodule
1
vim/bundle/ctrlp.vim
Submodule
Submodule vim/bundle/ctrlp.vim added at b5d3fe66a5
1
vim/bundle/delimitMate
Submodule
1
vim/bundle/delimitMate
Submodule
Submodule vim/bundle/delimitMate added at a1f21e8ef5
1
vim/bundle/gundo.vim
Submodule
1
vim/bundle/gundo.vim
Submodule
Submodule vim/bundle/gundo.vim added at 3975ac8715
1
vim/bundle/nerdcommenter
Submodule
1
vim/bundle/nerdcommenter
Submodule
Submodule vim/bundle/nerdcommenter added at 0b3d928dce
1
vim/bundle/nerdtree
Submodule
1
vim/bundle/nerdtree
Submodule
Submodule vim/bundle/nerdtree added at b0bb781fc7
1
vim/bundle/supertab
Submodule
1
vim/bundle/supertab
Submodule
Submodule vim/bundle/supertab added at 7a32e0866b
1
vim/bundle/vim-coffee-script
Submodule
1
vim/bundle/vim-coffee-script
Submodule
Submodule vim/bundle/vim-coffee-script added at 18c68524ab
1
vim/bundle/vim-cucumber
Submodule
1
vim/bundle/vim-cucumber
Submodule
Submodule vim/bundle/vim-cucumber added at 9e686ad36d
1
vim/bundle/vim-endwise
Submodule
1
vim/bundle/vim-endwise
Submodule
Submodule vim/bundle/vim-endwise added at 1e651aafc7
1
vim/bundle/vim-fugitive
Submodule
1
vim/bundle/vim-fugitive
Submodule
Submodule vim/bundle/vim-fugitive added at 8f0b8edfbd
1
vim/bundle/vim-haml
Submodule
1
vim/bundle/vim-haml
Submodule
Submodule vim/bundle/vim-haml added at 33279476a6
1
vim/bundle/vim-javascript
Submodule
1
vim/bundle/vim-javascript
Submodule
Submodule vim/bundle/vim-javascript added at 7e28dbd4e0
1
vim/bundle/vim-mustache-handlebars
Submodule
1
vim/bundle/vim-mustache-handlebars
Submodule
Submodule vim/bundle/vim-mustache-handlebars added at b914a22331
1
vim/bundle/vim-pathogen
Submodule
1
vim/bundle/vim-pathogen
Submodule
Submodule vim/bundle/vim-pathogen added at 1270dceb1f
1
vim/bundle/vim-rails
Submodule
1
vim/bundle/vim-rails
Submodule
Submodule vim/bundle/vim-rails added at ec52270523
1
vim/bundle/vim-ruby
Submodule
1
vim/bundle/vim-ruby
Submodule
Submodule vim/bundle/vim-ruby added at d1f747115a
1
vim/bundle/vim-surround
Submodule
1
vim/bundle/vim-surround
Submodule
Submodule vim/bundle/vim-surround added at 42e9b46e7a
1
vim/bundle/vimwiki
Submodule
1
vim/bundle/vimwiki
Submodule
Submodule vim/bundle/vimwiki added at 5faf884dc6
1
vim/bundle/yaml-vim
Submodule
1
vim/bundle/yaml-vim
Submodule
Submodule vim/bundle/yaml-vim added at 963d1351b5
217
vim/colors/molokai.vim
Executable file
217
vim/colors/molokai.vim
Executable file
@@ -0,0 +1,217 @@
|
||||
" Vim color file
|
||||
"
|
||||
" Author: Tomas Restrepo <tomas@winterdom.com>
|
||||
"
|
||||
" Note: Based on the monokai theme for textmate
|
||||
" by Wimer Hazenberg and its darker variant
|
||||
" by Hamish Stuart Macpherson
|
||||
"
|
||||
|
||||
hi clear
|
||||
|
||||
set background=dark
|
||||
if version > 580
|
||||
" no guarantees for version 5.8 and below, but this makes it stop
|
||||
" complaining
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
endif
|
||||
let g:colors_name="molokai"
|
||||
|
||||
if exists("g:molokai_original")
|
||||
let s:molokai_original = g:molokai_original
|
||||
else
|
||||
let s:molokai_original = 0
|
||||
endif
|
||||
|
||||
|
||||
hi Boolean guifg=#AE81FF
|
||||
hi Character guifg=#E6DB74
|
||||
hi Number guifg=#AE81FF
|
||||
hi String guifg=#E6DB74
|
||||
hi Conditional guifg=#F92672 gui=bold
|
||||
hi Constant guifg=#AE81FF gui=bold
|
||||
hi Cursor guifg=#000000 guibg=#F8F8F0
|
||||
hi Debug guifg=#BCA3A3 gui=bold
|
||||
hi Define guifg=#66D9EF
|
||||
hi Delimiter guifg=#8F8F8F
|
||||
hi DiffAdd guibg=#13354A
|
||||
hi DiffChange guifg=#89807D guibg=#4C4745
|
||||
hi DiffDelete guifg=#960050 guibg=#1E0010
|
||||
hi DiffText guibg=#4C4745 gui=italic,bold
|
||||
|
||||
hi Directory guifg=#A6E22E gui=bold
|
||||
hi Error guifg=#960050 guibg=#1E0010
|
||||
hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
|
||||
hi Exception guifg=#A6E22E gui=bold
|
||||
hi Float guifg=#AE81FF
|
||||
hi FoldColumn guifg=#465457 guibg=#000000
|
||||
hi Folded guifg=#465457 guibg=#000000
|
||||
hi Function guifg=#A6E22E
|
||||
hi Identifier guifg=#FD971F
|
||||
hi Ignore guifg=#808080 guibg=bg
|
||||
hi IncSearch guifg=#C4BE89 guibg=#000000
|
||||
|
||||
hi Keyword guifg=#F92672 gui=bold
|
||||
hi Label guifg=#E6DB74 gui=none
|
||||
hi Macro guifg=#C4BE89 gui=italic
|
||||
hi SpecialKey guifg=#66D9EF gui=italic
|
||||
|
||||
hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
|
||||
hi ModeMsg guifg=#E6DB74
|
||||
hi MoreMsg guifg=#E6DB74
|
||||
hi Operator guifg=#F92672
|
||||
|
||||
" complete menu
|
||||
hi Pmenu guifg=#66D9EF guibg=#000000
|
||||
hi PmenuSel guibg=#808080
|
||||
hi PmenuSbar guibg=#080808
|
||||
hi PmenuThumb guifg=#66D9EF
|
||||
|
||||
hi PreCondit guifg=#A6E22E gui=bold
|
||||
hi PreProc guifg=#A6E22E
|
||||
hi Question guifg=#66D9EF
|
||||
hi Repeat guifg=#F92672 gui=bold
|
||||
hi Search guifg=#FFFFFF guibg=#455354
|
||||
" marks column
|
||||
hi SignColumn guifg=#A6E22E guibg=#232526
|
||||
hi SpecialChar guifg=#F92672 gui=bold
|
||||
hi SpecialComment guifg=#465457 gui=bold
|
||||
hi Special guifg=#66D9EF guibg=bg gui=italic
|
||||
hi SpecialKey guifg=#888A85 gui=italic
|
||||
if has("spell")
|
||||
hi SpellBad guisp=#FF0000 gui=undercurl
|
||||
hi SpellCap guisp=#7070F0 gui=undercurl
|
||||
hi SpellLocal guisp=#70F0F0 gui=undercurl
|
||||
hi SpellRare guisp=#FFFFFF gui=undercurl
|
||||
endif
|
||||
hi Statement guifg=#F92672 gui=bold
|
||||
hi StatusLine guifg=#455354 guibg=fg
|
||||
hi StatusLineNC guifg=#808080 guibg=#080808
|
||||
hi StorageClass guifg=#FD971F gui=italic
|
||||
hi Structure guifg=#66D9EF
|
||||
hi Tag guifg=#F92672 gui=italic
|
||||
hi Title guifg=#ef5939
|
||||
hi Todo guifg=#FFFFFF guibg=bg gui=bold
|
||||
|
||||
hi Typedef guifg=#66D9EF
|
||||
hi Type guifg=#66D9EF gui=none
|
||||
hi Underlined guifg=#808080 gui=underline
|
||||
|
||||
hi VertSplit guifg=#808080 guibg=#080808 gui=bold
|
||||
hi VisualNOS guibg=#403D3D
|
||||
hi Visual guibg=#403D3D
|
||||
hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
|
||||
hi WildMenu guifg=#66D9EF guibg=#000000
|
||||
|
||||
if s:molokai_original == 1
|
||||
hi Normal guifg=#F8F8F2 guibg=#272822
|
||||
hi Comment guifg=#75715E
|
||||
hi CursorLine guibg=#3E3D32
|
||||
hi CursorColumn guibg=#3E3D32
|
||||
hi LineNr guifg=#BCBCBC guibg=#3B3A32
|
||||
hi NonText guifg=#BCBCBC guibg=#3B3A32
|
||||
else
|
||||
hi Normal guifg=#F8F8F2 guibg=#1B1D1E
|
||||
hi Comment guifg=#465457
|
||||
hi CursorLine guibg=#293739
|
||||
hi CursorColumn guibg=#293739
|
||||
hi LineNr guifg=#BCBCBC guibg=#232526
|
||||
hi NonText guifg=#BCBCBC guibg=#232526
|
||||
end
|
||||
|
||||
"
|
||||
" Support for 256-color terminal
|
||||
"
|
||||
if &t_Co > 255
|
||||
hi Boolean ctermfg=135
|
||||
hi Character ctermfg=144
|
||||
hi Number ctermfg=135
|
||||
hi String ctermfg=144
|
||||
hi Conditional ctermfg=161 cterm=bold
|
||||
hi Constant ctermfg=135 cterm=bold
|
||||
hi Cursor ctermfg=16 ctermbg=253
|
||||
hi Debug ctermfg=225 cterm=bold
|
||||
hi Define ctermfg=81
|
||||
hi Delimiter ctermfg=241
|
||||
|
||||
hi DiffAdd ctermbg=24
|
||||
hi DiffChange ctermfg=181 ctermbg=239
|
||||
hi DiffDelete ctermfg=162 ctermbg=53
|
||||
hi DiffText ctermbg=102 cterm=bold
|
||||
|
||||
hi Directory ctermfg=118 cterm=bold
|
||||
hi Error ctermfg=219 ctermbg=89
|
||||
hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
|
||||
hi Exception ctermfg=118 cterm=bold
|
||||
hi Float ctermfg=135
|
||||
hi FoldColumn ctermfg=67 ctermbg=16
|
||||
hi Folded ctermfg=67 ctermbg=16
|
||||
hi Function ctermfg=118
|
||||
hi Identifier ctermfg=208 cterm=none
|
||||
hi Ignore ctermfg=244 ctermbg=232
|
||||
hi IncSearch ctermfg=193 ctermbg=16
|
||||
|
||||
hi Keyword ctermfg=161 cterm=bold
|
||||
hi Label ctermfg=229 cterm=none
|
||||
hi Macro ctermfg=193
|
||||
hi SpecialKey ctermfg=81
|
||||
|
||||
hi MatchParen ctermfg=16 ctermbg=208 cterm=bold
|
||||
hi ModeMsg ctermfg=229
|
||||
hi MoreMsg ctermfg=229
|
||||
hi Operator ctermfg=161
|
||||
|
||||
" complete menu
|
||||
hi Pmenu ctermfg=81 ctermbg=16
|
||||
hi PmenuSel ctermbg=244
|
||||
hi PmenuSbar ctermbg=232
|
||||
hi PmenuThumb ctermfg=81
|
||||
|
||||
hi PreCondit ctermfg=118 cterm=bold
|
||||
hi PreProc ctermfg=118
|
||||
hi Question ctermfg=81
|
||||
hi Repeat ctermfg=161 cterm=bold
|
||||
hi Search ctermfg=253 ctermbg=66
|
||||
|
||||
" marks column
|
||||
hi SignColumn ctermfg=118 ctermbg=235
|
||||
hi SpecialChar ctermfg=161 cterm=bold
|
||||
hi SpecialComment ctermfg=245 cterm=bold
|
||||
hi Special ctermfg=81 ctermbg=232
|
||||
hi SpecialKey ctermfg=245
|
||||
|
||||
hi Statement ctermfg=161 cterm=bold
|
||||
hi StatusLine ctermfg=238 ctermbg=253
|
||||
hi StatusLineNC ctermfg=244 ctermbg=232
|
||||
hi StorageClass ctermfg=208
|
||||
hi Structure ctermfg=81
|
||||
hi Tag ctermfg=161
|
||||
hi Title ctermfg=166
|
||||
hi Todo ctermfg=231 ctermbg=232 cterm=bold
|
||||
|
||||
hi Typedef ctermfg=81
|
||||
hi Type ctermfg=81 cterm=none
|
||||
hi Underlined ctermfg=244 cterm=underline
|
||||
|
||||
hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
|
||||
hi VisualNOS ctermbg=238
|
||||
hi Visual ctermbg=235
|
||||
hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
|
||||
hi WildMenu ctermfg=81 ctermbg=16
|
||||
|
||||
hi Normal ctermfg=252 ctermbg=233
|
||||
hi Comment ctermfg=59
|
||||
hi CursorLine ctermbg=234 cterm=none
|
||||
hi CursorColumn ctermbg=234
|
||||
hi LineNr ctermfg=250 ctermbg=234
|
||||
hi NonText ctermfg=250 ctermbg=234
|
||||
|
||||
" Special chars
|
||||
"Invisible character colors
|
||||
highlight NonText guifg=#4a4a59
|
||||
highlight SpecialKey guifg=#4a4a59
|
||||
|
||||
end
|
||||
16
vim/wiki/AES_de-encrypt.wiki
Normal file
16
vim/wiki/AES_de-encrypt.wiki
Normal file
@@ -0,0 +1,16 @@
|
||||
=AES=
|
||||
|
||||
==encrypt==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ openssl enc -aes-128-cbc -pass pass:secret -in file.txt -out file.txt.aes
|
||||
}}}
|
||||
|
||||
==decrypt==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ openssl enc -aes-128-cbc -d -pass pass:secret -in file.txt.aes
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
15
vim/wiki/Apple Mail.wiki
Normal file
15
vim/wiki/Apple Mail.wiki
Normal file
@@ -0,0 +1,15 @@
|
||||
=Apple Mail=
|
||||
|
||||
==Mailalias==
|
||||
* Mail.app schließen
|
||||
* ~/Library/Mail/V2/MailData/Accounts.plist öffnen
|
||||
* Eintrag _MailAccounts_ aufklappen
|
||||
* den richtigen Ornder (0, 1, 2, etc) rausfinden indem man auf die Einträge achtet
|
||||
* Ordner auswählen und _Add Item_ anklicken, mit dem Namen _EmailAliases_ mit Typ _Array_
|
||||
* diesen wiederum anklicken und mit _Add Item_ einen neuen Eintrag _Item 0_ erstellen vom Typ _Dictionary_
|
||||
* auswählen neuen Key mit _alias_ vom Typ _String_ und der gewünschten Adresse
|
||||
* im _Item 0_ neuen Eintrag mit _name_ als Item _String_ als Typ und dem gewünschtem Namen für den Alias
|
||||
* abspeichern, fertig.
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
104
vim/wiki/Install ZFS on Ubuntu.wiki
Normal file
104
vim/wiki/Install ZFS on Ubuntu.wiki
Normal file
@@ -0,0 +1,104 @@
|
||||
= Install ZFS on Ubuntu =
|
||||
|
||||
# Repos hinzufügen, unbedingt durchlaufen lassen!
|
||||
sudo -i
|
||||
apt-add-repository --yes ppa:zfs-native/daily
|
||||
apt-get update
|
||||
apt-get install debootstrap ubuntu-zfs
|
||||
# check to see zfs
|
||||
modprobe zfs
|
||||
dmesg | grep ZFS
|
||||
# -> ZFS: Loaded module v0.6.0.89-rc12, ZFS pool version 28, ZFS filesystem version 5
|
||||
cfdisk
|
||||
# 100MB bootable Partition mit Type BE
|
||||
# restlicher Platz mit Type BF
|
||||
# checken und anzeigen lassen
|
||||
fdisk -l /dev/disk/by-id/scsi-SATA_disk1
|
||||
# GRUB installieren auf part-1
|
||||
mke2fs -m 0 -L /boot/grub -j /dev/disk/by-id/scsi-SATA_disk1-part1
|
||||
# root pool erstellen
|
||||
zpool create rpool /dev/disk/by-id/scsi-SATA_disk1-part2
|
||||
zfs create rpool/ROOT
|
||||
zfs create rpool/ROOT/ubuntu-1
|
||||
zfs umount -a
|
||||
zfs set mountpoint=/ rpool/ROOT/ubuntu-1
|
||||
# Kompression einschalten
|
||||
zfs set compression=on rpool
|
||||
zpool set bootfs=rpool/ROOT/ubuntu-1 rpool
|
||||
zpool export rpool
|
||||
# Pool importieren
|
||||
zpool import -d /dev/disk/by-id -R /mnt rpool
|
||||
mkdir -p /mnt/boot/grub
|
||||
# part-1 beachten
|
||||
mount /dev/disk/by-id/scsi-SATA_disk1-part1 /mnt/boot/grub
|
||||
# Minimales System installieren
|
||||
debootstrap precise /mnt
|
||||
# einige Live-CD Inhalte kopieren
|
||||
cp /etc/hostname /mnt/etc/
|
||||
cp /etc/hosts /mnt/etc/
|
||||
# /mnt/etc/fstab editieren und part-1 hinzugügen
|
||||
vi /mnt/etc/fstab
|
||||
# -> /dev/disk/by-id/scsi-SATA_disk1-part1 /boot/grub auto defaults 0 1
|
||||
vi /mnt/etc/network/interfaces
|
||||
# -> # interfaces(5) file used by ifup(8) and ifdown(8)
|
||||
# -> auto lo
|
||||
# -> iface lo inet loopback
|
||||
# ->
|
||||
# -> auto eth0
|
||||
# -> iface eth0 inet dhcp
|
||||
mount --bind /dev /mnt/dev
|
||||
mount --bind /proc /mnt/proc
|
||||
mount --bind /sys /mnt/sys
|
||||
chroot /mnt /bin/bash --login
|
||||
# Install PPA support
|
||||
locale-gen en_US.UTF-8
|
||||
locale-gen de_DE.UTF-8
|
||||
apt-get update
|
||||
apt-get install ubuntu-minimal python-software-properties
|
||||
# im chroot ZFS installieren
|
||||
apt-add-repository --yes ppa:zfs-native/daily
|
||||
apt-add-repository --yes ppa:zfs-native/grub
|
||||
apt-get update
|
||||
apt-get install ubuntu-zfs
|
||||
apt-get install zfs-initramfs
|
||||
apt-get dist-upgrade
|
||||
# Rootpasswort setzten
|
||||
passwd root
|
||||
# Quellen editieren
|
||||
vi /ets/apt/sources.list
|
||||
# -> deb http://archive.ubuntu.com/ubuntu precise main universe
|
||||
apt-get update
|
||||
# verify ZFS
|
||||
grub-probe /
|
||||
# -> zfs
|
||||
ls /boot/grub/zfs*
|
||||
# -> /boot/grub/zfs.mod /boot/grub/zfsinfo.mod
|
||||
update-initramfs -c -k all
|
||||
# -> update-initramfs: Generating /boot/initrd.img-3.2.0-23-generic
|
||||
update-grub
|
||||
# -> Generating grub.cfg ...
|
||||
# -> Found linux image: /boot/vmlinuz-3.2.0-23-generic
|
||||
# -> Found initrd image: /boot/initrd.img-3.2.0-23-generic
|
||||
# -> done
|
||||
grep boot=zfs /boot/grub/grub.cfg
|
||||
# -> linux /ROOT/ubuntu-1/@/boot/vmlinuz-3.2.0-23-generic root=/dev/sda2 ro boot=zfs $bootfs quiet splash $vt_handoff
|
||||
# -> linux /ROOT/ubuntu-1/@/boot/vmlinuz-3.2.0-23-generic root=/dev/sda2 ro single nomodeset boot=zfs $bootfs
|
||||
|
||||
# MBR auf die Festplatte (keine Partition) schreiben
|
||||
grub-install $(readlink -f /dev/disk/by-id/scsi-SATA_disk1)
|
||||
# chroot verlassen
|
||||
exit
|
||||
# Live-CD umounten
|
||||
umount /mnt/boot/grub
|
||||
umount /mnt/dev
|
||||
umount /mnt/proc
|
||||
umount /mnt/sys
|
||||
zfs umount -a
|
||||
zpool export rpool
|
||||
# rebooten
|
||||
reboot
|
||||
# als root einloggen und xubuntu nachinstallieren
|
||||
apt-get install xubuntu-desktop
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
39
vim/wiki/Linux.wiki
Normal file
39
vim/wiki/Linux.wiki
Normal file
@@ -0,0 +1,39 @@
|
||||
=Linux=
|
||||
|
||||
==tr==
|
||||
Tabstops durch Leerzeichen ersetzten und nach einem erfolgreichen Umwandeln zurückschreiben
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ cat webserver.log07289 | tr '[:blank:]' ' ' > tmp.1 && mv tmp.1 webserver.log07289
|
||||
}}}
|
||||
|
||||
für eine Massenformatierung
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
for file
|
||||
do
|
||||
cat $file | tr '[:blank:]' ' ' > tmp.1 && mv tmp.1 $file || { echo "++$file "; exit; }
|
||||
done
|
||||
}}}
|
||||
|
||||
der Aufruf erfolgt dann mit
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ tr-all *
|
||||
}}}
|
||||
|
||||
==Alle Mitglieder einer Gruppe anzeigen==
|
||||
unter Linux:
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ getent group GRUPPE
|
||||
}}}
|
||||
|
||||
unter AIX:
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ lsgroup GRUPPE
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
40
vim/wiki/Lion.wiki
Normal file
40
vim/wiki/Lion.wiki
Normal file
@@ -0,0 +1,40 @@
|
||||
=Lion=
|
||||
|
||||
==Last Played Files nicht mehr anzeigen==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0
|
||||
defaults delete com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments
|
||||
defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
|
||||
|
||||
}}}
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
defaults write org.niltsh.MPlayerX NSRecentDocumentsLimit 0
|
||||
defaults delete org.niltsh.MPlayerX.LSSharedFileList RecentDocuments
|
||||
defaults write org.niltsh.MPlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
|
||||
|
||||
}}}
|
||||
|
||||
==Open Google Chrome==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
open /Applications/Google\ Chrome\ Canary.app --args --allow-running-insecure-content
|
||||
|
||||
}}}
|
||||
|
||||
==Remove X11==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
|
||||
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
|
||||
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz
|
||||
sudo pkgutil --forget org.macosforge.xquartz.pkg
|
||||
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
36
vim/wiki/PostgreSQL.wiki
Normal file
36
vim/wiki/PostgreSQL.wiki
Normal file
@@ -0,0 +1,36 @@
|
||||
=!PostreSQL=
|
||||
|
||||
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
|
||||
you may need to remove the previous version first. See:
|
||||
https://github.com/mxcl/homebrew/issues/issue/2510
|
||||
|
||||
To build plpython against a specific Python, set PYTHON prior to brewing:
|
||||
PYTHON=/usr/local/bin/python brew install postgresql
|
||||
See:
|
||||
http://www.postgresql.org/docs/9.0/static/install-procedure.html
|
||||
|
||||
|
||||
If this is your first install, create a database with:
|
||||
initdb /usr/local/var/postgres
|
||||
|
||||
If this is your first install, automatically load on login with:
|
||||
cp /usr/local/Cellar/postgresql/9.0.2/org.postgresql.postgres.plist ~/Library/LaunchAgents
|
||||
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
|
||||
|
||||
If this is an upgrade and you already have the org.postgresql.postgres.plist loaded:
|
||||
launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
|
||||
cp /usr/local/Cellar/postgresql/9.0.2/org.postgresql.postgres.plist ~/Library/LaunchAgents
|
||||
launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
|
||||
|
||||
Or start manually with:
|
||||
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
|
||||
|
||||
And stop with:
|
||||
pg_ctl -D /usr/local/var/postgres stop -s -m fast
|
||||
|
||||
If you want to install the postgres gem, including ARCHFLAGS is recommended:
|
||||
env ARCHFLAGS="-arch x86_64" gem install pg
|
||||
|
||||
To install gems without sudo, see the Homebrew wiki.
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
53
vim/wiki/RegEXP.wiki
Normal file
53
vim/wiki/RegEXP.wiki
Normal file
@@ -0,0 +1,53 @@
|
||||
=!RegEXP=
|
||||
|
||||
==Password policy==
|
||||
|
||||
at least
|
||||
* lower-case alphabetic character: [a-z]
|
||||
* upper-case alphabetic character: [A-Z]
|
||||
* decimal digit: [0-9]
|
||||
* one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
||||
|
||||
and 8 chars long
|
||||
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\\p{Punct})\\p{Graph}{8}
|
||||
}}}
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
{{{class="brush: java; toolbar: false;"
|
||||
import java.sql.SQLException;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
public class reg {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
* @throws SQLException
|
||||
* @throws ClassNotFoundException
|
||||
*/
|
||||
public static void main(String[] args) throws SQLException, ClassNotFoundException {
|
||||
Pattern p = Pattern.compile("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\\p{Punct})\\p{Graph}{8}");
|
||||
Matcher m = p.matcher("13a!56A2");
|
||||
boolean b = m.matches();
|
||||
System.out.println(b)
|
||||
}
|
||||
}
|
||||
}}}
|
||||
|
||||
==Delete foo==
|
||||
|
||||
lösche jede Zeile, welche eine Fileendung enhällt
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
(.*?)\.(.*)$
|
||||
}}}
|
||||
|
||||
das gleiche nur im Vim
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
:g/\.\(.*\)$/d
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
23
vim/wiki/Snow_Leopard.wiki
Normal file
23
vim/wiki/Snow_Leopard.wiki
Normal file
@@ -0,0 +1,23 @@
|
||||
=Snow Leopard=
|
||||
|
||||
==Disable Spotlight on all Volumes==
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
sudo mdutil -a -i off
|
||||
}}}
|
||||
|
||||
==Enable it again for the Volume Hive==
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
sudo mdutil -i on /Volumes/Hive
|
||||
}}}
|
||||
|
||||
==Reindex Spotlight==
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
sudo mdutil -E /Volumes/Hive
|
||||
}}}
|
||||
|
||||
==Disable dictionary search in Spotlight==
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
defaults write com.apple.spotlight DictionaryLookupEnabled NO
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
16
vim/wiki/avimerge.wiki
Normal file
16
vim/wiki/avimerge.wiki
Normal file
@@ -0,0 +1,16 @@
|
||||
=avimerge=
|
||||
|
||||
_avimerge_ ist im transcode Paket enthalten. Die Installation dauert sehr lange, da _MacOS_ anscheinend viele benötigten _Libraries_ nicht standardmäßig enthalten.
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ sudo port install transcode
|
||||
}}}
|
||||
|
||||
Mehrere Videoparts in eine Datei mergen
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ avimerge -o OutputFile.avi -i Input1.avi Input2.avi
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
16
vim/wiki/bash.wiki
Normal file
16
vim/wiki/bash.wiki
Normal file
@@ -0,0 +1,16 @@
|
||||
=bash=
|
||||
|
||||
encrypt
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ openssl enc -aes-128-cbc -pass pass:secret -in file.txt -out file.txt.aes
|
||||
}}}
|
||||
|
||||
decrypt
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ openssl enc -aes-128-cbc -d -pass pass:secret -in file.txt.aes
|
||||
}}}
|
||||
|
||||
|
||||
[[index|[Go home]]]
|
||||
60
vim/wiki/diskutil.wiki
Normal file
60
vim/wiki/diskutil.wiki
Normal file
@@ -0,0 +1,60 @@
|
||||
=diskutil=
|
||||
|
||||
==USB Stick formatieren==
|
||||
|
||||
Um einen USB-Stick als FAT32 zu formatieren, macht man also dies:
|
||||
|
||||
Stick in den USB-Port stecken. Ok, das war vorhersehbar.
|
||||
Terminal öffnen. (Wenn es nicht schon offen ist)
|
||||
Im Terminal eingeben:
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ diskutil list
|
||||
}}}
|
||||
|
||||
In der darauf erscheinenden Anzeige den Stick suchen. Bei mir tauchte er gerade als
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ /dev/disk3
|
||||
}}}
|
||||
|
||||
|
||||
| # | TYPE | NAME | SIZE | IDENTIFIER |
|
||||
|----+-----------------------+--------+-----------+------------|
|
||||
| 0: | GUID_partition_scheme | | *973.8 Mi | disk3 |
|
||||
| 1: | Microsoft Basic Data | POLLUX | 971.9 Mi | disk3s1 |
|
||||
|
||||
auf. Das “GUID_partition_scheme” schien dem PC nicht zu schmecken, denn der Stick liess sich dort nicht mounten.
|
||||
Wichtig für den nächsten Schritt ist der “IDENTIFIER” des Sticks, in diesem Fall “disk3″.
|
||||
|
||||
Nun kommt der magische Befehl:
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ diskutil partitionDisk /dev/disk3 1 MBRFormat FAT32 "POLLUX" 100%
|
||||
}}}
|
||||
|
||||
|
||||
Damit wird eine Partition “Pollux” auf dem Stick angelegt, die den zur Verfügung stehenden Platz benutzt und durch das “MBRFormat” ist er auch wirklich am PC les- und nutzbar.
|
||||
Einen Stick mit zwei gleich große Partitionen (namens “Hanni” und “Nanni” zb) könnte man mittels
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ diskutil partitionDisk /dev/disk3 2 MBRFormat FAT32 "HANNI" 50% FAT32 "NANNI" 50%
|
||||
}}}
|
||||
|
||||
|
||||
==USB Stick bootfähig machen mit einem Image==
|
||||
|
||||
schauen wie der USB Stick heißt
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ diskutil list
|
||||
$ diskutil unmountDisk /dev/diskN
|
||||
}}}
|
||||
|
||||
Image schreiben
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1024
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
15
vim/wiki/ffmpeg.wiki
Normal file
15
vim/wiki/ffmpeg.wiki
Normal file
@@ -0,0 +1,15 @@
|
||||
=ffmpeg=
|
||||
|
||||
==1080p to 720p==
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
ffmpeg -i "Renaissance.1080p.mkv" -vcodec libx264 -b 5120k -s 1280x720 -acodec libfaac -ab 192kb -ar 48000 -ac 2 -f mp4 -deinterlace -vpre medium -threads 0 -y "Renaissance.720p.mp4"
|
||||
}}}
|
||||
#ac = audio_channels (2 = Stereo, 6 = 5.1)
|
||||
|
||||
|
||||
==2pass encoding==
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
ffmpeg -i INPUT.avi -pass 1 -vcodec libx264 -vpre fast -b 5120k -threads 0 -f mp4 -an -y /dev/null && ffmpeg -i INPUT.avi -pass 2 -acodec libfaac -ab 192kb -ac 2 -vcodec libx264 -vpre fast -b 5120k -threads 0 OUTPUT.mp4
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
25
vim/wiki/flac2mp3.wiki
Normal file
25
vim/wiki/flac2mp3.wiki
Normal file
@@ -0,0 +1,25 @@
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
#!/bin/sh
|
||||
|
||||
FLAC_FILE=$1
|
||||
MP3_FILE=`echo ${FLAC_FILE} | sed 's/\.flac/.mp3/'`
|
||||
|
||||
metaflac --export-tags-to=/dev/stdout "${FLAC_FILE}" |
|
||||
sed -e 's/=/="/' -e 's/$/"/' > /tmp/tags-$$
|
||||
cat /tmp/tags-$$
|
||||
. /tmp/tags-$$
|
||||
rm /tmp/tags-$$
|
||||
|
||||
flac -dc "${FLAC_FILE}" |
|
||||
lame -h -b 192 \
|
||||
--tt "${Title}" \
|
||||
--tn "${Tracknumber}" \
|
||||
--ty "${Date}" \
|
||||
--ta "${Artist}" \
|
||||
--tl "${Album}" \
|
||||
--tg "${Genre}" \
|
||||
--add-id3v2 /dev/stdin "${MP3_FILE}"
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
11
vim/wiki/gems.wiki
Normal file
11
vim/wiki/gems.wiki
Normal file
@@ -0,0 +1,11 @@
|
||||
=GEMS=
|
||||
|
||||
==uninstall all gems==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
|
||||
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
31
vim/wiki/generate bootable USB stick.wiki
Normal file
31
vim/wiki/generate bootable USB stick.wiki
Normal file
@@ -0,0 +1,31 @@
|
||||
= generate bootable USB stick =
|
||||
|
||||
== convert ISO to IMG ==
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
|
||||
|
||||
}}}
|
||||
== insert USB stick an list all devices ==
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
disktuil list
|
||||
|
||||
}}}
|
||||
|
||||
== unmount USB stick ==
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
diskutil unmountDisk /dev/diskN
|
||||
|
||||
}}}
|
||||
|
||||
== write IMG to USB stick 'rdiskN' is the numer of the disk ==
|
||||
=== !! using /dev/rdisk instead of /dev/disk may be faster ===
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
|
||||
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
36
vim/wiki/hdiutil.wiki
Normal file
36
vim/wiki/hdiutil.wiki
Normal file
@@ -0,0 +1,36 @@
|
||||
=hdiutil=
|
||||
|
||||
==Mit verschlüsselten Images arbeiten==
|
||||
|
||||
Plattenplatz auf einem verschlüsseltem DiskImage gewinnen
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ hdiutil compact image.sparsebundle
|
||||
}}}
|
||||
|
||||
es vergrößern
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ hdiutil resize -size 460g UltraMobile.sparsebundle
|
||||
}}}
|
||||
|
||||
es mounten
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ hdiutil attach /Volumes/UltraMobile.sparsebundle
|
||||
}}}
|
||||
|
||||
und wieder auswerfen
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ hdiutil detach /Volumes/UltraMobile
|
||||
}}}
|
||||
|
||||
==verschlüsseltes Time Machine Backup über LAN==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ hdiutil create -size 200g -fs HFS+J -type SPARSEBUNDLE -volname "mskrynsk_macbook" Fry_0023123aa44a.sparsebundle
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
26
vim/wiki/index.wiki
Normal file
26
vim/wiki/index.wiki
Normal file
@@ -0,0 +1,26 @@
|
||||
=Michis Onlinebrain=
|
||||
|
||||
This is my private wiki because my brain has a limited stack size.
|
||||
|
||||
==Linkliste==
|
||||
* [[pdf_decrypt]]
|
||||
* [[avimerge]]
|
||||
* [[AES_de-encrypt]]
|
||||
* [[diskutil]]
|
||||
* [[hdiutil]]
|
||||
* [[Linux]]
|
||||
[[*]] [[Apple Mail]]
|
||||
* [[mp3_wrap]]
|
||||
* [[openssl]]
|
||||
* [[RegEXP]]
|
||||
* [[ssh-copy-id]]
|
||||
* [[tree]]
|
||||
* [[wma2mp3]]
|
||||
* [[flac2mp3]]
|
||||
* [[PostgreSQL]]
|
||||
* [[vim]]
|
||||
* [[gems]]
|
||||
* [[Snow_Leopard]]
|
||||
* [[ffmpeg]]
|
||||
* [[Lion]]
|
||||
* [[generate bootable USB stick]]
|
||||
22
vim/wiki/mp3_wrap.wiki
Normal file
22
vim/wiki/mp3_wrap.wiki
Normal file
@@ -0,0 +1,22 @@
|
||||
=mp3 wrap=
|
||||
|
||||
merge
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ mp3wrap tmp.mp3 *
|
||||
}}}
|
||||
|
||||
fix file duration
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ ffmpeg -i tmp_MP3WRAP.mp3 -acodec copy all.mp3 && rm tmp_MP3WRAP.mp3
|
||||
}}}
|
||||
|
||||
copy mp3 tags
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ id3cp 1.mp3 all.mp3
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
37
vim/wiki/openssl.wiki
Normal file
37
vim/wiki/openssl.wiki
Normal file
@@ -0,0 +1,37 @@
|
||||
=!OpenSSL=
|
||||
|
||||
==Erstellung eines Zertifikates==
|
||||
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
$ openssl req -config openssl.cnf -new -newkey rsa:2048 -nodes -subj '/C=DE/ST=Hessen/L=Frankfurt am Main/O=Johann Wolfgang Goethe-Universitaet/OU=Hochschulrechenzentrum/CN=www.intrastent.uni-frankfurt.de' -keyout private_key_ellos.uni-frankfurt.de.pem -out cert_request_ellos.uni-frankfurt.de.pem
|
||||
}}}
|
||||
|
||||
mit der folgenden Einstellungen für //Subject Altnerative Names// in der openssl.cnf
|
||||
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
[req]
|
||||
req_extensions = v3_req
|
||||
|
||||
[v3_req]
|
||||
# Extensions to add to a certificate request
|
||||
basicConstraints = CA:FALSE
|
||||
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
||||
|
||||
# Some CAs do not yet support subjectAltName in CSRs.
|
||||
# Instead the additional names are form entries on web
|
||||
# pages where one requests the certificate...
|
||||
subjectAltName = @alt_names
|
||||
|
||||
[alt_names]
|
||||
DNS.1 = www.foo.com
|
||||
DNS.2 = www.foo.org
|
||||
}}}
|
||||
|
||||
ob es funktioniert hat, überprüft man mit
|
||||
|
||||
{{{class="brush: bash; toolbar: false;"
|
||||
$ openssl req -text -noout -in $CSR_FILENAME
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
7
vim/wiki/pdf_decrypt.wiki
Normal file
7
vim/wiki/pdf_decrypt.wiki
Normal file
@@ -0,0 +1,7 @@
|
||||
=PDF vom Passwortschutz mittels Ghostscript befreien=
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
62
vim/wiki/ssh-copy-id.wiki
Normal file
62
vim/wiki/ssh-copy-id.wiki
Normal file
@@ -0,0 +1,62 @@
|
||||
=SSH Key kopieren=
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ cat ~/.ssh/*.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys'
|
||||
}}}
|
||||
|
||||
oder als shell-Script nutzten
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
#!/bin/sh
|
||||
|
||||
# Shell script to install your identity.pub on a remote machine
|
||||
# Takes the remote machine name as an argument.
|
||||
# Obviously, the remote machine must accept password authentication,
|
||||
# or one of the other keys in your ssh-agent, for this to work.
|
||||
|
||||
ID_FILE="${HOME}/.ssh/identity.pub"
|
||||
|
||||
if [ "-i" = "$1" ]; then
|
||||
shift
|
||||
# check if we have 2 parameters left, if so the first is the new ID file
|
||||
if [ -n "$2" ]; then
|
||||
if expr "$1" : ".*\.pub" ; then
|
||||
ID_FILE="$1"
|
||||
else
|
||||
ID_FILE="$1.pub"
|
||||
fi
|
||||
shift # and this should leave $1 as the target name
|
||||
fi
|
||||
else
|
||||
if [ x$SSH_AUTH_SOCK != x ] ; then
|
||||
GET_ID="$GET_ID ssh-add -L"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "`eval $GET_ID`" ] && [ -r "${ID_FILE}" ] ; then
|
||||
GET_ID="cat ${ID_FILE}"
|
||||
fi
|
||||
|
||||
if [ -z "`eval $GET_ID`" ]; then
|
||||
echo "$0: ERROR: No identities found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
|
||||
echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
|
||||
|
||||
cat <<EOF
|
||||
Now try logging into the machine, with "ssh '$1'", and check in:
|
||||
|
||||
.ssh/authorized_keys
|
||||
|
||||
to make sure we haven't added extra keys that you weren't expecting.
|
||||
|
||||
EOF
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
8
vim/wiki/tree.wiki
Normal file
8
vim/wiki/tree.wiki
Normal file
@@ -0,0 +1,8 @@
|
||||
=ASCII Ausgabe von Dateisystem=
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ tree -AFh ./
|
||||
}}}
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
98
vim/wiki/vim.wiki
Normal file
98
vim/wiki/vim.wiki
Normal file
@@ -0,0 +1,98 @@
|
||||
%toc
|
||||
|
||||
=VIM=
|
||||
|
||||
==Remove trailing whitespace==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
:%s/\s\+$//e
|
||||
|
||||
}}}
|
||||
|
||||
==Remove blank lines==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
:g/^\s*$/d
|
||||
|
||||
}}}
|
||||
|
||||
==Swap word with next word==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
nmap <silent> gw "_yiw:s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/<cr><c-o><c-l>
|
||||
|
||||
}}}
|
||||
|
||||
==delete all HTML tags==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
:%s#<[^>]\+>##g
|
||||
|
||||
}}}
|
||||
|
||||
==delete all duplicate lines==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
:%s/^\(.*\)\n\1$/\1/
|
||||
|
||||
}}}
|
||||
|
||||
==reverse content of file==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
|
||||
:g/^/m0
|
||||
|
||||
}}}
|
||||
|
||||
==useful keymaps==
|
||||
|
||||
| *xp* | exchange the right character with his left combatant |
|
||||
| *^* | move to the first non-blank character in the current line |
|
||||
| *+* | move to the first character in the next line |
|
||||
| *-* | move to the first character in the previous line |
|
||||
| *%* | move to the opposite character |
|
||||
| *(* | move a sentence back |
|
||||
| *)* | move a sentence forward |
|
||||
| *{* | move a paragraph back |
|
||||
| *}* | move a paragraph forward |
|
||||
| _n_*yy* | yanks _n_ lines into the buffer |
|
||||
| */*_string_ | search forward for _string_ |
|
||||
| *?*_string_ | search backward for string |
|
||||
| *n* | search for next instance of _string_ |
|
||||
| *N* | search for previous instance of _string |
|
||||
| *zf*_3_ | fold the next _3_ lines (works with VISUAL MODE too |
|
||||
| *zO* | open all folds at the cursor |
|
||||
| *d/*_string_*/* | delete until _string_ |
|
||||
| * | find word under cursor |
|
||||
| *~* | change case |
|
||||
| *:ls* | list of all buffers |
|
||||
| *:bn* | next buffer |
|
||||
| *:bp* | previous buffer |
|
||||
| *:bd* | remove file from buffer |
|
||||
| *:b2* | go to buffer _3_ |
|
||||
| *<C-v>* | enter VISUAL BLOCK mode |
|
||||
| *Vip* | select code block |
|
||||
| *g<C-g>* | count all words in document |
|
||||
| *s*_<p>_ | surrounding the line with _<p>_ _</p>_ tags (_surround_ plugin in visual mode) |
|
||||
| *=G* | apply autoformat to the end of a file in visual mode |
|
||||
|
||||
==replace pattern==
|
||||
|
||||
| *:s/*_pattern_*/*_string_*/*_flags_ | replace _pattern_ with _string_ according to _flags_ |
|
||||
| *g* | Flag - replace all occurences of _pattern_ |
|
||||
| *c* | Flag - confirm replaces |
|
||||
| *.* | any single caracter except newline |
|
||||
| * | zwro or more occurances of any character |
|
||||
| *^* | beggining of the line |
|
||||
| *$* | end of line |
|
||||
| *\<* | beginning of word |
|
||||
| *\>* | end of word |
|
||||
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
34
vim/wiki/wma2mp3.wiki
Normal file
34
vim/wiki/wma2mp3.wiki
Normal file
@@ -0,0 +1,34 @@
|
||||
[[=WMA]] zu MP3 konvertieren mit mplayer und lame=
|
||||
|
||||
==Rip with Mplayer / encode with LAME==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && lame -m s audiodump.wav -o $i; done
|
||||
}}}
|
||||
|
||||
==convert file names==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
$ for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done
|
||||
}}}
|
||||
|
||||
==code==
|
||||
|
||||
{{{class="brush: bash; ; toolbar: false;"
|
||||
#!/bin/bash
|
||||
#
|
||||
# Dump wma to mp3
|
||||
for i in *.wma
|
||||
do
|
||||
if [ -f "$i" ]; then
|
||||
rm -f "$i.wav"
|
||||
mkfifo "$i.wav"
|
||||
mplayer -quiet -vo null -vc dummy -af volume=0,resample=44100:0:1 -ao pcm:waveheader:file="$i.wav" "$i" &
|
||||
dest=`echo "$i"|sed -e 's/wma$/mp3/'`
|
||||
lame -V0 -h -b 160 --vbr-new "$i.wav" "$dest"
|
||||
rm -f "$i.wav"
|
||||
fi
|
||||
done
|
||||
}}}
|
||||
|
||||
[ [[index|Go home]] ]
|
||||
35
vim/wiki_html/AES_de-encrypt.html
Normal file
35
vim/wiki_html/AES_de-encrypt.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">AES</h1>
|
||||
|
||||
<h2 id="toc_1.1">encrypt</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -pass pass:secret -in file.txt -out file.txt.aes
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">decrypt</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -d -pass pass:secret -in file.txt.aes
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
54
vim/wiki_html/Apple Mail.html
Normal file
54
vim/wiki_html/Apple Mail.html
Normal file
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Apple Mail</h1>
|
||||
|
||||
<h2 id="toc_1.1">Mailalias</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Mail.app schließen
|
||||
</li>
|
||||
<li>
|
||||
~/Library/Mail/V2/<a href="MailData.html">MailData</a>/Accounts.plist öffnen
|
||||
</li>
|
||||
<li>
|
||||
Eintrag <em>MailAccounts</em> aufklappen
|
||||
</li>
|
||||
<li>
|
||||
den richtigen Ornder (0, 1, 2, etc) rausfinden indem man auf die Einträge achtet
|
||||
</li>
|
||||
<li>
|
||||
Ordner auswählen und <em>Add Item</em> anklicken, mit dem Namen <em>EmailAliases</em> mit Typ <em>Array</em>
|
||||
</li>
|
||||
<li>
|
||||
diesen wiederum anklicken und mit <em>Add Item</em> einen neuen Eintrag <em>Item 0</em> erstellen vom Typ <em>Dictionary</em>
|
||||
</li>
|
||||
<li>
|
||||
auswählen neuen Key mit <em>alias</em> vom Typ <em>String</em> und der gewünschten Adresse
|
||||
</li>
|
||||
<li>
|
||||
im <em>Item 0</em> neuen Eintrag mit <em>name</em> als Item <em>String</em> als Typ und dem gewünschtem Namen für den Alias
|
||||
</li>
|
||||
<li>
|
||||
abspeichern, fertig.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
323
vim/wiki_html/Install ZFS on Ubuntu.html
Normal file
323
vim/wiki_html/Install ZFS on Ubuntu.html
Normal file
@@ -0,0 +1,323 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Install ZFS on Ubuntu</h1>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
Repos hinzufügen, unbedingt durchlaufen lassen!
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
sudo -i
|
||||
apt-add-repository --yes ppa:zfs-native/daily
|
||||
apt-get update
|
||||
apt-get install debootstrap ubuntu-zfs
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
check to see zfs
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
modprobe zfs
|
||||
dmesg | grep ZFS
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> ZFS: Loaded module v0.6.0.89-rc12, ZFS pool version 28, ZFS filesystem version 5
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
cfdisk
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
100MB bootable Partition mit Type BE
|
||||
</li>
|
||||
<li>
|
||||
restlicher Platz mit Type BF
|
||||
</li>
|
||||
<li>
|
||||
checken und anzeigen lassen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
fdisk -l /dev/disk/by-id/scsi-SATA_disk1
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
GRUB installieren auf part-1
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
mke2fs -m 0 -L /boot/grub -j /dev/disk/by-id/scsi-SATA_disk1-part1
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
root pool erstellen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
zpool create rpool /dev/disk/by-id/scsi-SATA_disk1-part2
|
||||
zfs create rpool/ROOT
|
||||
zfs create rpool/ROOT/ubuntu-1
|
||||
zfs umount -a
|
||||
zfs set mountpoint=/ rpool/ROOT/ubuntu-1
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Kompression einschalten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
zfs set compression=on rpool
|
||||
zpool set bootfs=rpool/ROOT/ubuntu-1 rpool
|
||||
zpool export rpool
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Pool importieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
zpool import -d /dev/disk/by-id -R /mnt rpool
|
||||
mkdir -p /mnt/boot/grub
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
part-1 beachten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
mount /dev/disk/by-id/scsi-SATA_disk1-part1 /mnt/boot/grub
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Minimales System installieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
debootstrap precise /mnt
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
einige Live-CD Inhalte kopieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
cp /etc/hostname /mnt/etc/
|
||||
cp /etc/hosts /mnt/etc/
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
/mnt/etc/fstab editieren und part-1 hinzugügen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
vi /mnt/etc/fstab
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> /dev/disk/by-id/scsi-SATA_disk1-part1 /boot/grub auto defaults 0 1
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
vi /mnt/etc/network/interfaces
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> # interfaces(5) file used by ifup(8) and ifdown(8)
|
||||
</li>
|
||||
<li>
|
||||
-> auto lo
|
||||
</li>
|
||||
<li>
|
||||
-> iface lo inet loopback
|
||||
</li>
|
||||
<li>
|
||||
->
|
||||
</li>
|
||||
<li>
|
||||
-> auto eth0
|
||||
</li>
|
||||
<li>
|
||||
-> iface eth0 inet dhcp
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
mount --bind /dev /mnt/dev
|
||||
mount --bind /proc /mnt/proc
|
||||
mount --bind /sys /mnt/sys
|
||||
chroot /mnt /bin/bash --login
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Install PPA support
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
locale-gen en_US.UTF-8
|
||||
locale-gen de_DE.UTF-8
|
||||
apt-get update
|
||||
apt-get install ubuntu-minimal python-software-properties
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
im chroot ZFS installieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
apt-add-repository --yes ppa:zfs-native/daily
|
||||
apt-add-repository --yes ppa:zfs-native/grub
|
||||
apt-get update
|
||||
apt-get install ubuntu-zfs
|
||||
apt-get install zfs-initramfs
|
||||
apt-get dist-upgrade
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Rootpasswort setzten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
passwd root
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Quellen editieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
vi /ets/apt/sources.list
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> deb <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> precise main universe
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
apt-get update
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
verify ZFS
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
grub-probe /
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> zfs
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
ls /boot/grub/zfs*
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> /boot/grub/zfs.mod /boot/grub/zfsinfo.mod
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
update-initramfs -c -k all
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> update-initramfs: Generating /boot/initrd.img-3.2.0-23-generic
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
update-grub
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> Generating grub.cfg ...
|
||||
</li>
|
||||
<li>
|
||||
-> Found linux image: /boot/vmlinuz-3.2.0-23-generic
|
||||
</li>
|
||||
<li>
|
||||
-> Found initrd image: /boot/initrd.img-3.2.0-23-generic
|
||||
</li>
|
||||
<li>
|
||||
-> done
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
grep boot=zfs /boot/grub/grub.cfg
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> linux /ROOT/ubuntu-1/@/boot/vmlinuz-3.2.0-23-generic root=/dev/sda2 ro boot=zfs $bootfs quiet splash $vt_handoff
|
||||
</li>
|
||||
<li>
|
||||
-> linux /ROOT/ubuntu-1/@/boot/vmlinuz-3.2.0-23-generic root=/dev/sda2 ro single nomodeset boot=zfs $bootfs
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
MBR auf die Festplatte (keine Partition) schreiben
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
grub-install $(readlink -f /dev/disk/by-id/scsi-SATA_disk1)
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
chroot verlassen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
exit
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Live-CD umounten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
umount /mnt/boot/grub
|
||||
umount /mnt/dev
|
||||
umount /mnt/proc
|
||||
umount /mnt/sys
|
||||
zfs umount -a
|
||||
zpool export rpool
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
rebooten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
reboot
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
als root einloggen und xubuntu nachinstallieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
apt-get install xubuntu-desktop
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
vim/wiki_html/Linux.html
Normal file
68
vim/wiki_html/Linux.html
Normal file
@@ -0,0 +1,68 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Linux</h1>
|
||||
|
||||
<h2 id="toc_1.1">tr</h2>
|
||||
<p>
|
||||
Tabstops durch Leerzeichen ersetzten und nach einem erfolgreichen Umwandeln zurückschreiben
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ cat webserver.log07289 | tr '[:blank:]' ' ' > tmp.1 && mv tmp.1 webserver.log07289
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
für eine Massenformatierung
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
for file
|
||||
do
|
||||
cat $file | tr '[:blank:]' ' ' > tmp.1 && mv tmp.1 $file || { echo "++$file "; exit; }
|
||||
done
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
der Aufruf erfolgt dann mit
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ tr-all *
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Alle Mitglieder einer Gruppe anzeigen</h2>
|
||||
<p>
|
||||
unter Linux:
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ getent group GRUPPE
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
unter AIX:
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ lsgroup GRUPPE
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
59
vim/wiki_html/Lion.html
Normal file
59
vim/wiki_html/Lion.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Lion</h1>
|
||||
|
||||
<h2 id="toc_1.1">Last Played Files nicht mehr anzeigen</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0
|
||||
defaults delete com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments
|
||||
defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
|
||||
|
||||
</pre>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
defaults write org.niltsh.MPlayerX NSRecentDocumentsLimit 0
|
||||
defaults delete org.niltsh.MPlayerX.LSSharedFileList RecentDocuments
|
||||
defaults write org.niltsh.MPlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
|
||||
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Open Google Chrome</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
open /Applications/Google\ Chrome\ Canary.app --args --allow-running-insecure-content
|
||||
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.3">Remove X11</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
|
||||
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
|
||||
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz
|
||||
sudo pkgutil --forget org.macosforge.xquartz.pkg
|
||||
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
89
vim/wiki_html/PostgreSQL.html
Normal file
89
vim/wiki_html/PostgreSQL.html
Normal file
@@ -0,0 +1,89 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">PostreSQL</h1>
|
||||
|
||||
<p>
|
||||
If builds of <a href="PostgreSQL.html">PostgreSQL</a> 9 are failing and you have version 8.x installed,
|
||||
you may need to remove the previous version first. See:
|
||||
<a href="https://github.com/mxcl/homebrew/issues/issue/2510">https://github.com/mxcl/homebrew/issues/issue/2510</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To build plpython against a specific Python, set PYTHON prior to brewing:
|
||||
</p>
|
||||
<blockquote>
|
||||
PYTHON=/usr/local/bin/python brew install postgresql
|
||||
</blockquote>
|
||||
<p>
|
||||
See:
|
||||
<a href="http://www.postgresql.org/docs/9.0/static/install-procedure.html">http://www.postgresql.org/docs/9.0/static/install-procedure.html</a>
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
If this is your first install, create a database with:
|
||||
</p>
|
||||
<blockquote>
|
||||
initdb /usr/local/var/postgres
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
If this is your first install, automatically load on login with:
|
||||
</p>
|
||||
<blockquote>
|
||||
cp /usr/local/Cellar/postgresql/9.0.2/org.postgresql.postgres.plist ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>
|
||||
launchctl load -w ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>/org.postgresql.postgres.plist
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
If this is an upgrade and you already have the org.postgresql.postgres.plist loaded:
|
||||
</p>
|
||||
<blockquote>
|
||||
launchctl unload -w ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>/org.postgresql.postgres.plist
|
||||
cp /usr/local/Cellar/postgresql/9.0.2/org.postgresql.postgres.plist ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>
|
||||
launchctl load -w ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>/org.postgresql.postgres.plist
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
Or start manually with:
|
||||
</p>
|
||||
<blockquote>
|
||||
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
And stop with:
|
||||
</p>
|
||||
<blockquote>
|
||||
pg_ctl -D /usr/local/var/postgres stop -s -m fast
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
If you want to install the postgres gem, including ARCHFLAGS is recommended:
|
||||
</p>
|
||||
<blockquote>
|
||||
env ARCHFLAGS="-arch x86_64" gem install pg
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
To install gems without sudo, see the Homebrew wiki.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
92
vim/wiki_html/RegEXP.html
Normal file
92
vim/wiki_html/RegEXP.html
Normal file
@@ -0,0 +1,92 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">RegEXP</h1>
|
||||
|
||||
<h2 id="toc_1.1">Password policy</h2>
|
||||
|
||||
<p>
|
||||
at least
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
lower-case alphabetic character: [a-z]
|
||||
</li>
|
||||
<li>
|
||||
upper-case alphabetic character: [A-Z]
|
||||
</li>
|
||||
<li>
|
||||
decimal digit: [0-9]
|
||||
</li>
|
||||
<li>
|
||||
one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
and 8 chars long
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\\p{Punct})\\p{Graph}{8}
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
Example:
|
||||
</p>
|
||||
|
||||
<pre class="brush: java; toolbar: false;">
|
||||
import java.sql.SQLException;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
public class reg {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
* @throws SQLException
|
||||
* @throws ClassNotFoundException
|
||||
*/
|
||||
public static void main(String[] args) throws SQLException, ClassNotFoundException {
|
||||
Pattern p = Pattern.compile("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\\p{Punct})\\p{Graph}{8}");
|
||||
Matcher m = p.matcher("13a!56A2");
|
||||
boolean b = m.matches();
|
||||
System.out.println(b)
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Delete foo</h2>
|
||||
|
||||
<p>
|
||||
lösche jede Zeile, welche eine Fileendung enhällt
|
||||
</p>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
(.*?)\.(.*)$
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
das gleiche nur im Vim
|
||||
</p>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
:g/\.\(.*\)$/d
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
42
vim/wiki_html/Snow_Leopard.html
Normal file
42
vim/wiki_html/Snow_Leopard.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Snow Leopard</h1>
|
||||
|
||||
<h2 id="toc_1.1">Disable Spotlight on all Volumes</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
sudo mdutil -a -i off
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Enable it again for the Volume Hive</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
sudo mdutil -i on /Volumes/Hive
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.3">Reindex Spotlight</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
sudo mdutil -E /Volumes/Hive
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.4">Disable dictionary search in Spotlight</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
defaults write com.apple.spotlight DictionaryLookupEnabled NO
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
39
vim/wiki_html/avimerge.html
Normal file
39
vim/wiki_html/avimerge.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">avimerge</h1>
|
||||
|
||||
<p>
|
||||
<em>avimerge</em> ist im transcode Paket enthalten. Die Installation dauert sehr lange, da <em>MacOS</em> anscheinend viele benötigten <em>Libraries</em> nicht standardmäßig enthalten.
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ sudo port install transcode
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Mehrere Videoparts in eine Datei mergen
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ avimerge -o OutputFile.avi -i Input1.avi Input2.avi
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
39
vim/wiki_html/bash.html
Normal file
39
vim/wiki_html/bash.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">bash</h1>
|
||||
|
||||
<p>
|
||||
encrypt
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -pass pass:secret -in file.txt -out file.txt.aes
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
decrypt
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -d -pass pass:secret -in file.txt.aes
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
<a href="index.html">[Go home</a>]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
114
vim/wiki_html/diskutil.html
Normal file
114
vim/wiki_html/diskutil.html
Normal file
@@ -0,0 +1,114 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">diskutil</h1>
|
||||
|
||||
<h2 id="toc_1.1">USB Stick formatieren</h2>
|
||||
|
||||
<p>
|
||||
Um einen USB-Stick als FAT32 zu formatieren, macht man also dies:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Stick in den USB-Port stecken. Ok, das war vorhersehbar.
|
||||
Terminal öffnen. (Wenn es nicht schon offen ist)
|
||||
Im Terminal eingeben:
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ diskutil list
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
In der darauf erscheinenden Anzeige den Stick suchen. Bei mir tauchte er gerade als
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ /dev/disk3
|
||||
</pre>
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>TYPE</th>
|
||||
<th>NAME</th>
|
||||
<th>SIZE</th>
|
||||
<th>IDENTIFIER</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>0:</td>
|
||||
<td>GUID_partition_scheme</td>
|
||||
<td> </td>
|
||||
<td>*973.8 Mi</td>
|
||||
<td>disk3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1:</td>
|
||||
<td>Microsoft Basic Data</td>
|
||||
<td>POLLUX</td>
|
||||
<td>971.9 Mi</td>
|
||||
<td>disk3s1</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
auf. Das “GUID_partition_scheme” schien dem PC nicht zu schmecken, denn der Stick liess sich dort nicht mounten.
|
||||
Wichtig für den nächsten Schritt ist der “IDENTIFIER” des Sticks, in diesem Fall “disk3″.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Nun kommt der magische Befehl:
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ diskutil partitionDisk /dev/disk3 1 MBRFormat FAT32 "POLLUX" 100%
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
Damit wird eine Partition “Pollux” auf dem Stick angelegt, die den zur Verfügung stehenden Platz benutzt und durch das “MBRFormat” ist er auch wirklich am PC les- und nutzbar.
|
||||
Einen Stick mit zwei gleich große Partitionen (namens “Hanni” und “Nanni” zb) könnte man mittels
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ diskutil partitionDisk /dev/disk3 2 MBRFormat FAT32 "HANNI" 50% FAT32 "NANNI" 50%
|
||||
</pre>
|
||||
|
||||
|
||||
<h2 id="toc_1.2">USB Stick bootfähig machen mit einem Image</h2>
|
||||
|
||||
<p>
|
||||
schauen wie der USB Stick heißt
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ diskutil list
|
||||
$ diskutil unmountDisk /dev/diskN
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Image schreiben
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1024
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
36
vim/wiki_html/ffmpeg.html
Normal file
36
vim/wiki_html/ffmpeg.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">ffmpeg</h1>
|
||||
|
||||
<h2 id="toc_1.1">1080p to 720p</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
ffmpeg -i "Renaissance.1080p.mkv" -vcodec libx264 -b 5120k -s 1280x720 -acodec libfaac -ab 192kb -ar 48000 -ac 2 -f mp4 -deinterlace -vpre medium -threads 0 -y "Renaissance.720p.mp4"
|
||||
</pre>
|
||||
<p>
|
||||
#ac = audio_channels (2 = Stereo, 6 = 5.1)
|
||||
</p>
|
||||
|
||||
|
||||
<h2 id="toc_1.2">2pass encoding</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
ffmpeg -i INPUT.avi -pass 1 -vcodec libx264 -vpre fast -b 5120k -threads 0 -f mp4 -an -y /dev/null && ffmpeg -i INPUT.avi -pass 2 -acodec libfaac -ab 192kb -ac 2 -vcodec libx264 -vpre fast -b 5120k -threads 0 OUTPUT.mp4
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
vim/wiki_html/flac2mp3.html
Normal file
44
vim/wiki_html/flac2mp3.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
#!/bin/sh
|
||||
|
||||
FLAC_FILE=$1
|
||||
MP3_FILE=`echo ${FLAC_FILE} | sed 's/\.flac/.mp3/'`
|
||||
|
||||
metaflac --export-tags-to=/dev/stdout "${FLAC_FILE}" |
|
||||
sed -e 's/=/="/' -e 's/$/"/' > /tmp/tags-$$
|
||||
cat /tmp/tags-$$
|
||||
. /tmp/tags-$$
|
||||
rm /tmp/tags-$$
|
||||
|
||||
flac -dc "${FLAC_FILE}" |
|
||||
lame -h -b 192 \
|
||||
--tt "${Title}" \
|
||||
--tn "${Tracknumber}" \
|
||||
--ty "${Date}" \
|
||||
--ta "${Artist}" \
|
||||
--tl "${Album}" \
|
||||
--tg "${Genre}" \
|
||||
--add-id3v2 /dev/stdin "${MP3_FILE}"
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
vim/wiki_html/gems.html
Normal file
30
vim/wiki_html/gems.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">GEMS</h1>
|
||||
|
||||
<h2 id="toc_1.1">uninstall all gems</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
|
||||
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
50
vim/wiki_html/generate bootable USB stick.html
Normal file
50
vim/wiki_html/generate bootable USB stick.html
Normal file
@@ -0,0 +1,50 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">generate bootable USB stick</h1>
|
||||
|
||||
<h2 id="toc_1.1">convert ISO to IMG</h2>
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
|
||||
|
||||
</pre>
|
||||
<h2 id="toc_1.2">insert USB stick an list all devices</h2>
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
disktuil list
|
||||
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.3">unmount USB stick</h2>
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
diskutil unmountDisk /dev/diskN
|
||||
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.4">write IMG to USB stick 'rdiskN' is the numer of the disk</h2>
|
||||
<h3 id="toc_1.4.1">!! using /dev/rdisk instead of /dev/disk may be faster</h3>
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
|
||||
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
63
vim/wiki_html/hdiutil.html
Normal file
63
vim/wiki_html/hdiutil.html
Normal file
@@ -0,0 +1,63 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">hdiutil</h1>
|
||||
|
||||
<h2 id="toc_1.1">Mit verschlüsselten Images arbeiten</h2>
|
||||
|
||||
<p>
|
||||
Plattenplatz auf einem verschlüsseltem <a href="DiskImage.html">DiskImage</a> gewinnen
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ hdiutil compact image.sparsebundle
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
es vergrößern
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ hdiutil resize -size 460g UltraMobile.sparsebundle
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
es mounten
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ hdiutil attach /Volumes/UltraMobile.sparsebundle
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
und wieder auswerfen
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ hdiutil detach /Volumes/UltraMobile
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">verschlüsseltes Time Machine Backup über LAN</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ hdiutil create -size 200g -fs HFS+J -type SPARSEBUNDLE -volname "mskrynsk_macbook" Fry_0023123aa44a.sparsebundle
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
14
vim/wiki_html/header.tpl
Normal file
14
vim/wiki_html/header.tpl
Normal file
@@ -0,0 +1,14 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
89
vim/wiki_html/index.html
Normal file
89
vim/wiki_html/index.html
Normal file
@@ -0,0 +1,89 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Michis Onlinebrain</h1>
|
||||
|
||||
<p>
|
||||
This is my private wiki because my brain has a limited stack size.
|
||||
</p>
|
||||
|
||||
<h2 id="toc_1.1">Linkliste</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="pdf_decrypt.html">pdf_decrypt</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="avimerge.html">avimerge</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="AES_de-encrypt.html">AES_de-encrypt</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="diskutil.html">diskutil</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="hdiutil.html">hdiutil</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="Linux.html">Linux</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="Apple Mail.html">Apple Mail</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mp3_wrap.html">mp3_wrap</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="openssl.html">openssl</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RegEXP.html">RegEXP</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="ssh-copy-id.html">ssh-copy-id</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="tree.html">tree</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="wma2mp3.html">wma2mp3</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="flac2mp3.html">flac2mp3</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PostgreSQL.html">PostgreSQL</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="vim.html">vim</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="gems.html">gems</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="Snow_Leopard.html">Snow_Leopard</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="ffmpeg.html">ffmpeg</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="Lion.html">Lion</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="generate bootable USB stick.html">generate bootable USB stick</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
47
vim/wiki_html/mp3_wrap.html
Normal file
47
vim/wiki_html/mp3_wrap.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">mp3 wrap</h1>
|
||||
|
||||
<p>
|
||||
merge
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ mp3wrap tmp.mp3 *
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
fix file duration
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ ffmpeg -i tmp_MP3WRAP.mp3 -acodec copy all.mp3 && rm tmp_MP3WRAP.mp3
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
copy mp3 tags
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ id3cp 1.mp3 all.mp3
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
60
vim/wiki_html/openssl.html
Normal file
60
vim/wiki_html/openssl.html
Normal file
@@ -0,0 +1,60 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">OpenSSL</h1>
|
||||
|
||||
<h2 id="toc_1.1">Erstellung eines Zertifikates</h2>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
$ openssl req -config openssl.cnf -new -newkey rsa:2048 -nodes -subj '/C=DE/ST=Hessen/L=Frankfurt am Main/O=Johann Wolfgang Goethe-Universitaet/OU=Hochschulrechenzentrum/CN=www.intrastent.uni-frankfurt.de' -keyout private_key_ellos.uni-frankfurt.de.pem -out cert_request_ellos.uni-frankfurt.de.pem
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
mit der folgenden Einstellungen für //Subject Altnerative Names// in der openssl.cnf
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
[req]
|
||||
req_extensions = v3_req
|
||||
|
||||
[v3_req]
|
||||
# Extensions to add to a certificate request
|
||||
basicConstraints = CA:FALSE
|
||||
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
||||
|
||||
# Some CAs do not yet support subjectAltName in CSRs.
|
||||
# Instead the additional names are form entries on web
|
||||
# pages where one requests the certificate...
|
||||
subjectAltName = @alt_names
|
||||
|
||||
[alt_names]
|
||||
DNS.1 = www.foo.com
|
||||
DNS.2 = www.foo.org
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
ob es funktioniert hat, überprüft man mit
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
$ openssl req -text -noout -in $CSR_FILENAME
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
26
vim/wiki_html/pdf_decrypt.html
Normal file
26
vim/wiki_html/pdf_decrypt.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">PDF vom Passwortschutz mittels Ghostscript befreien</h1>
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
vim/wiki_html/scripts/shAutoloader.js
Normal file
17
vim/wiki_html/scripts/shAutoloader.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d<c.9;d++)i[c[d]]=a}2 o(c){1 a=r.H("J"),d=3;a.K=c;a.M="L/t";a.G="t";a.u=a.v=2(){6(!d&&(!8.7||8.7=="F"||8.7=="z")){d=q;e[c]=q;a:{4(1 p y e)6(e[p]==3)B a;j&&5.C(k)}a.u=a.v=x;a.D.O(a)}};r.N.R(a)}1 f=Q,l=h.P(),i={},e={},j=3,k=x,b;5.T=2(c){k=c;j=q};4(b=0;b<f.9;b++){1 m=f[b].w?f[b]:f[b].S(/\\s+/),g=m.w();n(m,g)}4(b=0;b<l.9;b++)6(g=i[l[b].E.A]){e[g]=3;o(g)}}})();',56,56,'|var|function|false|for|SyntaxHighlighter|if|readyState|this|length|||||||||||||||||true|document||javascript|onload|onreadystatechange|pop|null|in|complete|brush|break|highlight|parentNode|params|loaded|language|createElement|autoloader|script|src|text|type|body|removeChild|findElements|arguments|appendChild|split|all'.split('|'),0,{}))
|
||||
59
vim/wiki_html/scripts/shBrushAS3.js
vendored
Normal file
59
vim/wiki_html/scripts/shBrushAS3.js
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Created by Peter Atoria @ http://iAtoria.com
|
||||
|
||||
var inits = 'class interface function package';
|
||||
|
||||
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
|
||||
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
|
||||
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
|
||||
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
|
||||
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
|
||||
'return set static String super switch this throw true try typeof uint undefined unescape ' +
|
||||
'use void while with'
|
||||
;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
|
||||
{ regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['actionscript3', 'as3'];
|
||||
|
||||
SyntaxHighlighter.brushes.AS3 = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
75
vim/wiki_html/scripts/shBrushAppleScript.js
vendored
Normal file
75
vim/wiki_html/scripts/shBrushAppleScript.js
vendored
Normal file
File diff suppressed because one or more lines are too long
59
vim/wiki_html/scripts/shBrushBash.js
vendored
Normal file
59
vim/wiki_html/scripts/shBrushBash.js
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne ge le';
|
||||
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
|
||||
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
|
||||
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
|
||||
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
|
||||
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
|
||||
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
|
||||
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
|
||||
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
|
||||
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
|
||||
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
|
||||
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
|
||||
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
|
||||
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
|
||||
'vi watch wc whereis which who whoami Wget xargs yes'
|
||||
;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /^#!.*$/gm, css: 'preprocessor bold' },
|
||||
{ regex: /\/[\w-\/]+/gm, css: 'plain' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
|
||||
];
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['bash', 'shell'];
|
||||
|
||||
SyntaxHighlighter.brushes.Bash = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
65
vim/wiki_html/scripts/shBrushCSharp.js
vendored
Normal file
65
vim/wiki_html/scripts/shBrushCSharp.js
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
|
||||
'continue decimal default delegate do double else enum event explicit ' +
|
||||
'extern false finally fixed float for foreach get goto if implicit in int ' +
|
||||
'interface internal is lock long namespace new null object operator out ' +
|
||||
'override params private protected public readonly ref return sbyte sealed set ' +
|
||||
'short sizeof stackalloc static string struct switch this throw true try ' +
|
||||
'typeof uint ulong unchecked unsafe ushort using virtual void while';
|
||||
|
||||
function fixComments(match, regexInfo)
|
||||
{
|
||||
var css = (match[0].indexOf("///") == 0)
|
||||
? 'color1'
|
||||
: 'comments'
|
||||
;
|
||||
|
||||
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
|
||||
}
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
|
||||
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
|
||||
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['c#', 'c-sharp', 'csharp'];
|
||||
|
||||
SyntaxHighlighter.brushes.CSharp = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
|
||||
100
vim/wiki_html/scripts/shBrushColdFusion.js
vendored
Normal file
100
vim/wiki_html/scripts/shBrushColdFusion.js
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Jen
|
||||
// http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
|
||||
|
||||
var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
|
||||
'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
|
||||
'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
|
||||
'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
|
||||
'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
|
||||
'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
|
||||
'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
|
||||
'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
|
||||
'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
|
||||
'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
|
||||
'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
|
||||
'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
|
||||
'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
|
||||
'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
|
||||
'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
|
||||
'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
|
||||
'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
|
||||
'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
|
||||
'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
|
||||
'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
|
||||
'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
|
||||
'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
|
||||
'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
|
||||
'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
|
||||
'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
|
||||
'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
|
||||
'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
|
||||
'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
|
||||
'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
|
||||
'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
|
||||
'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
|
||||
'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
|
||||
'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
|
||||
'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
|
||||
'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
|
||||
'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
|
||||
'XmlValidate Year YesNoFormat';
|
||||
|
||||
var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
|
||||
'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
|
||||
'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
|
||||
'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
|
||||
'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
|
||||
'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
|
||||
'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
|
||||
'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
|
||||
'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
|
||||
'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
|
||||
'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
|
||||
'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
|
||||
'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
|
||||
'cfwindow cfxml cfzip cfzipparam';
|
||||
|
||||
var operators = 'all and any between cross in join like not null or outer some';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
|
||||
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
||||
];
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['coldfusion','cf'];
|
||||
|
||||
SyntaxHighlighter.brushes.ColdFusion = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
97
vim/wiki_html/scripts/shBrushCpp.js
vendored
Normal file
97
vim/wiki_html/scripts/shBrushCpp.js
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Copyright 2006 Shin, YoungJin
|
||||
|
||||
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
|
||||
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
|
||||
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
|
||||
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
|
||||
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
|
||||
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
|
||||
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
|
||||
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
|
||||
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
|
||||
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
|
||||
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
|
||||
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
|
||||
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
|
||||
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
|
||||
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
|
||||
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
|
||||
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
|
||||
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
|
||||
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
|
||||
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
|
||||
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
||||
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
||||
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
||||
'va_list wchar_t wctrans_t wctype_t wint_t signed';
|
||||
|
||||
var keywords = 'break case catch class const __finally __exception __try ' +
|
||||
'const_cast continue private public protected __declspec ' +
|
||||
'default delete deprecated dllexport dllimport do dynamic_cast ' +
|
||||
'else enum explicit extern if for friend goto inline ' +
|
||||
'mutable naked namespace new noinline noreturn nothrow ' +
|
||||
'register reinterpret_cast return selectany ' +
|
||||
'sizeof static static_cast struct switch template this ' +
|
||||
'thread throw true false try typedef typeid typename union ' +
|
||||
'using uuid virtual void volatile whcar_t while';
|
||||
|
||||
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
|
||||
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
|
||||
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
|
||||
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
|
||||
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
|
||||
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
|
||||
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
|
||||
'fwrite getc getchar gets perror printf putc putchar puts remove ' +
|
||||
'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
|
||||
'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
|
||||
'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
|
||||
'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
|
||||
'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
|
||||
'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
|
||||
'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
|
||||
'clock ctime difftime gmtime localtime mktime strftime time';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /^ *#.*/gm, css: 'preprocessor' },
|
||||
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
|
||||
{ regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['cpp', 'c'];
|
||||
|
||||
SyntaxHighlighter.brushes.Cpp = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
91
vim/wiki_html/scripts/shBrushCss.js
vendored
Normal file
91
vim/wiki_html/scripts/shBrushCss.js
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
function getKeywordsCSS(str)
|
||||
{
|
||||
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
||||
};
|
||||
|
||||
function getValuesCSS(str)
|
||||
{
|
||||
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
||||
};
|
||||
|
||||
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
||||
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
||||
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
||||
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
||||
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
||||
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
||||
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
||||
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
||||
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
||||
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
||||
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
||||
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
||||
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
||||
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
||||
|
||||
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
||||
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
||||
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
|
||||
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
||||
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
||||
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
||||
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
||||
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
||||
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
||||
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
||||
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
||||
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
||||
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
||||
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
||||
|
||||
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
||||
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
|
||||
{ regex: /!important/g, css: 'color3' }, // !important
|
||||
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
||||
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
||||
];
|
||||
|
||||
this.forHtmlScript({
|
||||
left: /(<|<)\s*style.*?(>|>)/gi,
|
||||
right: /(<|<)\/\s*style\s*(>|>)/gi
|
||||
});
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['css'];
|
||||
|
||||
SyntaxHighlighter.brushes.CSS = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
55
vim/wiki_html/scripts/shBrushDelphi.js
vendored
Normal file
55
vim/wiki_html/scripts/shBrushDelphi.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
|
||||
'case char class comp const constructor currency destructor div do double ' +
|
||||
'downto else end except exports extended false file finalization finally ' +
|
||||
'for function goto if implementation in inherited int64 initialization ' +
|
||||
'integer interface is label library longint longword mod nil not object ' +
|
||||
'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
|
||||
'pint64 pointer private procedure program property pshortstring pstring ' +
|
||||
'pvariant pwidechar pwidestring protected public published raise real real48 ' +
|
||||
'record repeat set shl shortint shortstring shr single smallint string then ' +
|
||||
'threadvar to true try type unit until uses val var varirnt while widechar ' +
|
||||
'widestring with word write writeln xor';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
|
||||
{ regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
|
||||
{ regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
|
||||
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['delphi', 'pascal', 'pas'];
|
||||
|
||||
SyntaxHighlighter.brushes.Delphi = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
41
vim/wiki_html/scripts/shBrushDiff.js
vendored
Normal file
41
vim/wiki_html/scripts/shBrushDiff.js
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
this.regexList = [
|
||||
{ regex: /^\+\+\+.*$/gm, css: 'color2' },
|
||||
{ regex: /^\-\-\-.*$/gm, css: 'color2' },
|
||||
{ regex: /^\s.*$/gm, css: 'color1' },
|
||||
{ regex: /^@@.*@@$/gm, css: 'variable' },
|
||||
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
|
||||
{ regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['diff', 'patch'];
|
||||
|
||||
SyntaxHighlighter.brushes.Diff = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
52
vim/wiki_html/scripts/shBrushErlang.js
vendored
Normal file
52
vim/wiki_html/scripts/shBrushErlang.js
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Jean-Lou Dupont
|
||||
// http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
|
||||
|
||||
// According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
|
||||
var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
|
||||
'case catch cond div end fun if let not of or orelse '+
|
||||
'query receive rem try when xor'+
|
||||
// additional
|
||||
' module export import define';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
|
||||
{ regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
|
||||
{ regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
|
||||
{ regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['erl', 'erlang'];
|
||||
|
||||
SyntaxHighlighter.brushes.Erland = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
67
vim/wiki_html/scripts/shBrushGroovy.js
vendored
Normal file
67
vim/wiki_html/scripts/shBrushGroovy.js
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Andres Almiray
|
||||
// http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
|
||||
|
||||
var keywords = 'as assert break case catch class continue def default do else extends finally ' +
|
||||
'if in implements import instanceof interface new package property return switch ' +
|
||||
'throw throws try while public protected private static';
|
||||
var types = 'void boolean byte char short int long float double';
|
||||
var constants = 'null';
|
||||
var methods = 'allProperties count get size '+
|
||||
'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
|
||||
'findIndexOf grep inject max min reverseEach sort ' +
|
||||
'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
|
||||
'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
|
||||
'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
|
||||
'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
|
||||
'transformChar transformLine withOutputStream withPrintWriter withStream ' +
|
||||
'withStreams withWriter withWriterAppend write writeLine '+
|
||||
'dump inspect invokeMethod print println step times upto use waitForOrKill '+
|
||||
'getText';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /""".*"""/g, css: 'string' }, // GStrings
|
||||
{ regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
|
||||
{ regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
|
||||
{ regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
|
||||
{ regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['groovy'];
|
||||
|
||||
SyntaxHighlighter.brushes.Groovy = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
52
vim/wiki_html/scripts/shBrushJScript.js
vendored
Normal file
52
vim/wiki_html/scripts/shBrushJScript.js
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'break case catch continue ' +
|
||||
'default delete do else false ' +
|
||||
'for function if in instanceof ' +
|
||||
'new null return super switch ' +
|
||||
'this throw true try typeof var while with'
|
||||
;
|
||||
|
||||
var r = SyntaxHighlighter.regexLib;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: r.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: r.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
||||
];
|
||||
|
||||
this.forHtmlScript(r.scriptScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['js', 'jscript', 'javascript'];
|
||||
|
||||
SyntaxHighlighter.brushes.JScript = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
57
vim/wiki_html/scripts/shBrushJava.js
vendored
Normal file
57
vim/wiki_html/scripts/shBrushJava.js
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var keywords = 'abstract assert boolean break byte case catch char class const ' +
|
||||
'continue default do double else enum extends ' +
|
||||
'false final finally float for goto if implements import ' +
|
||||
'instanceof int interface long native new null ' +
|
||||
'package private protected public return ' +
|
||||
'short static strictfp super switch synchronized this throw throws true ' +
|
||||
'transient try void volatile while';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
|
||||
{ regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
||||
{ regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
|
||||
{ regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
||||
];
|
||||
|
||||
this.forHtmlScript({
|
||||
left : /(<|<)%[@!=]?/g,
|
||||
right : /%(>|>)/g
|
||||
});
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['java'];
|
||||
|
||||
SyntaxHighlighter.brushes.Java = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
58
vim/wiki_html/scripts/shBrushJavaFX.js
vendored
Normal file
58
vim/wiki_html/scripts/shBrushJavaFX.js
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Patrick Webster
|
||||
// http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
|
||||
var datatypes = 'Boolean Byte Character Double Duration '
|
||||
+ 'Float Integer Long Number Short String Void'
|
||||
;
|
||||
|
||||
var keywords = 'abstract after and as assert at before bind bound break catch class '
|
||||
+ 'continue def delete else exclusive extends false finally first for from '
|
||||
+ 'function if import in indexof init insert instanceof into inverse last '
|
||||
+ 'lazy mixin mod nativearray new not null on or override package postinit '
|
||||
+ 'protected public public-init public-read replace return reverse sizeof '
|
||||
+ 'step super then this throw true try tween typeof var where while with '
|
||||
+ 'attribute let private readonly static trigger'
|
||||
;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||
{ regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||
];
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['jfx', 'javafx'];
|
||||
|
||||
SyntaxHighlighter.brushes.JavaFX = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
72
vim/wiki_html/scripts/shBrushPerl.js
vendored
Normal file
72
vim/wiki_html/scripts/shBrushPerl.js
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by David Simmons-Duffin and Marty Kube
|
||||
|
||||
var funcs =
|
||||
'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
|
||||
'chroot close closedir connect cos crypt defined delete each endgrent ' +
|
||||
'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
|
||||
'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
|
||||
'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
|
||||
'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
|
||||
'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
|
||||
'getservbyname getservbyport getservent getsockname getsockopt glob ' +
|
||||
'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
|
||||
'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
||||
'oct open opendir ord pack pipe pop pos print printf prototype push ' +
|
||||
'quotemeta rand read readdir readline readlink readpipe recv rename ' +
|
||||
'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
|
||||
'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
|
||||
'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
|
||||
'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
|
||||
'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
|
||||
'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
|
||||
'undef unlink unpack unshift utime values vec wait waitpid warn write';
|
||||
|
||||
var keywords =
|
||||
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
|
||||
'for foreach goto if import last local my next no our package redo ref ' +
|
||||
'require return sub tie tied unless untie until use wantarray while';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
|
||||
{ regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
||||
{ regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['perl', 'Perl', 'pl'];
|
||||
|
||||
SyntaxHighlighter.brushes.Perl = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
88
vim/wiki_html/scripts/shBrushPhp.js
vendored
Normal file
88
vim/wiki_html/scripts/shBrushPhp.js
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
||||
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
||||
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
||||
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
||||
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
||||
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
||||
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
||||
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
||||
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
||||
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
||||
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
||||
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
||||
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
||||
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
||||
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
||||
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
||||
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
||||
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
||||
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
||||
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
||||
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
||||
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
||||
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
||||
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
|
||||
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
||||
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
||||
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
||||
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
||||
'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
|
||||
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
||||
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
||||
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
||||
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
||||
'strtoupper strtr strval substr substr_compare';
|
||||
|
||||
var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
|
||||
'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach ' +
|
||||
'function include include_once global goto if implements interface instanceof namespace new ' +
|
||||
'old_function or private protected public return require require_once static switch ' +
|
||||
'throw try use var while xor ';
|
||||
|
||||
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
|
||||
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['php'];
|
||||
|
||||
SyntaxHighlighter.brushes.Php = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
33
vim/wiki_html/scripts/shBrushPlain.js
vendored
Normal file
33
vim/wiki_html/scripts/shBrushPlain.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['text', 'plain'];
|
||||
|
||||
SyntaxHighlighter.brushes.Plain = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
74
vim/wiki_html/scripts/shBrushPowerShell.js
vendored
Normal file
74
vim/wiki_html/scripts/shBrushPowerShell.js
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributes by B.v.Zanten, Getronics
|
||||
// http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro
|
||||
|
||||
var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' +
|
||||
'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' +
|
||||
'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' +
|
||||
'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' +
|
||||
'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' +
|
||||
'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' +
|
||||
'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' +
|
||||
'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' +
|
||||
'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' +
|
||||
'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' +
|
||||
'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' +
|
||||
'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' +
|
||||
'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' +
|
||||
'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' +
|
||||
'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' +
|
||||
'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' +
|
||||
'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' +
|
||||
'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' +
|
||||
'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' +
|
||||
'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' +
|
||||
'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning';
|
||||
var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' +
|
||||
'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' +
|
||||
'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' +
|
||||
'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' +
|
||||
'spps spsv sv tee cat cd cp h history kill lp ls ' +
|
||||
'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' +
|
||||
'erase rd ren type % \\?';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: /#.*$/gm, css: 'comments' }, // one line comments
|
||||
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1
|
||||
{ regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' },
|
||||
{ regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' }
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['powershell', 'ps'];
|
||||
|
||||
SyntaxHighlighter.brushes.PowerShell = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
64
vim/wiki_html/scripts/shBrushPython.js
vendored
Normal file
64
vim/wiki_html/scripts/shBrushPython.js
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Gheorghe Milas and Ahmad Sherif
|
||||
|
||||
var keywords = 'and assert break class continue def del elif else ' +
|
||||
'except exec finally for from global if import in is ' +
|
||||
'lambda not or pass print raise return try yield while';
|
||||
|
||||
var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
|
||||
'chr classmethod cmp coerce compile complex delattr dict dir ' +
|
||||
'divmod enumerate eval execfile file filter float format frozenset ' +
|
||||
'getattr globals hasattr hash help hex id input int intern ' +
|
||||
'isinstance issubclass iter len list locals long map max min next ' +
|
||||
'object oct open ord pow print property range raw_input reduce ' +
|
||||
'reload repr reversed round set setattr slice sorted staticmethod ' +
|
||||
'str sum super tuple type type unichr unicode vars xrange zip';
|
||||
|
||||
var special = 'None True False self cls class_';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
|
||||
{ regex: /^\s*@\w+/gm, css: 'decorator' },
|
||||
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
|
||||
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
|
||||
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
|
||||
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
|
||||
{ regex: /\b\d+\.?\w*/g, css: 'value' },
|
||||
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
|
||||
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['py', 'python'];
|
||||
|
||||
SyntaxHighlighter.brushes.Python = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
55
vim/wiki_html/scripts/shBrushRuby.js
vendored
Normal file
55
vim/wiki_html/scripts/shBrushRuby.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Erik Peterson.
|
||||
|
||||
var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
|
||||
'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
|
||||
'self super then throw true undef unless until when while yield';
|
||||
|
||||
var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
|
||||
'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
|
||||
'ThreadGroup Thread Time TrueClass';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
|
||||
{ regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
|
||||
{ regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
|
||||
];
|
||||
|
||||
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['ruby', 'rails', 'ror', 'rb'];
|
||||
|
||||
SyntaxHighlighter.brushes.Ruby = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
94
vim/wiki_html/scripts/shBrushSass.js
vendored
Normal file
94
vim/wiki_html/scripts/shBrushSass.js
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
function getKeywordsCSS(str)
|
||||
{
|
||||
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
||||
};
|
||||
|
||||
function getValuesCSS(str)
|
||||
{
|
||||
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
||||
};
|
||||
|
||||
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
||||
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
||||
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
||||
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
||||
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
||||
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
||||
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
||||
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
||||
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
||||
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
||||
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
||||
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
||||
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
||||
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
||||
|
||||
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
||||
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
||||
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero digits disc dotted double '+
|
||||
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
||||
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
||||
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
||||
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
||||
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
||||
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
||||
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
||||
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
||||
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
||||
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
||||
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
||||
|
||||
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
||||
|
||||
var statements = '!important !default';
|
||||
var preprocessor = '@import @extend @debug @warn @if @for @while @mixin @include';
|
||||
|
||||
var r = SyntaxHighlighter.regexLib;
|
||||
|
||||
this.regexList = [
|
||||
{ regex: r.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: r.singleLineCComments, css: 'comments' }, // singleline comments
|
||||
{ regex: r.doubleQuotedString, css: 'string' }, // double quoted strings
|
||||
{ regex: r.singleQuotedString, css: 'string' }, // single quoted strings
|
||||
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
||||
{ regex: /\b(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)\b/g, css: 'value' }, // sizes
|
||||
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
||||
{ regex: new RegExp(this.getKeywords(statements), 'g'), css: 'color3' }, // statements
|
||||
{ regex: new RegExp(this.getKeywords(preprocessor), 'g'), css: 'preprocessor' }, // preprocessor
|
||||
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
||||
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
||||
];
|
||||
};
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['sass', 'scss'];
|
||||
|
||||
SyntaxHighlighter.brushes.Sass = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
51
vim/wiki_html/scripts/shBrushScala.js
vendored
Normal file
51
vim/wiki_html/scripts/shBrushScala.js
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* SyntaxHighlighter
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter
|
||||
*
|
||||
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
||||
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
||||
*
|
||||
* @version
|
||||
* 3.0.83 (July 02 2010)
|
||||
*
|
||||
* @copyright
|
||||
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
||||
*
|
||||
* @license
|
||||
* Dual licensed under the MIT and GPL licenses.
|
||||
*/
|
||||
;(function()
|
||||
{
|
||||
// CommonJS
|
||||
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
|
||||
|
||||
function Brush()
|
||||
{
|
||||
// Contributed by Yegor Jbanov and David Bernard.
|
||||
|
||||
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
|
||||
'override try lazy for var catch throw type extends class while with new final yield abstract ' +
|
||||
'else do if return protected private this package false';
|
||||
|
||||
var keyops = '[_:=><%#@]+';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
|
||||
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
|
||||
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
||||
{ regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
|
||||
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||
{ regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
|
||||
];
|
||||
}
|
||||
|
||||
Brush.prototype = new SyntaxHighlighter.Highlighter();
|
||||
Brush.aliases = ['scala'];
|
||||
|
||||
SyntaxHighlighter.brushes.Scala = Brush;
|
||||
|
||||
// CommonJS
|
||||
typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
|
||||
})();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user