Skip to content

Instantly share code, notes, and snippets.

@pleshevskiy
pleshevskiy / concat-videos.md
Created January 9, 2021 10:55
How to concatenate video files
  1. Bulk rename files via nomino [Optional]
  2. Add inputs.txt with files in format:
    file video1.mp4
    file video2.mp4
    ...
    
  3. ffmpeg -f concat -i inputs.txt -c copy out.mp4
@pleshevskiy
pleshevskiy / get_http_status_of_request.sh
Created March 10, 2021 12:41
Get only http status of request via curl
curl -o /dev/null -s -w "%{http_code}\n" http://localhost
@pleshevskiy
pleshevskiy / install.ubuntu.sh
Last active September 6, 2021 19:28
Install wifi adapter (rtl88x2bu)
git clone https://github.com/cilynx/rtl88x2bu.git
cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

GraphQL introspection query via curl

curl -i -X POST http://localhost:8080/graphql -H "Content-Type: application/json" -d @introspection_query.json