Skip to content

Instantly share code, notes, and snippets.

View doanhvv's full-sized avatar

Doanh Vu doanhvv

View GitHub Profile
@doanhvv
doanhvv / phpcs_vscode_laragon.md
Last active July 19, 2025 17:10
PHPCS + PHP Fixed for VSCODE and Laragon

PHPCS + PHP Fixed for VSCODE and Laragon

1. Plugin:

  • junstyle.php-cs-fixer (fixed error)
  • ikappas.phpcs (find error)

2. Install Composer:

composer global require squizlabs/php_codesniffer

composer global require friendsofphp/php-cs-fixer

Gitlab Permission denied (publickey) error SOLVED

Permission denied (publickey)

Seems a very common error in Gitlab.com or any Gitlab implementation. Last night I spend 4/5 hours without sleeping to solve the error.

Cloning into 'server'...
Permission denied (publickey).
fatal: Could not read from remote repository.
@doanhvv
doanhvv / ffmpeg.md
Created April 21, 2020 02:03 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@doanhvv
doanhvv / run.bat
Last active October 24, 2019 03:04
@echo off
set count=1
for /f "tokens=*" %%a in (load.txt) do call :processline %%a
goto :eof
:processline
ffmpeg.exe -i %* -c copy -bsf:a aac_adtstoasc %count%.mp4