Skip to content

Commit b124d36

Browse files
committed
Update config file, fix tmux window renaming from shell
1 parent 5a13556 commit b124d36

File tree

3 files changed

+47
-23
lines changed

3 files changed

+47
-23
lines changed

FreeBSD/testrss/testrss.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static uint8_t rss_key[RSS_KEYSIZE] = {
4848
0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa,
4949
};
5050

51-
/* Toeplitz official MS pseudo code
51+
/* Toeplitz official MS pseudo code
5252
*
5353
* ComputeHash(input[], n)
5454
* result = 0
@@ -94,7 +94,7 @@ uint32_t toeplitz_hash3(u_int keylen, const uint8_t *key, u_int datalen, uint8_t
9494
uint8_t bdata=0;
9595
uint32_t keysmall = 0;
9696
u_int i, b;
97-
97+
9898
keysmall = ntohl(*(uint32_t *)key);
9999

100100
for (i=0; i < datalen; i++){
@@ -155,15 +155,15 @@ rss_hash_ip4_4tuple(struct in_addr src, u_short srcport, struct in_addr dst,
155155
uint64_t ntohll(uint64_t host_longlong)
156156
{
157157
int x = 1;
158-
158+
159159
/* little endian */
160160
if(*(char *)&x == 1)
161161
return ((((uint64_t)ntohl(host_longlong)) << 32) + ntohl(host_longlong >> 32));
162-
162+
163163
/* big endian */
164164
else
165165
return host_longlong;
166-
166+
167167
}
168168
/* Here we add the MS official value to check */
169169
int validate ()

configs/tmux.conf

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# 0 is too far from ` ;)
2+
set -g base-index 1
3+
setw -g pane-base-index 1
4+
5+
# Automatically set window title
6+
set-window-option -g automatic-rename on
7+
8+
# Allow to rename window (from shell)
9+
set-window-option -g allow-rename on
10+
11+
# Attempt to set the client terminal title using the tsl and fsl terminfo(5) entries
12+
set-option -g set-titles on
13+
14+
# No delay for escape key press
15+
set -sg escape-time 0
16+
17+
# Increas history
18+
set -g history-limit 10000
19+
20+
# Fix compability
121
set -g default-terminal "screen-256color"
2-
set -ga update-environment " SSH_AUTH_SOCK SSH_ASKPASS WINDOWID SSH_CONNECTION XAUTHORITY"
3-
set -s escape-time 0
22+
23+
# Allow to update SSH agent environement
24+
set -ga update-environment "SSH_AUTH_SOCK SSH_ASKPASS WINDOWID SSH_CONNECTION XAUTHORITY"
25+
26+
# Disable mouse support
27+
set -g mouse off

configs/vimrc

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
1-
"Improve escape key delay
2-
set timeoutlen=500 ttimeoutlen=0
3-
"Load pathogen
4-
execute pathogen#infect()
5-
"filetype plugin indent on
61
"Disable vi compatible mode
7-
"set nocompatible
2+
set nocompatible
83
"Enable syntax highlight
94
syntax enable
10-
"Load solarized
115
set background=light
126
"set background=dark
13-
"let g:solarized_termcolors=16
14-
"let g:solarized_termcolors=256
157
colorscheme solarized
168
"TAB=4 space
17-
set tabstop=4
18-
"set shiftwidth=4
9+
set ts=4
1910
"set sw=4 noet
20-
" display the cursoline
21-
" set cursorline
2211
" Display insecable space
2312
highlight NbSp ctermbg=lightgray guibg=lightred
24-
"autocmd ColorScheme * highlight NbSp ctermbg=lightgray guibg=lightred
2513
match NbSp /\%xa0/
2614
"highlight EdSp ctermbg=lightgray guibg=lightred
2715
"match EdSp /\s\+$/
@@ -39,10 +27,22 @@ match ExtraWhitespace /^\t*\zs \+/
3927
match ExtraWhitespace /\s\+\%#\@<!$/
4028

4129
"Check common c errors
42-
"let c_space_errors=1
30+
let c_space_errors=1
4331

4432
"Display red line
4533
set colorcolumn=80
4634
"Load /usr/src/tools/tools/editing/freebsd.vim
4735
"enable it with: \f
48-
":so /usr/src/tools/tools/editing/freebsd.vim
36+
:so /usr/src/tools/tools/editing/freebsd.vim
37+
"Enable to read the vim config file
38+
set modeline
39+
40+
"autoindentation for python file
41+
au BufNewFile,BufRead *.py
42+
\ set tabstop=4
43+
\ set softtabstop=4
44+
\ set shiftwidth=4
45+
\ set textwidth=79
46+
\ set expandtab
47+
\ set autoindent
48+
\ set fileformat=unix

0 commit comments

Comments
 (0)