Skip to content

Instantly share code, notes, and snippets.

View a1mzone's full-sized avatar

Zakk a1mzone

  • S.A.
View GitHub Profile
@a1mzone
a1mzone / ffmpeg.md
Last active June 12, 2020 07:51 — forked from protrolium/ffmpeg.md
Cheatsheet - ffmpeg

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:

@a1mzone
a1mzone / python.md
Last active January 5, 2024 08:27
Python
@a1mzone
a1mzone / bash.md
Last active July 13, 2020 08:32
Cheatsheet - BASH

BASH

Find Terminal

ps | grep $$
which 

!#/bin/terminal

Variables

@a1mzone
a1mzone / gh.md
Last active January 4, 2024 11:12
GeoHash Sizing

GeoHash Size

1 ≤ 5,000km × 5,000km
2 ≤ 1,250km × 625km
3 ≤ 156km × 156km
4 ≤ 39.1km × 19.5km
5 ≤ 4.89km × 4.89km
6 ≤ 1.22km × 0.61km
7 ≤ 153m × 153m
8 ≤ 38.2m × 19.1m

@a1mzone
a1mzone / superset-install.md
Last active December 13, 2022 18:35
Apache Superset - ubuntu 20.04 Install

Apache Superset - Ubuntu 20.04LTS

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev default-libmysqlclient-dev  libpq-dev python3-dev

mkvirtualenv -p python3.8 superset-3.8

pip install --upgrade setuptools pip

pip install apache-superset==2.0.0
@a1mzone
a1mzone / spatial_functions.md
Last active January 9, 2024 13:34
Spatial Queries

GeoMesa Spark

MakePolygon

ST_MakePolygon(ST_ExteriorRing(ST_Collect(
st_makepoint(28.1833495,-26.0544965),
st_makepoint(28.1837932,-26.0604524),
st_makepoint(28.1833495,-26.0544965))))

PolygonFromText

@a1mzone
a1mzone / k8s.md
Last active January 23, 2024 11:17
K8S & Helm
@a1mzone
a1mzone / zsh.md
Last active January 26, 2024 09:15
ZSH Setup
@a1mzone
a1mzone / mlx.md
Last active June 21, 2024 19:58
Mellanox Flash
@a1mzone
a1mzone / nifi.md
Last active April 10, 2025 14:45
NiFi

NiFi 2 - SNI ERROR 400 due to Jetty

Create a new PCKS12 keystore

keytool -genkeypair -alias nifi-cert -keyalg RSA -keysize 2048 -validity 365 -keystore keystore.p12 -storetype PKCS12 -dname "CN=10.3.0.1, OU=MyOrg, O=MyCompany, L=MyCity, S=MyState, C=US" -ext "SAN=IP:10.3.0.1"

Export Cert

keytool -exportcert -alias nifi-cert -file nifi-cert.crt -keystore keystore.p12 -storetype PKCS12