This commit is contained in:
Geoffrey Frogeye 2018-08-19 19:33:43 +02:00
parent f94154c8f5
commit 302b0adf39
2 changed files with 61 additions and 43 deletions

61
iftoprc Normal file
View file

@ -0,0 +1,61 @@
# interface: if
# Sets the network interface to if.
dns-resolution: yes
# Controls reverse lookup of IP addresses.
port-resolution: no
# Controls conversion of port numbers to service names.
# filter-code: bpf
# Sets the filter code to bpf.
show-bars: yes
# Controls display of bar graphs.
promiscuous: no
# Puts the interface into promiscuous mode.
port-display: on
# Controls display of port numbers.
link-local: yes
# Determines displaying of link-local IPv6 addresses.
hide-source: no
# Hides source host names.
hide-destination: no
# Hides destination host names.
use-bytes: yes
# Use bytes for bandwidth display, rather than bits.
sort: 10s
# Sets which column is used to sort the display.
line-display: two-line
# Controls the appearance of each item in the display.
show-totals: yes
# Shows cumulative total for each item.
log-scale: yes
# Use a logarithmic scale for bar graphs.
# max-bandwidth: bw
# Fixes the maximum for the bar graph scale to bw, e.g. "10M".
# Note that the value has to always be in bits, regardless if the
# option to display in bytes has been chosen.
# net-filter: net/mask
# Defines an IP network boundary for determining packet direc
# tion.
# net-filter6: net6/mask6
# Defines an IPv6 network boundary for determining packet direc
# tion.
# screen-filter: regexp
# Sets a regular expression to filter screen output.

View file

@ -1,43 +0,0 @@
#!/usr/bin/env bash
#
# Compiles and install the YouCompleteMe server component
#
# TODO NOT FINISHED NOR TESTED
msg2() {
echo "$@"
}
# TODO cd quelque part
dir="$(pwd)"
archive=$(mktemp)
wget "https://aur.archlinux.org/cgit/aur.git/snapshot/vim-youcompleteme-git.tar.gz" -O "$archive"
snapshot=$(mktemp -d)
tar xzf "$archive" -C "$snapshot"
rm "$archive"
srcdir="$dir/src"
pkgdir="$dir/pkg"
mkdir -p "$srcdir"
mkdir -p "$pkgdir"
source "$snapshot/vim-youcompleteme-git/PKGBUILD"
rm -rf "$snapshot"
sudo pacman -S ${depends[@]} --asdeps
sudo pacman -S ${makedepends[@]} --asdeps
cd "$srcdir"
for s in ${source[@]}
do
git clone "$(echo "$s" | sed 's/^git+//')"
done
prepare
build
package