Skip to content

Instantly share code, notes, and snippets.

View langheran's full-sized avatar
🎧
Automation Ninja 🐱‍👓

Nisim Hurst-Tarrab langheran

🎧
Automation Ninja 🐱‍👓
View GitHub Profile
@langheran
langheran / plantuml.txt
Created June 11, 2019 21:55
PlantUML Gantt
@startgantt
Project starts the 15th of june 2017
[Angular2 and ReactJS training] as [T1] lasts 13 days and is colored in Lavender/LightBlue
[Alerts web design] as [T2] lasts 13 days and is colored in Lavender/LightBlue and starts 3 days before [T1]'s end
[Alerts web programming] as [T3] lasts 9 days and is colored in Coral/Green and starts the 1st of july 2017
[Alerts web prototype tunning] as [T4] lasts 10 days and is colored in Coral/Green and starts 3 days before [T3]'s end
[Deploy] as [T8] lasts 4 days and starts 3 days after [T4]'s start
[Data Models] as [T5] lasts 5 days and is colored in Coral/Green and starts 2 days before [T4]'s end
[Mongo training] as [T6] lasts 3 days and is colored in Lavender/LightBlue and starts 3 days before [T5]'s end
[Alerts icons] as [T7] lasts 5 days and is colored in Coral/Green and starts 4 days after [T5]'s end
@langheran
langheran / cmake-tools-kits.json
Created June 12, 2019 21:36
CMake Tools for VSCode CUDA C configuration.
[
{
"name": "Clang 6.0.0 for MSVC with VisualStudio.14.0 (amd64)",
"visualStudio": "VisualStudio.14.0",
"visualStudioArchitecture": "amd64",
"compilers": {
"C": "C:\\Program Files\\LLVM\\bin\\clang-cl.exe",
"CXX": "C:\\Program Files\\LLVM\\bin\\clang-cl.exe"
}
},
@langheran
langheran / increase_audio.bat
Created June 28, 2019 20:48
Increase the audio of a mp4 video.
ffmpeg -n -threads 16 -i "input.mp4" -c:v copy -c:a aac -af "volume=10.0" -preset superfast "output.mp4"
@langheran
langheran / install-debug.bat
Last active July 2, 2019 19:18
Debug install script for DLib.
cd C:\dlib-19.8
rd /s /q build
mkdir build
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
cmake -G "Ninja" ^
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON ^
@langheran
langheran / install-release.bat
Created July 2, 2019 19:18
DLib release install.
cd C:\dlib-19.8
rd /s /q build
mkdir build
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
cmake -G "Ninja" ^
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON ^
-D "CMAKE_C_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe" ^
@langheran
langheran / download.bat
Last active July 8, 2019 03:39
Download coursera.
::coursera-dl -u [email protected] probabilistic-graphical-models
::coursera-dl -u [email protected] probabilistic-graphical-models-2-inference
coursera-dl -u [email protected] probabilistic-graphical-models-3-learning
:: https://github.com/coursera-dl/coursera-dl/issues/702
@langheran
langheran / repair_sd.bat
Created July 14, 2019 19:16
Repair microSD card.
::/X should not be used on running system volumes like C because they would attempt to dismount the very drive that the OS is running on.
chkdsk D: /f /r /x
@langheran
langheran / CMakeLists.txt
Last active July 15, 2019 05:11
Boost cmake configuration.
#
# This is a CMake makefile. You can find the cmake utility and
# information about it at http://www.cmake.org
#
cmake_minimum_required(VERSION 3.11.4)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE STRING "VSCode Intellisense." FORCE)
option(USE_CUDA "Turn on CUDA support." ON)
set(USE_CUDA OFF)
@langheran
langheran / get_mp4_durations.ahk
Created July 16, 2019 16:44
Get total MP4 duration inside current folder (in hours).
totalDuration:=0
Wmp := ComObjCreate("WMPlayer.OCX")
Loop, Files, %A_ScriptDir%\*.mp4
{
file:=A_LoopFileFullPath
Wmp.Url := file
duration:=0
while(!duration)
duration:=Wmp.currentMedia.duration
totalDuration:=totalDuration+duration
@langheran
langheran / separate_m3u.ahk
Last active July 24, 2019 06:33
Separate m3u into individual m3u.
#SingleInstance, Force
; title:="Casós de Bet Din - Problemas de vecinos - Pe̝rdida de plusvali̝a - TuTorah TV - tutorah.tv"
; title:=RemoveLetterAccents(title)
; if(InStr(title,"plus"))
; msgbox, %title%
; return
oFile:=FileOpen("Rabino Joshua Hilu.m3u","r")
encoding:=oFile.Encoding
; MsgBox,4096,Debugging,Input file encoding=%encoding% ; shows that encoding is UTF-16