From 6445279ba44c11269ed33e495439457df2fce460 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 27 Jan 2013 05:27:34 +0100 Subject: [PATCH 01/16] add function to show merged output of pacman -{S,Q}ii --- zsh/aliases/pacman.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh/aliases/pacman.zsh b/zsh/aliases/pacman.zsh index ad6e9c5..d126019 100644 --- a/zsh/aliases/pacman.zsh +++ b/zsh/aliases/pacman.zsh @@ -21,6 +21,17 @@ alias paclo='sudo pacman -Qdt' # [r]emove [o]orphans alias pacro='sudo pacman -Rnscu $(pacman -Qtdq)' +# Display information about given packages (merges output of -Sii and -Qii) +paci() { + for p in $@; do + if [[ -n "$(pacman -Qq "$p" 2>/dev/null)" ]]; then + diff -u100 <(pacman -Qii "$p") <(pacman -Sii "$p" | sed '/^$/,$ d') | sed -e '1,3 d' -e 's/[-+ ]//' + else + pacman -Sii "$p" + fi + done +} + pacdisowned() { tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$ db=$tmp/db -- 2.49.0 From 82b289fb1bc6822c2d4a0c09d942fe0bad7faf84 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 29 Jan 2013 16:39:18 +0100 Subject: [PATCH 02/16] /opt/steamhack doesn't exist anymore --- bin/steam | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/steam b/bin/steam index a3e053b..cc5fb24 100755 --- a/bin/steam +++ b/bin/steam @@ -7,6 +7,5 @@ export STEAMWM_GROUP_WINDOWS=1 export STEAMWM_SET_WINDOW_TYPE=1 export LD_PRELOAD="/home/ramsi/src/steamwm/steamwm.so:$LD_PRELOAD" -export PATH=/opt/steamhack:$PATH exec /usr/bin/steam ${1:-"steam://open/games/"} -- 2.49.0 From d86408c224327a6bfbe8b6b6c6ee502d6732286a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 29 Jan 2013 16:55:48 +0100 Subject: [PATCH 03/16] add pacl and paco aliases --- zsh/aliases/pacman.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/aliases/pacman.zsh b/zsh/aliases/pacman.zsh index d126019..0568a59 100644 --- a/zsh/aliases/pacman.zsh +++ b/zsh/aliases/pacman.zsh @@ -9,6 +9,8 @@ alias pacsi='pacman -Sii' # Display information about a given packa alias pacss='pacman -Ss' # Search for package(s) in the repositories alias pacqi='pacman -Qii' # Display information about a given package in the local database alias pacqs='pacman -Qs' # Search for package(s) in the local database +alias pacl='pacman -Ql' # List all files owned by package(s) +alias paco='pacman -Qo' # List package owning the given file(s) alias pacinsd='sudo pacman -S --asdeps' # Install given package(s) as dependencies of another package alias pacmir='sudo pacman -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist -- 2.49.0 From a8a4e21a320c08667687a7e9283b9e721b5d928f Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 29 Jan 2013 17:08:06 +0100 Subject: [PATCH 04/16] be more verbose --- bin/mkvsettitle | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/mkvsettitle b/bin/mkvsettitle index b74b76a..26443fb 100755 --- a/bin/mkvsettitle +++ b/bin/mkvsettitle @@ -12,5 +12,6 @@ for f in "$dir"/*; do t=${t%.*} # remove also (2013){1080p}[en] stuff t=${t% (*)\{*\}*} + echo "Set title: $t" mkvpropedit --set title="$t" "$f" > /dev/null done -- 2.49.0 From d46f984b4a16c085c27cb7b45fe09e7e0b1abd79 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 29 Jan 2013 17:09:24 +0100 Subject: [PATCH 05/16] download torrents to Skaro --- flexget/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flexget/config.yml b/flexget/config.yml index f9c0587..e2431bd 100644 --- a/flexget/config.yml +++ b/flexget/config.yml @@ -50,7 +50,7 @@ tasks: transmission: host: localhost port: 9091 - path: /home/ramsi/Torrents + path: /mnt/Skaro/Torrents.flex removewhendone: yes ratio: 0.0 @@ -60,7 +60,7 @@ tasks: accept_all: yes find: - path: /home/ramsi/Torrents + path: /mnt/Skaro/Torrents.flex recursive: yes regexp: '.*\.(avi|mkv|mp4)$' -- 2.49.0 From 7e2333268a36dc269e27534d34857b95eed2ac62 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 31 Jan 2013 18:45:05 +0100 Subject: [PATCH 06/16] fix bundle calls --- bin/launch-bundle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/launch-bundle b/bin/launch-bundle index 1c03dc9..156365f 100755 --- a/bin/launch-bundle +++ b/bin/launch-bundle @@ -1,7 +1,7 @@ #!/bin/bash -for TARGET in $HOME/.cinstall/launchers/${0##*/}* +for TARGET in $HOME/.cinstall/launchers/${0##*/}-[0-9]* do USE_TARGET=$TARGET done -[ -x "$USE_TARGET" ] && $USE_TARGET || echo "Could not find ${0##*/} bundle" +[ -x "$USE_TARGET" ] && $USE_TARGET "${@}" || echo "Could not find ${0##*/} bundle" -- 2.49.0 From 038dc6165c147a314bcb7f82021b7a70db02bbaa Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 31 Jan 2013 19:02:44 +0100 Subject: [PATCH 07/16] create link for icons too --- bin/launch-bundle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/launch-bundle b/bin/launch-bundle index 156365f..81b3b3b 100755 --- a/bin/launch-bundle +++ b/bin/launch-bundle @@ -4,4 +4,10 @@ for TARGET in $HOME/.cinstall/launchers/${0##*/}-[0-9]* do USE_TARGET=$TARGET done -[ -x "$USE_TARGET" ] && $USE_TARGET "${@}" || echo "Could not find ${0##*/} bundle" +if [[ -x "$USE_TARGET" ]]; then + $USE_TARGET "${@}" + arch=$(uname -m) + ln -sf $HOME/.cinstall/icons/${USE_TARGET##*/}-${arch}.png $HOME/.cinstall/icons/${0##*/}.png +else + echo "Could not find ${0##*/} bundle" +fi -- 2.49.0 From 8d5406f687a4c10d23ed27196c68719154f822fe Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sat, 2 Feb 2013 21:47:13 +0100 Subject: [PATCH 08/16] systemd aliases --- zsh/aliases/systemd.zsh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 zsh/aliases/systemd.zsh diff --git a/zsh/aliases/systemd.zsh b/zsh/aliases/systemd.zsh new file mode 100644 index 0000000..b894e62 --- /dev/null +++ b/zsh/aliases/systemd.zsh @@ -0,0 +1,20 @@ +alias sc='systemctl' + +alias sc-status='systemctl status' +alias sc-list-units='systemctl list-units' +alias sc-list-unit-files='systemctl list-unit-files' + +alias sc-start='sudo systemctl start' +alias sc-restart='sudo systemctl restart' +alias sc-stop='sudo systemctl stop' +alias sc-reload='sudo systemctl reload-or-restart' +alias sc-daemon-reload='sudo systemctl --system daemon-reload' +alias sc-enable='sudo systemctl enable' +alias sc-reenable='sudo systemctl reenable' +alias sc-disable='sudo systemctl disable' + +alias jc='journalctl' + +alias jc='journalctl --since=yesterday' +alias jc-err='journalctl --since=yesterday -p err' +alias jc-warn='journalctl --since=yesterday -p warning' -- 2.49.0 From bd4c824d9a4470adb5c10d8211db8eb1e50ba3ac Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 3 Feb 2013 01:06:21 +0100 Subject: [PATCH 09/16] remove '/' in filenames --- flexget/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexget/config.yml b/flexget/config.yml index e2431bd..83df729 100644 --- a/flexget/config.yml +++ b/flexget/config.yml @@ -66,6 +66,6 @@ tasks: move: to: "/mnt/Skaro/Series/{{series_name_tvdb}}/Season {{tvdb_season}}/" - filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{ep_name}} ({{ep_air_date|formatdate('%Y')}}){{'{'}}{{quality}}{{'}'}}[en]{{location|pathext}}" + filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{ep_name|replace('/','-')}} ({{ep_air_date|formatdate('%Y')}}){{'{'}}{{quality}}{{'}'}}[en]{{location|pathext}}" # vim: sts=2 ts=2 sw=2 et -- 2.49.0 From 46d7c472e0d6426a5ccb23fd56dbfa06944515d7 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 3 Feb 2013 23:44:34 +0100 Subject: [PATCH 10/16] give some color to darwin --- zsh/themes/ramsi.zsh-theme | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/themes/ramsi.zsh-theme b/zsh/themes/ramsi.zsh-theme index e0d852f..772777f 100644 --- a/zsh/themes/ramsi.zsh-theme +++ b/zsh/themes/ramsi.zsh-theme @@ -1,5 +1,6 @@ -[[ $(hostname) == "tardis" ]] && hostcolor=red -[[ $(hostname) == "shada" ]] && hostcolor=green +[[ $(hostname) == "tardis" ]] && hostcolor=red +[[ $(hostname) == "shada" ]] && hostcolor=green +[[ $(hostname) == "darwin" ]] && hostcolor=green PROMPT='%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[$hostcolor]%}%m%{$reset_color%}$(git_prompt_info)]%# ' RPROMPT='%{$fg[green]%}%~%{$reset_color%}' -- 2.49.0 From 80f1f8d00292330e3454c6c34dec097d6b33cb75 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 3 Feb 2013 23:45:10 +0100 Subject: [PATCH 11/16] different keyboard, different xmodmap --- Xmodmap_darwin | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Xmodmap_darwin diff --git a/Xmodmap_darwin b/Xmodmap_darwin new file mode 100644 index 0000000..d01a9f7 --- /dev/null +++ b/Xmodmap_darwin @@ -0,0 +1,18 @@ +keycode 37 = Super_L +keycode 49 = less greater less greater bar brokenbar bar +keycode 94 = grave asciitilde dead_grave dead_tilde +keycode 104 = ISO_Level3_Shift +keycode 133 = Control_L +keycode 134 = Control_R + +clear control +clear Mod4 +clear Mod5 + +add control = Control_L Control_R +add Mod4 = Super_L +add Mod5 = ISO_Level3_Shift + +! remap Caps_Lock as Escape +remove Lock = Caps_Lock +keysym Caps_Lock = Escape -- 2.49.0 From 1fb70938981945b487d3245a4c124ef6beecbb95 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 28 Feb 2013 22:47:31 +0100 Subject: [PATCH 12/16] split quality into separate {} --- flexget/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexget/config.yml b/flexget/config.yml index 83df729..985a54a 100644 --- a/flexget/config.yml +++ b/flexget/config.yml @@ -66,6 +66,6 @@ tasks: move: to: "/mnt/Skaro/Series/{{series_name_tvdb}}/Season {{tvdb_season}}/" - filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{ep_name|replace('/','-')}} ({{ep_air_date|formatdate('%Y')}}){{'{'}}{{quality}}{{'}'}}[en]{{location|pathext}}" + filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{ep_name|replace('/','-')}} ({{ep_air_date|formatdate('%Y')}}){{'{'}}{{quality|replace(' ','}{')}}{{'}'}}[en]{{location|pathext}}" # vim: sts=2 ts=2 sw=2 et -- 2.49.0 From ee99efb0df6b146d098b5b65cdbed8a61ecd9ff1 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 28 Feb 2013 22:48:23 +0100 Subject: [PATCH 13/16] add move-movies --- flexget/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/flexget/config.yml b/flexget/config.yml index 985a54a..cf45208 100644 --- a/flexget/config.yml +++ b/flexget/config.yml @@ -68,4 +68,17 @@ tasks: to: "/mnt/Skaro/Series/{{series_name_tvdb}}/Season {{tvdb_season}}/" filename: "{{tvdb_season}}x{{tvdb_episode|pad(2)}} {{ep_name|replace('/','-')}} ({{ep_air_date|formatdate('%Y')}}){{'{'}}{{quality|replace(' ','}{')}}{{'}'}}[en]{{location|pathext}}" + move-movies: + tmdb_lookup: yes + accept_all: yes + + find: + path: /mnt/Skaro/Movies.carsten + recursive: yes + regexp: '.*\.mkv$' + + move: + to: "/mnt/Skaro/Movies.flexed" + filename: "{{tmdb_name}} ({{tmdb_year}}){{'{'}}{{quality|replace(' ','}{')}}{{'}'}}[en][de].mkv" + # vim: sts=2 ts=2 sw=2 et -- 2.49.0 From c5eecb3d80e5715d909b0046b957927358ee48c9 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 10 Mar 2013 16:59:59 +0100 Subject: [PATCH 14/16] add mark as deps/explicit to aliases --- zsh/aliases/pacman.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/aliases/pacman.zsh b/zsh/aliases/pacman.zsh index 0568a59..af0dc9e 100644 --- a/zsh/aliases/pacman.zsh +++ b/zsh/aliases/pacman.zsh @@ -11,6 +11,8 @@ alias pacqi='pacman -Qii' # Display information about a given packa alias pacqs='pacman -Qs' # Search for package(s) in the local database alias pacl='pacman -Ql' # List all files owned by package(s) alias paco='pacman -Qo' # List package owning the given file(s) +alias pacdep='sudo pacman -D --asdeps' # Mark package as dependency +alias pacexp='sudo pacman -D --asexplicit' # Mark package as explicit alias pacinsd='sudo pacman -S --asdeps' # Install given package(s) as dependencies of another package alias pacmir='sudo pacman -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist -- 2.49.0 From 03a711523fc1e28a99d06711717d77f8be19bfa1 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 10 Mar 2013 17:00:31 +0100 Subject: [PATCH 15/16] new location for steam wrapper --- bin/steam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/steam b/bin/steam index cc5fb24..4822d9c 100755 --- a/bin/steam +++ b/bin/steam @@ -6,6 +6,6 @@ export STEAMWM_FIX_NET_WM_NAME=1 export STEAMWM_GROUP_WINDOWS=1 export STEAMWM_SET_WINDOW_TYPE=1 -export LD_PRELOAD="/home/ramsi/src/steamwm/steamwm.so:$LD_PRELOAD" +export LD_PRELOAD="/home/ramsi/src/steamwm/steamwm/steamwm.so:$LD_PRELOAD" exec /usr/bin/steam ${1:-"steam://open/games/"} -- 2.49.0 From e9baa486a75c74f11f7eecdcaf8176bcc931f292 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 10 Mar 2013 17:01:07 +0100 Subject: [PATCH 16/16] add rapidminer and weka launchers --- bin/RapidMinerGUI | 9 +++++++++ bin/weka | 5 +++++ 2 files changed, 14 insertions(+) create mode 100755 bin/RapidMinerGUI create mode 100755 bin/weka diff --git a/bin/RapidMinerGUI b/bin/RapidMinerGUI new file mode 100755 index 0000000..594138f --- /dev/null +++ b/bin/RapidMinerGUI @@ -0,0 +1,9 @@ +#!/bin/bash + +## set the maximum amount of memory Java uses here or in an environment variable +export MAX_JAVA_MEMORY=8192 + +## set the path to the files with additional operators here or in an environment variable +#RAPIDMINER_OPERATORS_ADDITIONAL= + +/usr/bin/RapidMinerGUI diff --git a/bin/weka b/bin/weka new file mode 100755 index 0000000..4c41ebe --- /dev/null +++ b/bin/weka @@ -0,0 +1,5 @@ +#!/bin/bash + +args='-Xms128M -Xmx2048M -cp /usr/share/java/weka/weka.jar:/usr/share/java/mariadb-jdbc/mariadb-java-client.jar' + +java $args weka.gui.GUIChooser -- 2.49.0