Initial import
This commit is contained in:
commit
7bc6d729f7
|
@ -0,0 +1,3 @@
|
|||
#
|
||||
# ~/.bash_logout
|
||||
#
|
|
@ -0,0 +1,5 @@
|
|||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
export PATH=$PATH:/home/jpt/bin
|
|
@ -0,0 +1,26 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=46
|
||||
sort_direction=1
|
||||
hide_threads=0
|
||||
hide_kernel_threads=0
|
||||
hide_userland_threads=0
|
||||
shadow_other_users=1
|
||||
show_thread_names=1
|
||||
show_program_path=1
|
||||
highlight_base_name=1
|
||||
highlight_megabytes=1
|
||||
highlight_threads=1
|
||||
tree_view=1
|
||||
header_margin=1
|
||||
detailed_cpu_time=1
|
||||
cpu_count_from_zero=0
|
||||
update_process_names=0
|
||||
account_guest_in_cpu_meter=1
|
||||
color_scheme=0
|
||||
delay=15
|
||||
left_meters=LeftCPUs Memory Swap
|
||||
left_meter_modes=1 1 1
|
||||
right_meters=RightCPUs Tasks LoadAverage Uptime
|
||||
right_meter_modes=1 2 2 2
|
|
@ -0,0 +1,15 @@
|
|||
top's Config File (Linux processes with windows)
|
||||
Id:i, Mode_altscr=0, Mode_irixps=1, Delay_time=0.500, Curwin=3
|
||||
Def fieldscur=¥&K¨³´»½@·º¹56ÄFÅ')*+,-./0128<>?ABCGHIJLMNOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=162740, sortindx=21, maxtasks=0, graph_cpus=1, graph_mems=2
|
||||
summclr=1, msgsclr=1, headclr=3, taskclr=1
|
||||
Job fieldscur=¥¦¹·º(³´Ä»½@<§Å)*+,-./012568>?ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=163124, sortindx=0, maxtasks=0, graph_cpus=2, graph_mems=0
|
||||
summclr=6, msgsclr=6, headclr=7, taskclr=6
|
||||
Mem fieldscur=¥º»<½¾¿ÀÁMBNÃD34·Å&'()*+,-./0125689FGHIJKLOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=163124, sortindx=21, maxtasks=0, graph_cpus=2, graph_mems=0
|
||||
summclr=5, msgsclr=5, headclr=4, taskclr=5
|
||||
Usr fieldscur=¥¦§¨ª°¹·ºÄÅ)+,-./1234568;<=>?@ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
|
||||
winflags=162740, sortindx=11, maxtasks=0, graph_cpus=2, graph_mems=0
|
||||
summclr=3, msgsclr=3, headclr=2, taskclr=3
|
||||
Fixed_widest=0, Summ_mscale=2, Task_mscale=1, Zero_suppress=0
|
|
@ -0,0 +1,29 @@
|
|||
" enable syntax highlighting
|
||||
syntax enable
|
||||
|
||||
" dark background
|
||||
set background=dark
|
||||
|
||||
" show line numbers
|
||||
set number
|
||||
|
||||
" set tabs to have 4 spaces
|
||||
set ts=4
|
||||
|
||||
" indent when moving to the next line while writing code
|
||||
set autoindent
|
||||
|
||||
" expand tabs into spaces
|
||||
set expandtab
|
||||
|
||||
" when using the >> or << commands, shift lines by 4 spaces
|
||||
set shiftwidth=4
|
||||
|
||||
" show a visual line under the cursor's current line
|
||||
set cursorline
|
||||
|
||||
" show the matching part of the pair for [] {} and ()
|
||||
set showmatch
|
||||
|
||||
" enable all Python syntax highlighting features
|
||||
let python_highlight_all = 1
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
sudo pacman -Syu --noconfirm
|
||||
pacaur -Syau --noconfirm --noedit
|
||||
sudo pacman -Syu --noconfirm
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
rsync --recursive --times --update --delete-after --force --progress rsync://192.168.0.106/music /media/Daten/Media/Musik/
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
rsync --recursive --times --update --delete-after --force --progress /media/Daten/Media/Musik/ jpt@backup.jpt.lu:/home/jpt/Music/
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
rsync --recursive --times --update --delete-after --force --progress /media/Daten/Media/Musik/ rsync://192.168.0.106/music
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
USAGE="Usage: $0 target file1 file2 file3 ..."
|
||||
|
||||
if [ "$#" == "0" ]; then
|
||||
echo "$USAGE"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TARGET=$1
|
||||
shift
|
||||
|
||||
while (( "$#" )); do
|
||||
echo "Copying '$1' to '$TARGET'."
|
||||
rsync --inplace --recursive --progress "$1" "$TARGET"
|
||||
shift
|
||||
done
|
|
@ -0,0 +1,54 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Base wget command
|
||||
BASE_CMD="wget -r -c --no-host-directories --no-parent --reject='index.html*'"
|
||||
|
||||
# Let's get the URL first
|
||||
if [ "$1" == "" ]; then
|
||||
echo "No url given!" >&2
|
||||
exit 1
|
||||
else
|
||||
PARAM_URL="'$1'"
|
||||
shift
|
||||
fi
|
||||
|
||||
# Collect non-essential parameters and build the final command to run
|
||||
FINAL_CMD="$BASE_CMD"
|
||||
|
||||
# Collect rate limit
|
||||
if [ "$1" != "" ]; then
|
||||
PARAM_LIMIT="--limit-rate='$1'"
|
||||
FINAL_CMD="$FINAL_CMD $PARAM_LIMIT"
|
||||
fi
|
||||
shift
|
||||
|
||||
# Collect user + pass, error out if one is missing
|
||||
if [ "$1" != "" ]; then
|
||||
PARAM_USER="--user='$1'"
|
||||
shift
|
||||
# Collect password, too
|
||||
if [ "$1" == "" ] ; then
|
||||
echo "User given, but password missing?!" >&2
|
||||
exit 1
|
||||
else
|
||||
PARAM_PASS="--password='$1'"
|
||||
fi
|
||||
FINAL_CMD="$FINAL_CMD $PARAM_USER $PARAM_PASS"
|
||||
fi
|
||||
shift
|
||||
|
||||
# Append URL and that's it.
|
||||
FINAL_CMD="$FINAL_CMD $PARAM_URL"
|
||||
|
||||
# Debug output
|
||||
echo "-------------------------------------"
|
||||
echo "PARAM_LIMIT: $PARAM_LIMIT"
|
||||
echo "PARAM_USER: $PARAM_USER"
|
||||
echo "PARAM_PASS: $PARAM_PASS"
|
||||
echo "PARAM_URL: $PARAM_URL"
|
||||
echo "-------------------------------------"
|
||||
echo "Running command: $FINAL_CMD"
|
||||
echo "-------------------------------------"
|
||||
echo ""
|
||||
eval $FINAL_CMD
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
FILE=$1
|
||||
if [ "$FILE" = "" ]; then
|
||||
echo "Usage: $0 <file>" >&2
|
||||
exit 1
|
||||
else
|
||||
curl -F "file=@$FILE" https://x0.at/
|
||||
fi
|
||||
echo ""
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
# load settings from config file
|
||||
. /etc/default/grub
|
||||
|
||||
# create config
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
# install on ssd and hdd
|
||||
#grub-install --modules="$GRUB_PRELOAD_MODULES" /dev/sda
|
||||
grub-install --modules="$GRUB_PRELOAD_MODULES" /dev/sdb
|
||||
|
||||
# sync and that's it
|
||||
sync
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
|
||||
db=$tmp/db
|
||||
fs=$tmp/fs
|
||||
|
||||
mkdir "$tmp"
|
||||
trap 'rm -rf "$tmp"' EXIT
|
||||
|
||||
pacman -Qlq | sort -u > "$db"
|
||||
|
||||
find /etc /opt /usr ! -name lost+found \( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
|
||||
|
||||
comm -23 "$fs" "$db"
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
|
||||
db=$tmp/db
|
||||
fs=$tmp/fs
|
||||
|
||||
mkdir "$tmp"
|
||||
|
||||
pacman -Qlq | sort -u > "$db"
|
||||
|
||||
find /bin /etc /lib /sbin /usr \
|
||||
! -name lost+found \
|
||||
\( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
|
||||
|
||||
comm -23 "$fs" "$db"
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
Cnt="Germany";
|
||||
awk -v GG=$Cnt '{if(match($0,GG) != "0")AA="1";if(AA == "1"){if( length($2) != "0" )print substr($0,2) ;else AA="0"} }' /etc/pacman.d/mirrorlist.pacnew > /etc/pacman.d/mirrorlist.germany
|
||||
rankmirrors -n 6 /etc/pacman.d/mirrorlist.germany > /etc/pacman.d/mirrorlist
|
||||
rm /etc/pacman.d/mirrorlist.germany
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
hdparm -y /dev/sdc
|
||||
hdparm -y /dev/sdd
|
||||
|
Loading…
Reference in New Issue