diff --git a/.vim/.netrwhist b/.vim/.netrwhist index 6e7086e..7771a52 100644 --- a/.vim/.netrwhist +++ b/.vim/.netrwhist @@ -1,7 +1,2 @@ let g:netrw_dirhistmax =10 -let g:netrw_dirhist_cnt =5 -let g:netrw_dirhist_1='/Users/brbuller/Development/android/projects/IronGolem/app/src/main/java/com' -let g:netrw_dirhist_2='/Users/brbuller/Development/android/projects/IronGolem/app/src/main/java/com/bullercodeworks' -let g:netrw_dirhist_3='/Users/brbuller/Development/android/projects/IronGolem/app/src/main/java/com/bullercodeworks/minecraftmonitor' -let g:netrw_dirhist_4='/Users/brbuller/Development/android/projects/IronGolem/app/src/main/java/com/bullercodeworks/minecraftmonitor/objs' -let g:netrw_dirhist_5='/Users/brbuller/Development/nodejs/flashtest' +let g:netrw_dirhist_cnt =0 diff --git a/.vim/plugin/scratch.vim b/.vim/plugin/scratch.vim new file mode 100644 index 0000000..05b9018 --- /dev/null +++ b/.vim/plugin/scratch.vim @@ -0,0 +1,110 @@ +" File: scratch.vim +" Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com) +" Version: 1.0 +" Last Modified: June 3, 2003 +" +" Overview +" -------- +" You can use the scratch plugin to create a temporary scratch buffer to store +" and edit text that will be discarded when you quit/exit vim. The contents +" of the scratch buffer are not saved/stored in a file. +" +" Installation +" ------------ +" 1. Copy the scratch.vim plugin to the $HOME/.vim/plugin directory. Refer to +" the following Vim help topics for more information about Vim plugins: +" +" :help add-plugin +" :help add-global-plugin +" :help runtimepath +" +" 2. Restart Vim. +" +" Usage +" ----- +" You can use the following command to open/edit the scratch buffer: +" +" :Scratch +" +" To open the scratch buffer in a new split window, use the following command: +" +" :Sscratch +" +" When you close the scratch buffer window, the buffer will retain the +" contents. You can again edit the scratch buffer by openeing it using one of +" the above commands. There is no need to save the scatch buffer. +" +" When you quit/exit Vim, the contents of the scratch buffer will be lost. +" You will not be prompted to save the contents of the modified scratch +" buffer. +" +" You can have only one scratch buffer open in a single Vim instance. If the +" current buffer has unsaved modifications, then the scratch buffer will be +" opened in a new window +" +" ****************** Do not modify after this line ************************ +if exists('loaded_scratch') || &cp + finish +endif +let loaded_scratch=1 + +" Scratch buffer name +let ScratchBufferName = "__Scratch__" + +" ScratchBufferOpen +" Open the scratch buffer +function! s:ScratchBufferOpen(new_win) + let split_win = a:new_win + + " If the current buffer is modified then open the scratch buffer in a new + " window + if !split_win && &modified + let split_win = 1 + endif + + " Check whether the scratch buffer is already created + let scr_bufnum = bufnr(g:ScratchBufferName) + if scr_bufnum == -1 + " open a new scratch buffer + if split_win + exe "new " . g:ScratchBufferName + else + exe "edit " . g:ScratchBufferName + endif + else + " Scratch buffer is already created. Check whether it is open + " in one of the windows + let scr_winnum = bufwinnr(scr_bufnum) + if scr_winnum != -1 + " Jump to the window which has the scratch buffer if we are not + " already in that window + if winnr() != scr_winnum + exe scr_winnum . "wincmd w" + endif + else + " Create a new scratch buffer + if split_win + exe "split +buffer" . scr_bufnum + else + exe "buffer " . scr_bufnum + endif + endif + endif +endfunction + +" ScratchMarkBuffer +" Mark a buffer as scratch +function! s:ScratchMarkBuffer() + setlocal buftype=nofile + setlocal bufhidden=hide + setlocal noswapfile + setlocal buflisted +endfunction + +autocmd BufNewFile __Scratch__ call s:ScratchMarkBuffer() + +" Command to edit the scratch buffer in the current window +command! -nargs=0 Scratch call s:ScratchBufferOpen(0) +" Command to open the scratch buffer in a new split window +command! -nargs=0 Sscratch call s:ScratchBufferOpen(1) + diff --git a/.vim/vimwiki/vimwiki/Other.wiki b/.vim/vimwiki/vimwiki/Other.wiki index d27d02f..3356b85 100644 --- a/.vim/vimwiki/vimwiki/Other.wiki +++ b/.vim/vimwiki/vimwiki/Other.wiki @@ -1,2 +1,6 @@ * Linux * [[Linux_Slackware|Slackware]] + +* Google Hints + * File Search: +`-inurl:(htm|html|php) intitle:"index of" +"last modified" +"parent directory" +description +size +(wma|mp3) "Nirvana"` diff --git a/.vim/vimwiki/vimwiki/work_clients_high_touch_enertech_capture.wiki b/.vim/vimwiki/vimwiki/work_clients_high_touch_enertech_capture.wiki index cbb9afd..4b8edcf 100644 --- a/.vim/vimwiki/vimwiki/work_clients_high_touch_enertech_capture.wiki +++ b/.vim/vimwiki/vimwiki/work_clients_high_touch_enertech_capture.wiki @@ -5,3 +5,14 @@ Slackware: socketPath: '/var/run/mysql/mysql.sock' Make sure redis-server is running + +===== Notes from Dev ===== +All the sites are currently in subdirectories on a Ubuntu server on Digital Ocean, but the update I'm slowly working on is being written to use standalone Amazon EC2 instances for the app, S3 for file storage and RDS for the databases. + +The app is written in Node.js, uses MySQL for the data storage and Redis for session management. The app was written to be fast and standalone, but uses too much memory once there are several instances running on the same server or when the number of organizations reach tens of thousands. + +Currently all the instances are running on the same server using different databases and ports, and are accessed through a domain mapping proxy. I've been setting them up by 1) copying over the source, 2) editing the config.js file, 3) creating a new database with the included structure, and 4) adding the domain name and port to the proxy. + +The original source is attached. He can take a look at the server by SSHing or SFTPing into 104.131.164.134 using u: root p: enertech! + +Feel free to send this on to any other developers you talk to as well, but be careful not to send the password to anyone you don't trust. diff --git a/.vim/vimwiki/vimwiki_html/Other.html b/.vim/vimwiki/vimwiki_html/Other.html index f2add87..bd78d5c 100644 --- a/.vim/vimwiki/vimwiki_html/Other.html +++ b/.vim/vimwiki/vimwiki_html/Other.html @@ -18,5 +18,19 @@ Linux + +

