Skip to content

Instantly share code, notes, and snippets.

View alkavan's full-sized avatar
😀
sup?

Igal Alkon alkavan

😀
sup?
View GitHub Profile
@alkavan
alkavan / ffmpeg
Created August 28, 2019 06:16
FFMPEG Commands Help
# Extract JPEG images from video 1 frame per second (windows)
ffmpeg.exe -i .\GOPR4275.MP4 -vf fps=1 img\jeep-%6d.png
@alkavan
alkavan / dropwizard-ssl-keystore.md
Last active February 5, 2019 11:10
Dropwizard SSL Keystore
keytool -genkey -alias <aliasname> -keyalg RSA -keystore keystore.jks -keysize 2048

babel

npm install -D @babel/core @babel/polyfill @babel/preset-env babel-loader

eslint

npm install -D eslint babel-eslint
@alkavan
alkavan / openmvg-command-cheatsheet.sh
Last active May 29, 2018 08:37
OpenMVG Command CheatSheet
# This are "easy to use" instructions how to create point cloud data files
# extracting from a set of images using a technique called SfM or Structure from Motion:
# http://openmvg.readthedocs.io/en/latest/software/SfM/SfM/
# FFMPEG HELPERS:
# ffmpeg -i video.webm -vf fps=1 image%07d.jpg
export SFM_OUT_DIR=".sfm"
# Init SfM with OpenMVG
@alkavan
alkavan / magnum-pre-rpm.sh
Last active May 22, 2018 08:00
magnum-pre-rpm.sh
#/bin/bash
# RHEL Dependenices
sudo dnf group install -y 'Development Tools'
sudo dnf install -y gcc-c++ ninja cmake
sudo dnf install -y \
SDL2 \
SDL2-devel \
SDL2_net \
@alkavan
alkavan / php-7.2-anon-class-vs-array-mem.md
Last active April 10, 2018 22:36
PHP 7.2 Anonymous Class vs Array - Memory Test

PHP 7.2 real app usage:

public function jsonSerialize()
    {
        $m1 = memory_get_usage();
        $json_class = new class implements SpecExportInterface {
            public $id;
            public $status;
            public $code;
            public $title;
@alkavan
alkavan / centos-7_x-postgresql-9.6.md
Last active March 10, 2018 06:41
centos-7_x-postgresql-9 .6

Stage 1 - System update and common setup procedure

Update system

# yum update

Set system time to UTC timezone

# timedatectl set-timezone UTC
@alkavan
alkavan / centos-7_x-scylladb-cluster.md
Last active March 28, 2019 01:32
ScyllaDB on CentOS 7.x (install instructions)

Stage 1 - System update and common setup procedure

Update system

# yum update

Set system time to UTC timezone

# timedatectl set-timezone UTC
@alkavan
alkavan / centos-7_x-percona-5_7-server-cluster.md
Last active September 29, 2017 09:33
CentOS-7_x-Percona-5_7-Server-Cluster

Stage 1 - System update and common setup procedure

Update system

# yum update

Set system time to UTC timezone

# timedatectl set-timezone UTC
@alkavan
alkavan / centos-7-gcp-1_gpu-bootstrap.md
Last active August 13, 2017 17:40
CentOS 7.x - Google Cloud - 1 GPU - Bootstrap Instructions

Bootstrap Instructions

CentOS 7.x | Google Cloud | 1 GPU

Stage 1 - System update and common setup procedure

Update system

# yum update