From b22724fc0e76caa50410b3e56b86f7fed1722162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 7 Apr 2018 14:29:23 +0100 Subject: [PATCH 1/8] Do not syncthing from systemd --- .hyper_plugins/.hyper_plugins | 2 +- ubuntu/up.sh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.hyper_plugins/.hyper_plugins b/.hyper_plugins/.hyper_plugins index b13f2cdb..742c57d0 120000 --- a/.hyper_plugins/.hyper_plugins +++ b/.hyper_plugins/.hyper_plugins @@ -1 +1 @@ -/Users/cyplo/dev/dotfiles/.hyper_plugins \ No newline at end of file +/home/cyryl/dev/dotfiles/.hyper_plugins \ No newline at end of file diff --git a/ubuntu/up.sh b/ubuntu/up.sh index 8a4c7a49..ed546711 100755 --- a/ubuntu/up.sh +++ b/ubuntu/up.sh @@ -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 )" From e9febc5de3f96bad8f517c0c98f34a8227c23a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 7 Apr 2018 14:51:05 +0100 Subject: [PATCH 2/8] add large files compression script --- tools/compress-large-dir | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tools/compress-large-dir diff --git a/tools/compress-large-dir b/tools/compress-large-dir new file mode 100755 index 00000000..026549ac --- /dev/null +++ b/tools/compress-large-dir @@ -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 + +benice tar -cf - $dir | pv -ptabI -s $(du -sb $dir | awk '{print $1}') | pixz -9 > $dir.tar.xz From 3c6e3ee8d6122760b264ca1b55ff8875c39c9deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 7 Apr 2018 15:07:45 +0100 Subject: [PATCH 3/8] Better compression settings --- tools/compress-large-dir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/compress-large-dir b/tools/compress-large-dir index 026549ac..92412ac0 100755 --- a/tools/compress-large-dir +++ b/tools/compress-large-dir @@ -13,4 +13,4 @@ if [ ! -e $dir ]; then exit 1 fi -benice tar -cf - $dir | pv -ptabI -s $(du -sb $dir | awk '{print $1}') | pixz -9 > $dir.tar.xz +tar -cf - $dir | pv -ptabI -s $(du -sb $dir | awk '{print $1}') | pixz -9 -f 3 -p $((`nproc`-1)) > $dir.tar.xz From 2c599b69ed1b88a1004acc071b01aa1e98b3e6e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 29 Apr 2018 21:41:53 +0100 Subject: [PATCH 4/8] Add ideavim settings --- common/configure_fresh_system.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/common/configure_fresh_system.sh b/common/configure_fresh_system.sh index 393eeecb..420703c9 100755 --- a/common/configure_fresh_system.sh +++ b/common/configure_fresh_system.sh @@ -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" ~/. From d9dc74131d5a2aca296a0711caa081b5974212e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 4 May 2018 21:44:52 +0100 Subject: [PATCH 5/8] Add xz decompress --- tools/decompress | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tools/decompress diff --git a/tools/decompress b/tools/decompress new file mode 100755 index 00000000..717a45d2 --- /dev/null +++ b/tools/decompress @@ -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" From dde3224bc1a1c6ef4235a9a5a4f2fc9f0c4780f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 4 May 2018 21:45:35 +0100 Subject: [PATCH 6/8] Add ideavimrc --- .ideavimrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .ideavimrc diff --git a/.ideavimrc b/.ideavimrc new file mode 100644 index 00000000..f237ac4b --- /dev/null +++ b/.ideavimrc @@ -0,0 +1,2 @@ +set visualbell +set noerrorbells From 809a78b6afcf8756cac781241bf8009044c55abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Mon, 7 May 2018 11:33:56 +0100 Subject: [PATCH 7/8] Remove custom Rust VSCode setup --- .config/Code/User/settings.json | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.config/Code/User/settings.json b/.config/Code/User/settings.json index bae25c3b..3e64adad 100644 --- a/.config/Code/User/settings.json +++ b/.config/Code/User/settings.json @@ -2,20 +2,6 @@ "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 - } } \ No newline at end of file From 2c9f5cf4801f34d4eaff5e80b81f5f9554a9025c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Mon, 7 May 2018 11:41:08 +0100 Subject: [PATCH 8/8] Autosave on focuschange --- .config/Code/User/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/Code/User/settings.json b/.config/Code/User/settings.json index 3e64adad..ba80e8ea 100644 --- a/.config/Code/User/settings.json +++ b/.config/Code/User/settings.json @@ -4,4 +4,5 @@ "editor.cursorStyle": "block", "editor.wordWrap": true, "vim.disableAnnoyingNeovimMessage": true, + "files.autoSave": "onFocusChange", } \ No newline at end of file