Skip to content

Instantly share code, notes, and snippets.

View makinuk's full-sized avatar

Mustafa AKIN makinuk

View GitHub Profile
@makinuk
makinuk / poetry.md
Created February 9, 2024 21:26
poetry
  • set python version poetry env use 3.10
  • install dependencies poetry install
@makinuk
makinuk / php82.Dockerfile.md
Last active August 28, 2023 18:12
php 8.2 with docker

create Dockerfile

FROM php:8.2-cli
# INSTALL ZIP TO USE COMPOSER
RUN apt-get update && apt-get install -y \
    zlib1g-dev \
    libzip-dev  \
 unzip \
@makinuk
makinuk / create-vod-hls-gpu.sh
Created June 13, 2023 20:31 — forked from maitrungduc1410/create-vod-hls-gpu.sh
Bash scripts to create VOD HLS stream with ffmpeg using GPU
#!/usr/bin/env bash
START_TIME=$SECONDS
set -e
echo "-----START GENERATING HLS STREAM-----"
# Usage create-vod-hls-gpu.sh SOURCE_FILE [OUTPUT_NAME]
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1
# comment/add lines here to control which renditions would be created
renditions=(
@makinuk
makinuk / #keycloack
Last active September 12, 2022 13:00
Keccloak On Docker
Running Keycloak on docker
https://www.keycloak.org/server/all-config#_database
@makinuk
makinuk / do-kubernetes.md
Last active May 17, 2020 20:42
DigitalOcean Kubernetes

Cluster Access

% doctl kubernetes cluster kubeconfig save kube-test
Notice: adding cluster credentials to kubeconfig file found in "/Users/makin/.kube/config"
Notice: setting current-context to do-fra1-kube-test

Ingress installation

Power Shell Usefull commands

Search running process with command line. Don't forget replace SEARCHTEXT with what you want

$ Get-WmiObject win32_Process | where-object {$_.CommandLine -like "*SEARCHTEXT*"} | Select-Object ProcessId,CommandLine,ProcessName,CreationDate | Format-List

Prepare Machine

sudo yum install epel-release
sudo yum update

Install Nginx

diff -ruN ffmpeg-orig/libavcodec/Makefile ffmpeg/libavcodec/Makefile
--- ffmpeg-orig/libavcodec/Makefile 2016-03-04 00:17:21.166198276 +0200
+++ ffmpeg/libavcodec/Makefile 2016-03-04 00:18:17.583433360 +0200
@@ -102,7 +102,7 @@
motion_est.o ratecontrol.o \
mpegvideoencdsp.o
OBJS-$(CONFIG_MSS34DSP) += mss34dsp.o
-OBJS-$(CONFIG_NVENC) += nvenc.o
+OBJS-$(CONFIG_NVENC) += nvenc.o nvenc_ptx.o
OBJS-$(CONFIG_PIXBLOCKDSP) += pixblockdsp.o

Solr 6.1.0 setup on CentOS 7

  • install java yum install java
  • download solr wget http://www.us.apache.org/dist/lucene/solr/6.1.0/solr-6.1.0.tgz
  • extract the service installation file: tar xzf solr-6.1.0.tgz solr-6.1.0/bin/install_solr_service.sh --strip-components=2
  • install solr as service sudo ./install_solr_service.sh solr-6.1.0.tgz
  • check solr status /etc/init.d/solr status

Create solr search collection

 sudo su - solr -c "/opt/solr/bin/solr create -c core-name-for-solr -n data_driven_schema_configs"