This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash - | |
FILE_SAVE_TEMPLATE="alsa_" | |
read_params() { | |
local number_card=$1 | |
local numidlist=$(amixer -D hw:"$number_card" controls | awk --re-interval 'BEGIN{FS=","}{print $1}') | |
local numarray=($numidlist) | |
local params=() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Item | |
constructor: (@url, @description, @tags = [], @firstname = '', @secondname = '') -> | |
@uid = gen_id.gen_item_uid() | |
Object.defineProperties @prototype, | |
fullname: | |
get: -> | |
@firstname + ' ' + @secondname | |
set: (name) -> | |
name = name.split ' ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.mp3; do mid3iconv -e CP1251 --remove-v1 $i; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo="bar" | |
awk "/$foo/"'{print $0}' some_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in * | |
do | |
number=$(echo "$i" | awk '{print $4}' | awk -F- '{print $1}') | |
name="some_" | |
ffmpeg -y -i "$i" -ab 320K -ar 44100 -ac 2 -acodec mp3 $name_$number.mp3 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
munpack $email_body.eml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For compare audio + video with sourche qualty | |
ffmpeg -i video.mp4 -i audio.m4a -c:v copy -c:a copy output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Record audio with arecord + twolame + VUmeter + High quality source audio | |
arecord -V "stereo" -D hw:0 -c 2 -f S16_LE -r 44100 | twolame --talkativity=0 -r -b 256 - record.mp3 | |
# Record audio with arecord + twolame + High quality source audio + without stdin output | |
arecord -q -D hw:0 -c 2 -f S16_LE -r 44100 | twolame --talkativity=0 -r -b 256 - record.mp3 | |
# Record audio with arecord + lame + High quality source audio + without stdin output + resample | |
arecord -q -D hw:0 -c 2 -f S16_LE -r 44100 | lame -m m --resample 44.1 -b 256 - record.mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NUM=$(gpaste history | dmenu -l 30 | sed 's/: .*//') && gpaste get $NUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.local/share/applications/mimeapps.list |
OlderNewer