Merge branch 'master' of github.com:cyplo/dotfiles
This commit is contained in:
commit
d3f9c91f28
7 changed files with 42 additions and 18 deletions
|
@ -2,20 +2,7 @@
|
|||
"window.zoomLevel": 1,
|
||||
"extensions.autoUpdate": true,
|
||||
"editor.cursorStyle": "block",
|
||||
"rust.rustLangSrcPath": "/home/cyryl/dev/rust/src",
|
||||
"rust.racerPath": "/home/cyryl/.cargo/bin/racer",
|
||||
"rust.rustfmtPath": "/home/cyryl/.cargo/bin/rustfmt",
|
||||
"rust.rustsymPath": "/home/cyryl/.cargo/bin/rustsym",
|
||||
"rust.cargoPath": "/home/cyryl/.cargo/bin/cargo",
|
||||
"rust.cargoHome": "/home/cyryl/.cargo/",
|
||||
"editor.wordWrap": true,
|
||||
"vim.disableAnnoyingNeovimMessage": true,
|
||||
"rust.rustup": {
|
||||
"toolchain": "nightly-x86_64-unknown-linux-gnu",
|
||||
"nightlyToolchain": "nightly-x86_64-unknown-linux-gnu"
|
||||
},
|
||||
"rust.mode": "rls",
|
||||
"rust.rls": {
|
||||
"useRustfmt": true
|
||||
}
|
||||
"files.autoSave": "onFocusChange",
|
||||
}
|
|
@ -1 +1 @@
|
|||
/Users/cyplo/dev/dotfiles/.hyper_plugins
|
||||
/home/cyryl/dev/dotfiles/.hyper_plugins
|
2
.ideavimrc
Normal file
2
.ideavimrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
set visualbell
|
||||
set noerrorbells
|
|
@ -32,6 +32,7 @@ git submodule update --init --recursive
|
|||
|
||||
#configs
|
||||
ln -vfs "$DIR/.vim" ~/.
|
||||
ln -vfs "$DIR/.ideavimrc" ~/.
|
||||
ln -vfs "$DIR/.vimrc.linux" ~/.vimrc
|
||||
ln -vfs "$DIR/.tmux.conf" ~/.
|
||||
ln -vfs "$DIR/.tmux.macosx" ~/.
|
||||
|
|
16
tools/compress-large-dir
Executable file
16
tools/compress-large-dir
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo "Usage: $0 dir"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dir="${1%/*}"
|
||||
|
||||
if [ ! -e $dir ]; then
|
||||
echo "$dir doesn't exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tar -cf - $dir | pv -ptabI -s $(du -sb $dir | awk '{print $1}') | pixz -9 -f 3 -p $((`nproc`-1)) > $dir.tar.xz
|
21
tools/decompress
Executable file
21
tools/decompress
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo "Usage: $0 file-to-decompress [target-directory]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
file=$1
|
||||
target=$2
|
||||
|
||||
if [ -z $2 ]; then
|
||||
target=`pwd`
|
||||
fi
|
||||
|
||||
target=`realpath $target`
|
||||
|
||||
mkdir -p "$target"
|
||||
|
||||
echo "unpacking $file to $target"
|
||||
pv -erp "$file" | tar vJx - -C "$target"
|
|
@ -26,9 +26,6 @@ if [[ -z $NO_SYSTEMCTL ]]; then
|
|||
sudo systemctl restart docker
|
||||
sudo systemctl enable fail2ban
|
||||
sudo systemctl restart fail2ban
|
||||
echo "Enabling Syncthing for $USER"
|
||||
sudo systemctl enable syncthing@$USER.service
|
||||
sudo systemctl restart syncthing@$USER.service
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
|
Loading…
Reference in a new issue