Skip to content

Instantly share code, notes, and snippets.

View mveeneman's full-sized avatar

Mourad Veeneman mveeneman

View GitHub Profile
title author date output
Setting up git on local Synology
Mourad Veeneman
November 3, 2018
html_document

Git on local Synology

This is how I set up my private repository on my own Synology drive.

@mveeneman
mveeneman / NVIDIA.md
Last active November 27, 2018 16:33
Latest versions of NVIDIA CUDA 9.1, OpenCV 3.4 and TensorFlow 1.8 on Ubuntu 18.04 LTS
title author date output
Installing the latest versions of NVIDIA CUDA 9.1, OpenCV 3.4 and TensorFlow 1.8 on Ubuntu 18.04 LTS
Mourad Veeneman
July 23, 2018
html_document

Installing the latest versions of NVIDIA CUDA 9.1, OpenCV 3.4 and TensorFlow 1.8 on Ubuntu 18.04 LTS

Installing CUDA from the NVIDIA repository is not advisable if you want the latest versions of OpenCV and TensorFlow all to work together seamlesly.

/* SimpleApp.scala */
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
object WordCountApp {
def main(args: Array[String]) {
val conf = new SparkConf().setAppName("WordCount Application")
val sc = new SparkContext(conf)
val textFile = sc.textFile("file:///mnt/Data/textfile.txt")
@mveeneman
mveeneman / README.md
Last active March 25, 2019 12:41
Quick install Cuda 10.0 and Tensorflow on Ubuntu 18.04
title author date output
Install for Cuda 10.0 Tensorflow on Ubuntu 18.04
Mourad Veeneman
November 26, 2018
html_document

Install for Cuda 10.0 Tensorflow on Ubuntu 18.04

This will show you how to install tensorflow with NVIDIA's Cuda 10.0 GPU environment on Ubuntu 18.04.

@mveeneman
mveeneman / MakeTestFileOpHDFS.sh
Created October 8, 2019 07:34
Create a test file on HDFS in /tmp folder
#!/bin/bash
cat > testfile.txt << EOF
"id","name"
101,"Pietje"
123,"Jantje"
222,"Klaasje"
223,"Katrien"
EOF
hadoop fs -copyFromLocal testfile.txt /tmp
hadoop fs -chmod 777 /tmp/testfile.txt
@mveeneman
mveeneman / search.sh
Created April 2, 2020 18:48
Search dynamodb with aws cli
#!/bin/bash
#
# When you want to get object my_key_id=="string_value" in DynamoDB
#
aws dynamodb get-item --table-name <table_name> --key ‘{“my_key_id": {“S”:”string_value”}}’
@mveeneman
mveeneman / gist:80072081bfbede8dec389c6f8239781c
Created December 26, 2018 14:54
Extract video plus single audio from mkv using ffmpeg

This takes video track and second audio track

ffmpeg -i .mkv -map 0:0 -map 0:2 -vcodec copy -acodec copy .mkv

@mveeneman
mveeneman / get-kubectl-eks.md
Last active March 19, 2023 11:40
Getting the right kubectl for EKS cluster on Ubuntu

Getting the right kubectl for EKS cluster on Ubuntu

First make sure you use the latest aws-cli version

pip install awscli --upgrade

Find out your EKS cluster version

aws eks list-clusters
@mveeneman
mveeneman / convert m3u8 to mp4
Created May 25, 2020 07:47
How to quickly convert m3u8 to mp4 using ffmpeg
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i <file>.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4