1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-21 16:53:33 +01:00

Need to work on install script

This commit is contained in:
Eric Teunis de Boone 2016-09-21 01:22:14 +02:00
commit 0fd6e855bf
14 changed files with 202 additions and 0 deletions

1
bash_files Submodule

@ -0,0 +1 @@
Subproject commit f7b5d451634841505d2b84b4beb2bfb465425bc8

27
bashrc Normal file
View file

@ -0,0 +1,27 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
BASHFOLDER=~/.bash_files
if [ -d "$BASHFOLDER" ]; then
for f in $BASHFOLDER/*.active;
do
source "$f";
done
else
echo "BASHFOLDER (${BASHFOLDER}) Not Found!";
fi

2
bin/miclisten Executable file
View file

@ -0,0 +1,2 @@
#! /bin/sh
ssh $@ 'arecord -f cd -t raw | oggenc - -r' | mplayer -

2
bin/micsend Executable file
View file

@ -0,0 +1,2 @@
#! /bin/sh
arecord -f cd -t raw | oggenc - -r | ssh $@ mplayer -

9
bin/pdf2txt Executable file
View file

@ -0,0 +1,9 @@
#! /bin/bash
pdftotext $1 -
## Function for diffing pdf's for git
# in ~/.gitconfig add
## [diff "pdf"]
## textconv = pdf2txt
# in repo's .gitattributes add
## *.pdf diff=pdf

11
bin/queue Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
LIST=""
for arg in $@; do
if [ -f "$arg" ]; then
LIST="$LIST"$'\n'"$(cat "$arg")"
else
LIST="$LIST"$'\n'"$arg"
fi
done;
echo "$LIST" | shuf | marietje
unset LIST

39
bin/upload-dir Executable file
View file

@ -0,0 +1,39 @@
#!/bin/sh
tmp_file="./tmp_list";
com="upload-to-marietje"
remove="n";
trap "echo Aborted!; exit;" INT TERM
if [ ! -f "$tmp_file" ]; then
touch $tmp_file;
fi
echo "###$(date) - $(id -u -n)" >> $tmp_file;
for f in ./*; do
name=${f##*/}
if [ "$name" = "$0" ]; then continue
elif [ "$name" = "$tmp_file" ]; then continue
fi
echo "$com $f";
# echo |
$com "$f";
if [ "$?" = "0" ]; then
echo "$f" >> $tmp_file;
fi
done
if [ "y$remove" = "yy" ]; then
while read p; do
if [[ "$p" == "###"* ]]; then
break
fi
rm -v \"$p\";
done < tac "$tmp_file";
fi
echo "It's Done!!";

1
bin/upload-dir-to-marietje Symbolic link
View file

@ -0,0 +1 @@
upload-dir

34
install.sh Executable file
View file

@ -0,0 +1,34 @@
BASE="$HOME/.dotfiles"
BAKSUFFIX=".old"
symlink()
{
local COMMAND='ln -s '
[ $# -lt 2 ] && return 1
[ $# -gt 2 ] && [ "$3" = "-c" -o "$3" = "--copy" ] $COMMAND = 'echo "cp -r" '
if [ ! -h $2 ]; then
echo "MOVING mv \"$2\" \"$2$BAKSUFFIX\" "
fi
$COMMAND "$1" "$2"
}
# bash
symlink "${BASE}/bashrc" ~/.bashrc
symlink "${BASE}/bash_files/" ~/.bash_files
# vim
symlink "${BASE}/vimrc" ~/.vimrc
symlink "${BASE}/vim/" ~/.vim
# tmux
symlink "${BASE}/tmux.conf" ~/.tmux.conf
# ssh
symlink "${BASE}/ssh/" ~/.ssh

8
ssh/known_hosts Normal file
View file

@ -0,0 +1,8 @@
deboone.nl,77.164.84.209 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM3EGmy4OmHna1Uc4rgGKwN5V3Q+HoRBLy/tupM00+jJXc5lHwSvQl/aT+tQpl7XUGiXngh7bk3Oe4sZh7HWCbY=
lilo.science.ru.nl,131.174.30.57 ssh-rsa AAAAB3NzaC1yc2E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ZQZWezFewhUMKCmrkEL
login.nikhef.nl,192.16.185.143 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAohtNecO6fqWD/7B08FyJi3nH4+IV638UAezsPkoPV4Ao8Vwo6X22M4MxmbpGJXIHMWiwdb++zVpaCC5nThPaUMZLAIgEj4RLDke5E1n5ZCTMYwyw1e6pMeCKCZAdfK6IAd7t1nklvr7iLelKkOH4bJgpTKFCW2+BZQ9MR5v4IAZuDK70KK7Y/h4G+oIDwrI0P+g9qkauV2f6+K3gFBundpb6doOQclI9s2dFGYrG29dxE8pcDU7xucrCDzYUVDnJ+SRPtcqle3wlgMNqJ4PPvmuADZmcglbGuuxgWc2Vn6hqaQWGG9LkIRCUd8OtLwjZ23rWJZUyzzwnSf9Ap+iziw==
seaforth.nl ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMPosqtPxx9vN1zY2vAt9zDf6O3NEGvZ253P+gs3ulZWje5bcGycQ/5CS5XW9PRQSHxFZyFYHLnZzqeAhYXAVwQ=
walter.marie-curie.nl,131.174.31.27 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEMpLrg7O3s1kMZmSyhie7ja6OPSqJTUtTsfRQsdUslFd8vlB9dvdMAY0LYHXCJR0/j42OY7UYCOmBjdHOnbxLA=

1
ssh/ssh Symbolic link
View file

@ -0,0 +1 @@
/home/edeboone/.dotfiles/ssh

37
tmux.conf Normal file
View file

@ -0,0 +1,37 @@
# use ^b as prefix
set -g prefix C-b
# bind-key C-a last-window
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# start window numbering at 1 for easier switching
set -g base-index 1
# vim shortcuts
setw -g mode-keys vi
# commands
bind : command-prompt
# colors
set -g default-terminal "screen-256color"
# unicode
setw -g utf8 on
set -g status-utf8 on
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind | split-window -h
bind - split-window -v
# status bar config
set -g status-left "#h"
set -g status-left-length 70
set -g status-right "%a %d-%m-%y :: %H:%M"
#set -g status-right '♪ #(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*") | ♥#(acpi | cut -d ',' -f 2) | %a %m-%d %H:%M'

5
vim/.netrwhist Normal file
View file

@ -0,0 +1,5 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =3
let g:netrw_dirhist_1='/home/edeboone/Documents/SpaceAstronomy/1516'
let g:netrw_dirhist_2='/home/edeboone/Documents/SpaceAstronomy/1516/p3'
let g:netrw_dirhist_3='/home/edeboone/Documents/SpaceAstronomy/1516/p3/a'

25
vimrc Normal file
View file

@ -0,0 +1,25 @@
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
filetype plugin on
if &term=="xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
" Set tabbing stuff
set autoindent
set tabstop=4
set shiftwidth=4
set noexpandtab
" Don't wake up system with blinking cursor:
" http://www.linuxpowertop.org/known.php
let &guicursor = &guicursor . ",a:blinkon0"