lame -q 0 --vbr-old -V 4 $INPUT $OUTPUTffmpeg -i "audio.m4a" -f wav "audio.wav"
lame -q 0 --vbr-old -V 4 --add-id3v2 --pad-id3v2 --ta "Artist" --tt "Title" --tl "Album" --tv "TPE2=Album Artist" "audio.wav" "audio.mp3"| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import json | |
| import re | |
| import requests | |
| # import requests_cache | |
| import os | |
| import hashlib |
| # percol-cdr my custom | |
| setopt BASH_REMATCH | |
| function percol-cdr () { | |
| local selected_line="$( cdr -l | percol )" | |
| if [ -n "$selected_line" ]; then | |
| if [[ "$selected_line" =~ ^[0-9]+ ]]; then | |
| local selected_num=$BASH_REMATCH[1] | |
| cdr $selected_num > /dev/null | |
| else |
| function getSheet() { | |
| return SpreadsheetApp.getActiveSheet(); | |
| } | |
| function getColumnByName(sheet, string) { | |
| var lastCol = sheet.getLastColumn(); | |
| var range = sheet.getRange(1, 1, 1, lastCol) | |
| var values = range.getValues()[0]; | |
| for (i=0; i<lastCol; i++) { |
| #!/usr/bin/env python | |
| # Usage: | |
| # $ ./m3u8_mod.py $M3U8URL | ffmpeg -allowed_extensions ALL -protocol_whitelist pipe,file,http,https,tcp,tls,crypto -i - -movflags faststart -c copy out.mp4 | |
| import sys | |
| import requests | |
| import re | |
| if __name__ == u'__main__': | |
| m3u8_url = sys.argv[1] |
lame -q 0 --vbr-old -V 4 $INPUT $OUTPUTffmpeg -i "audio.m4a" -f wav "audio.wav"
lame -q 0 --vbr-old -V 4 --add-id3v2 --pad-id3v2 --ta "Artist" --tt "Title" --tl "Album" --tv "TPE2=Album Artist" "audio.wav" "audio.mp3"gs -sDEVICE=pdfwrite -dNOPAUSE -dCompatibilityLevel=1.4 -sOutputFile=test.pdf -dFITPAGE -- "viewpbm.ps" image-0000.pbm image-0001.pbm image-0002.pbm# using viewpbm.ps directly is ok, but unexpected page margin is generated...
convert *.png tmp.pdf
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterMonoImages=false -dMonoImageFilter=/CCITTFaxEncode -dCompatibilityLevel=1.4 -sOutputFile=out.pdf -dFITPAGE -- tmp.pdfLANG=C apt-get -s dist-upgrade | grep "^Inst" | grep -i security | cut -d ' ' -f 2 | xargs sudo apt-get installhttps://askubuntu.com/questions/194/how-can-i-install-just-security-updates-from-the-command-line
ps auxw | grep Xorg
# you'll see something like
# Xorg vt1 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
# check the -auth value
export XAUTHFILE=/run/user/1000/gdm/Xauthority
x11vnc -display :0 -auth "$XAUTHFILE" -noxdamage -forever