pip install scan-build
included bellow
intercept-build xcodebuild move the compile_commands.json to the base of your directory
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
set -x | |
FILTERGRAPH="[0:v]pad=iw:2*trunc(iw*16/18):(ow-iw)/2:(oh-ih)/2[padded];[padded]scale=1080:1920[resized];[resized][1:v]overlay" | |
echo "nullscr,$FILTERGRAPH,nullsink" | graph2dot | |
false | |
for f in $(find input -type f); do |
export GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519_example -F /dev/null" | |
export GIT_AUTHOR_NAME='example' | |
export GIT_AUTHOR_EMAIL='example@gmail.com' | |
export GIT_COMMITTER_NAME='example' | |
export GIT_COMMITTER_EMAIL='example@gmail.com' | |
ssh-add -l | grep example || ssh-add ~/.ssh/id_ed25519_example |
# folder repository | |
# ./ #<-- destination folder | |
# ./originals/any.pdf #<-- any number of pdfs to convert, originals | |
# ./originals/unpaper.sh #<-- this script | |
# inspired from https://gist.github.com/legumbre/1182280/60c3bfc13b9d89b57fef733f67ad60de2624be6a | |
set -x | |
for i in *.pdf; do | |
gs -q -dNOPAUSE -dBATCH -sDEVICE=ppmraw -sOutputFile=%04d.ppm "$i" | |
for f in *.ppm; do |
# dont normalize here if songs have different intensity, for example quiet intro song followed by loud pop song | |
# from http://normalize.nongnu.org/README.html | |
# normalize -bv *.wav | |
# from https://gist.github.com/championofblocks/3982727 | |
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done | |
# from https://askubuntu.com/questions/65331/how-to-convert-a-m4a-sound-file-to-mp3 | |
# + https://askubuntu.com/questions/385636/what-is-the-proper-way-to-convert-flac-files-to-320-kbit-sec-mp3 | |
find . -type f -name '*.m4a' -exec bash -c 'avconv -i "$0" -qscale:a 0 "${0/%m4a/mp3}"' '{}' \; |
# check if all docker-compose containers are properly running | |
bash -c "(diff <(cd /srv && /usr/bin/local/docker-compose ps --services --filter "status=running") <(cd /srv && /usr/bin/local/docker-compose ps --services) || /usr/bin/local/docker-compose up -d) >> /var/log/crontab-root-dbg.log" |
"call make from the root folder | |
let &l:makeprg = 'cd ' . expand('<sfile>:p:h') . ' && make' | |
augroup fix_path_for_catch2_output_results | |
autocmd! | |
au QuickFixCmdPre * lcd <sfile>:p:h/build | |
augroup END |
pip install scan-build
included bellow
intercept-build xcodebuild move the compile_commands.json to the base of your directory
""" a big WIP, as I discovered that VS2019 supports the export """ | |
import os | |
import subprocess | |
import shutil | |
import contextlib | |
import tempfile | |
SRC_DIR=(os.path.dirname(os.path.realpath(__file__))) | |
@contextlib.contextmanager |
" only use linters that uses compile_commands.json | |
let g:ale_linters.cpp = ['clangcheck', 'clangtidy', 'cppcheck'] | |
" various options for clang_complete | |
set concealcursor=inv | |
let g:clang_snippets = 1 | |
set completeopt=menu,longest | |
let g:clang_complete_optional_args_in_snippets = 1 | |
let g:clang_trailing_placeholder = 1 |