vim things, octopus and youtube2mp3

This commit is contained in:
Frank Villaro-Dixon 2013-10-27 22:07:20 +01:00
parent 3cfdcb9925
commit 1e22528510
3 changed files with 19 additions and 2 deletions

10
Utils/youtube2mp3 Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
x=~/.youtube-dl-$RANDOM-$RANDOM.flv
youtube-dl --output=$x --format=18 "$1"
#ffmpeg -i $x -f ogg -acodec copy -ac 2 -ab 128k -vn -y "$2"
#ffmpeg -threads 4 -i $x -f mp3 -vn -acodec copy "$2"
#ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$2"
#avconv -i $x -vn -ac 2 "$2"
ffmpeg -i $x -acodec libmp3lame "$2" -threads 4
rm $x

View file

@ -21,7 +21,7 @@ set number
set ts=8 "Un tab, huit espaces
set noexpandtab "On veut pas remplacer tab -> espace
set wrap "Une grande ligne continue à la ligne
"set mouse=a
set mouse=a
set hlsearch "On souligne les mots cherchés
set incsearch "recherche peu à peu
@ -148,3 +148,9 @@ autocmd BufNewFile,BufRead *.php set keywordprg=~/.vim/scripts/doc.php.sh
"JAVA
iabbr syso System.out.println
if bufwinnr(1)
map + <C-W>>
map - <C-W><
endif

View file

@ -29,7 +29,8 @@ setxkbmap -model pc104 -layout ch -variant fr -option compose:lwin
# xmodmap ~/.Xmodmap
#fi
$OCTOPUS init-all 1>&2 /dev/shm/Octopus_logs
$OCTOPUS init-all 1>&2 /dev/shm/Octopus_logs &
$OCTOPUS init-wifi 1>&2 /dev/shm/Octopus_logs &
while true; do
$OCTOPUS refresh