Skip to content

Instantly share code, notes, and snippets.

View moalex's full-sized avatar
🫛
Farting

moalex moalex

🫛
Farting
View GitHub Profile

M3U Playlist Exmple

Examples

Ниже приведен пример файла extended M3U на платформе Windows. Песня.mp3 и Песня.ogg — это медиафайлы, 123 и 321 — длительность. Если продолжительность медиафайла неизвестна, в параметре длительность можно указать −1 (обычно указывают для потоков: онлайн-радио, телевидение, вещание). После параметра длительность указывается параметр название, который по умолчанию эквивалентен пути файла, что указывается во второй строке. На платформах Mac OS X и Linux используются Unix путь.

#EXTM3U
@moalex
moalex / aria2.conf
Created January 16, 2022 14:26 — forked from dinigo/aria2.conf
Aria2c config files and init scripts
# place under ${HOME}/.aria2/
# Daemonize, rpc and session save.
# The daemon is launched by the rpc query and
# stops when all downloads are completed.
continue
daemon=true
on-download-complete=exit
dir=/home/**youruser**/path/to/download/folder

ImageMagic Color Invert

ImageMagick 6

Can invert color intensities with -negate option only)

[-negate][neg]

Apache run as current user

Create a new usergroup webdev and add the www-data user to it.

sudo addgroup webdev
sudo adduser www-data webdev
@moalex
moalex / moalex-custom-layout.md
Last active January 14, 2022 16:34
Blutooth Keyboard Custom Layout

[Blutooth Keyboard Custom Layout][@]

moalex-custom.layout

Links

@moalex
moalex / atomicparsley-help.md
Last active February 22, 2022 13:57
AtomicParsley - Help page for setting iTunes-style metadata into MPEG-4 files

[AtomicParsley][@]

Help page for setting iTunes-style metadata into MPEG-4 files.


atomicparsley [mp4FILE]... [OPTION]... [ARGUMENT]... [ [OPTION2]...[ARGUMENT2]...] 
@moalex
moalex / string-is-empty.sh
Created October 12, 2021 11:58
bash :: Пустая ли строка
#!/bin/bash
val1="testing"
val2=''
### Не пустая ли строка
if [ -n $val1 ]; then
echo "Строка '$val1' не пустая"
else
echo "Строка '$val1' пустая"
@moalex
moalex / aria2c.md
Last active January 22, 2024 18:09
@moalex
moalex / nnn-wiki.md
Created May 31, 2021 12:02
nnn-wiki

Dependencies

A curses library with wide char support (e.g. ncursesw), libc and libreadline (optional).

Utility deps Install? Operation
xdg-open (Linux), open(1) (macOS), cygstart (Cygwin), open (Haiku) base default opener
file, coreutils (cp, mv, rm), xargs, sed (gnu-sed on macOS) base file type, copy, (re)move
tar, (un)zip [atool/bsdtar for more formats] base create, list, extract bzip2, (g)zip, tar
archivemount, fusermount(3)/umount (macOS) optional (un)mount archives

[MediaInfo][h]

Usage

mediainfo [-Options...] FileName1 [Filename2...]"