Skip to content

Instantly share code, notes, and snippets.

View hsccr's full-sized avatar

Chungrae Cho hsccr

View GitHub Profile
@hsccr
hsccr / 1-install-container.bat
Created July 25, 2024 01:44 — forked from deksoke/1-install-container.bat
Install Container & Hyper-V in Windows 10 Home
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del containers.txt
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
pause
@hsccr
hsccr / request_example.rs
Created December 14, 2022 07:48 — forked from AlexNisnevich/request_example.rs
JSON requests with rust-http
extern crate serialize;
extern crate http;
extern crate url;
use std::string::String;
use serialize::json;
use serialize::json::Json;
use serialize::json::ToJson;
use http::client::RequestWriter;
use http::headers::content_type::MediaType;
@hsccr
hsccr / mpeg-dash-ffmpeg-dashjs.md
Created May 30, 2018 02:02 — forked from kevinGodell/mpeg-dash-ffmpeg-dashjs.md
Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Live streaming mpeg-dash video using ffmpeg and dash.js

Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Prerequisites

A linux server, such as Ubuntu

Apache web server installed, running, and reachable via its ip address
/*
* starter_video.cpp
*
* Created on: Nov 23, 2010
* Author: Ethan Rublee
*
* Modified on: April 17, 2013
* Author: Kevin Hughes
*
* A starter sample for using OpenCV VideoCapture with capture devices, video files or image sequences
@hsccr
hsccr / fisheye2panorama.cpp
Last active September 13, 2017 08:54 — forked from clarkli86/starter_video.cpp
De-fisheye in OpenCV starter video example
/*
* starter_video.cpp
*
* Created on: Nov 23, 2010
* Author: Ethan Rublee
*
* Modified on: April 17, 2013
* Author: Kevin Hughes
*
* A starter sample for using OpenCV VideoCapture with capture devices, video files or image sequences
@hsccr
hsccr / WebGL360Video.html
Created September 4, 2017 08:49 — forked from fieldOfView/WebGL360Video.html
Simple WebGL/GLSL video panorama viewer
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Simple WebGL/GLSL video panorama viewer</title>
<style>
body {
background-color: #000000;
@hsccr
hsccr / sublime.txt
Created July 21, 2017 03:21 — forked from Snegovikufa/sublime.txt
Visual Studio Sublime Text external tool
Command: C:\Program Files\Sublime Text 3\sublime_text.exe
Arguments: $(ItemPath):$(CurLine):$(CurCol)
Initial directory: $(ItemDir)
@hsccr
hsccr / dxinteropcaps.c
Created November 17, 2016 06:30 — forked from rossy/dxinteropcaps.c
GL/DX interop capabilities viewer
// gcc dxinteropcaps.c -std=c99 -Wall -o dxinteropcaps -lgdi32 -lopengl32 -ld3d9 -O0 -ggdb3
#define _WIN32_WINNT 0x0600
#define COBJMACROS
#define UNICODE
#define _UNICODE
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
@hsccr
hsccr / console command
Created August 9, 2016 01:37
console command
"../../lib/win32/bin/protoc-c.exe" --proto_path=. --c_out=. cp-gui.proto