Skip to content

Instantly share code, notes, and snippets.

View cnglish's full-sized avatar

cnglish cnglish

  • Nobody
  • Nowhere
View GitHub Profile
@cnglish
cnglish / ffmpeg.md
Created September 30, 2024 04:45 — forked from protrolium/ffmpeg.md
ffmpeg guide

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

You can get the list of installed codecs with:

@cnglish
cnglish / AdbCommands
Created June 24, 2024 01:52 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@cnglish
cnglish / ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
Created March 27, 2023 06:32 — forked from Brainiarc7/ffmpeg-qsv-enabled-build-ubuntu-18.04lts-testbed.md
This gist will generate an Intel QSV-enabled FFmpeg build using the open source Intel Media SDK. Testbed used: Ubuntu 18.04LTS. A fallback is also provided for the intel vaapi driver where needed.

Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:

Build platform: Ubuntu 18.04LTS

Ensure the platform is up to date:

sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade

Install baseline dependencies first (inclusive of OpenCL headers+)

@cnglish
cnglish / gist:9432a7a626a187e9524d94f291915be6
Created March 3, 2023 08:00 — forked from Atem18/gist:4696071
Tutorial to seting up a django website in production.

Set up Django, Nginx and Gunicorn in a Virtualenv controled by Supervisor

Steps with explanations to set up a server using:

  • Virtualenv
  • Virtualenvwrapper
  • Django
  • Gunicorn
@cnglish
cnglish / git-svn notes.txt
Created April 14, 2021 08:20 — forked from dcarney/git-svn notes.txt
Some hastily-scribbled notes about using git-svn with our existing git repos
Set the SVN_EDITOR var:
# export SVN_EDITOR=vim
==================================
SETTING UP A NEW SVN PROJECT
==================================
Create a new SVN "repo" (aka folder):
(NOTE: https is required for our new SVN, as well as --username)
# svn mkdir https://some/url/path/to/newRepo --username first.last
@cnglish
cnglish / sector2file.sh
Created September 17, 2019 01:52 — forked from sennajox/sector2file.sh
find the file by sector in filesystem
#!/bin/bash
# sector_list sample as below:
# 0
# 512
# 4087578
# 4087579
# 6324224
#
# You should build a sector_list firstly, and then execute this script to catch the files