diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
commit | ca9627e70852f6b2e835660df870fe3ab405882d (patch) | |
tree | 0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-misc/ds-scripts/files | |
download | darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2 darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip |
Initial import
Diffstat (limited to 'app-misc/ds-scripts/files')
-rw-r--r-- | app-misc/ds-scripts/files/alias.sh.darklin.sh | 71 | ||||
-rw-r--r-- | app-misc/ds-scripts/files/ds-scripts.tar.bz2 | bin | 0 -> 1751 bytes | |||
-rw-r--r-- | app-misc/ds-scripts/files/ds-video.tar.bz2 | bin | 0 -> 3863 bytes | |||
-rwxr-xr-x | app-misc/ds-scripts/files/m3u | 48 |
4 files changed, 119 insertions, 0 deletions
diff --git a/app-misc/ds-scripts/files/alias.sh.darklin.sh b/app-misc/ds-scripts/files/alias.sh.darklin.sh new file mode 100644 index 0000000..09007de --- /dev/null +++ b/app-misc/ds-scripts/files/alias.sh.darklin.sh @@ -0,0 +1,71 @@ +########### For localised file names, without locale set +alias ls="ls --color --show-control-chars --quoting-style=escape" +alias la="ls -la --color --show-control-chars --quoting-style=escape" +alias l="ls -l --color --show-control-chars --quoting-style=escape" +########### Fast chdir +## RPM +alias rpm:="cd /usr/src/RPM" +alias specs:="cd /usr/src/RPM/SPECS" +alias srpms:="cd /usr/src/RPM/SRPMS" +alias rpms:="cd /usr/src/RPM/RPMS/i686" +## MNT +alias mnt:="cd /mnt" +alias a:="cd /mnt/a" +alias c:="cd /mnt/c" +alias d:="cd /mnt/d" +alias e:="cd /mnt/e" +alias f:="cd /mnt/f" +alias g:="cd /mnt/g" +alias mp3:="cd /mnt/mp3" +alias cdrom:="cd /mnt/cdrom" +alias cdn:="cd /mnt/cdrom" +alias cdr:="cd /mnt/cdr" +alias cd:="cd /mnt/cdrom" +alias cd2:="cd /mnt/cdrom2" +alias cd3:="cd /mnt/cdrom3" +alias temp:="cd /mnt/temp" +alias tmp:="cd /mnt/tmp" +alias tmp1:="cd /mnt/tmp1" +alias tmp2:="cd /mnt/tmp2" +alias tmp3:="cd /mnt/tmp3" +alias tmp4:="cd /mnt/tmp4" +alias tmp5:="cd /mnt/tmp5" +alias img:="cd /mnt/img" +alias img1:="cd /mnt/img1" +alias img2:="cd /mnt/img2" +alias img3:="cd /mnt/img3" +alias img4:="cd /mnt/img4" +alias img5:="cd /mnt/img5" +alias upload:="cd /mnt/upload" +alias download:="cd /mnt/download" +########### Mounts +alias mnt="mount" +## Floppy +alias ifdd="mount /dev/fd0" +alias efdd="umount /dev/fd0" +alias izip="modprobe parport_pc ; modprobe ppa ; mount /dev/sdb4" +alias ezip="umount /dev/sdb4" +## CD +alias icd="mount /dev/cdrom" +alias ecd="umount /dev/cdrom ; eject /dev/cdrom" +alias icd2="mount /dev/cdrom2" +alias ecd2="umount /dev/cdrom2 ; eject /dev/cdrom2" +alias icd3="mount /dev/cdrom3" +alias ecd3="umount /dev/cdrom3 ; eject /dev/cdrom3" +alias icdr="mount /dev/scd0" +alias ecdr="umount /dev/scd0 ; eject /dev/scd0" +## VFat +alias vmount="mount -t vfat -o noexec,quiet,iocharset=koi8-r,codepage=866" +alias ntmount="mount -t ntfs -o noexec,iocharset=koi8-r,umask=0222" +########### Libraries +alias iproxy="export LDP=$LD_PRELOAD ; export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libtsocks.so" +alias eproxy="export LD_PRELOAD=$LDP" +# alias l5="export LDLP=$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH=/usr/i486-linux-libc5/lib:$LD_LIBRARY_PATH" +# alias l6="export LD_LIBRARY_PATH=$LDLP" +########### Kernel +#alias kernel-load-lpcd="insmod paride ; insmod on26 ; insmod pcd" +alias module-compile="gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c" +########### Programms +alias vslick="/opt/vslick/bin/vs" +alias ica="/usr/lib/ICAClient/wfcmgr" +alias ooffice=ooffice2 diff --git a/app-misc/ds-scripts/files/ds-scripts.tar.bz2 b/app-misc/ds-scripts/files/ds-scripts.tar.bz2 Binary files differnew file mode 100644 index 0000000..6a5d8e5 --- /dev/null +++ b/app-misc/ds-scripts/files/ds-scripts.tar.bz2 diff --git a/app-misc/ds-scripts/files/ds-video.tar.bz2 b/app-misc/ds-scripts/files/ds-video.tar.bz2 Binary files differnew file mode 100644 index 0000000..f44b675 --- /dev/null +++ b/app-misc/ds-scripts/files/ds-video.tar.bz2 diff --git a/app-misc/ds-scripts/files/m3u b/app-misc/ds-scripts/files/m3u new file mode 100755 index 0000000..e5496a5 --- /dev/null +++ b/app-misc/ds-scripts/files/m3u @@ -0,0 +1,48 @@ +#! /bin/bash + +if [ -z "$1" ] +then + echo "Usage: m3u [ -f encoding -p encoding ] <playlist.m3u> [random]" + exit +fi + +if [ "$2" = "random" ] +then + prm="-Z -z" +else + prm="" +fi + +FSE=`cat /etc/m3u.conf | grep FSEncoding | sed s/'^[ \t]*FSEncoding[ \t]*=[ \t]*'//g | sed s/'[ \t]*'$//g` +PLE=`cat /etc/m3u.conf | grep PLEncoding | sed s/'^[ \t]*PLEncoding[ \t]*=[ \t]*'//g | sed s/'[ \t]*'$//g` + +pl=1 +while getopts 'f:p:' OPT; do + pl=`expr $pl + 2` + case $OPT in + f) + FSE=$OPTARG + ;; + p) + PLE=$OPTARG + ;; + esac +done + + +pl=`eval echo "\\$${pl}"` + +if [ -z "$FSE" -o -z "$PLE" ]; then + cmd="cat \"$pl\"" +else + cmd="cat \"$pl\" | iconv -f $PLE -t $FSE" +fi + +s=$(eval $cmd | grep -E "\.[mMoOwW][pPgGaA][23gGvV]" | sed s/
//g | sed s/'\\'/'\/'/g | sed s/^/\"/ | sed s/$/\"/ | perl -pi -e 's|\n| |gs' ) + +if [ -n "$prm" ] +then + eval mpg123 $prm "$s" +else + eval zinf "$s" +fi |