+-inurl:(htm|html|php) intitle:"index of" +"last modified" +"parent directory" +description +size +(wma|mp3) "Nirvana" +

+ diff --git a/.vim/vimwiki/vimwiki_html/work_clients_high_touch_enertech_capture.html b/.vim/vimwiki/vimwiki_html/work_clients_high_touch_enertech_capture.html index 372d5ad..6ea5fe6 100644 --- a/.vim/vimwiki/vimwiki_html/work_clients_high_touch_enertech_capture.html +++ b/.vim/vimwiki/vimwiki_html/work_clients_high_touch_enertech_capture.html @@ -19,5 +19,26 @@ Slackware: Make sure redis-server is running

+
Notes from Dev
+

+All the sites are currently in subdirectories on a Ubuntu server on Digital Ocean, but the update I'm slowly working on is being written to use standalone Amazon EC2 instances for the app, S3 for file storage and RDS for the databases. +

+ +

+The app is written in Node.js, uses MySQL for the data storage and Redis for session management. The app was written to be fast and standalone, but uses too much memory once there are several instances running on the same server or when the number of organizations reach tens of thousands. +

+ +

+Currently all the instances are running on the same server using different databases and ports, and are accessed through a domain mapping proxy. I've been setting them up by 1) copying over the source, 2) editing the config.js file, 3) creating a new database with the included structure, and 4) adding the domain name and port to the proxy. +

+ +

+The original source is attached. He can take a look at the server by SSHing or SFTPing into 104.131.164.134 using u: root p: enertech! +

+ +

+Feel free to send this on to any other developers you talk to as well, but be careful not to send the password to anyone you don't trust. +

+ diff --git a/home/.vimrc b/home/.vimrc index 64153cb..9888237 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -47,3 +47,8 @@ let g:ctrlp_custom_ignore = { nmap jt :%!python -m json.tool:set filetype=json let g:vim_json_syntax_conceal = 0 " }} + +" Scratch File {{ + nmap sc :Scratch + nmap cc :Sscratch +" }}