Skip to content

Instantly share code, notes, and snippets.

@justinjoy
justinjoy / hangul_without_kotex.tex
Created January 19, 2024 05:58 — forked from dlimpid/hangul_without_kotex.tex
ko.TeX 없이 한글 LaTeX 문서 만들기
\documentclass[a4paper]{article}
% XeTeX 관련 =================================================================
% xltxtra Package가 fontspec을 부를 때 no-math 옵션을 주어 수식엔 영향을 주지 않게 함.
\PassOptionsToPackage{no-math}{fontspec}
\usepackage{xltxtra}
% Western과 CJK에 다른 글꼴을 사용하기 위한 패키지
\usepackage{xeCJK}
@justinjoy
justinjoy / gist:d6b974265191848790a5a8da48875d54
Created August 20, 2021 01:03
gst-build without documents
meson build \
-Dpython=disabled \
-Dvaapi=enabled \
-Ddevtools=disabled \
-Dges=disabled \
-Dgst-examples=disabled \
-Dtests=disabled \
-Dintrospection=disabled \
-Ddoc=disabled \
-Dgtk_doc=disabled
@justinjoy
justinjoy / gist:e0f563194bbff432d2ab46954f98c6a6
Created July 21, 2021 09:28
RTP-over-SRT: How to send text over video by GStreamer way
/**
* Copyright 2021 SK Telecom Co., Ltd.
* Author: Jeongseok Kim <jeongseok.kim@sk.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
#include "config.h"
#include <gst/gst.h>
#include <glib-unix.h>
static GstPadProbeReturn
_link_klv_cb (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
{
GstElement *pipeline = user_data;
GstElement *sinkbin = NULL;
#include "config.h"
#include <gst/gst.h>
#include <glib-unix.h>
#include <gst/app/gstappsrc.h>
static const guint8 klv_data[] = {
0x06, 0x0e, 0x2b, 0x34, 0x02, 0x0b, 0x01, 0x01,
0x0e, 0x01, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00,
0x2a, 0x02, 0x08, 0x00, 0x05, 0x61, 0x0b, 0x43,
gpg --pinentry-mode=loopback --passphrase "PASSWORD" --sign file.txt
@justinjoy
justinjoy / gist:fc131375f3ad625c8b6d719030f027c3
Created July 15, 2020 04:30
Gaeul2 Installation on NVIDIA TX1 (Ubuntu 16.04)
Adding H8L PPA
$ sudo add-apt-repository ppa:hwangsaeul/stable
$ sudo apt-get update
Installing Gaeul
$ sudo apt-get install gaeul2-source-agent
Adding gaeul user to video group
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU MP configure 6.1.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/Users/justinkim/git/vlc/contrib/x86_64-apple-darwin19.4.0 --datarootdir=/Users/justinkim/git/vlc/contrib/x86_64-apple-darwin19.4.0/share --includedir=/Users/justinkim/git/vlc/contrib/x86_64-apple-darwin19.4.0/include --libdir=/Users/justinkim/git/vlc/contrib/x86_64-apple-darwin19.4.0/lib --build=x86_64-apple-darwin19.4.0 --host=x86_64-apple-darwin19.4.0 --target=x86_64-apple-darwin19.4.0 --program-prefix= --enable-static --disable-shared --disable-dependency-tracking --with-pic
## --------- ##
## Platform. ##
/**
* gcc -o ex example.c -g `pkg-config --cflags --libs gstreamer-1.0 gio-2.0`
*
* Instruction
* 1. Run 'ex' to listen srt stream
* 2. Then, send stream to 'ex' by 'gst-launch-1.0' command
* $ gst-launch-1.0 videotestsrc ! x264enc tune=zerolatency ! queue ! h264parse ! mpegtsmux ! tsparse ! queue ! srtsink uri='srt://127.0.0.1:8888?mode=caller'
*/
#include <gst/gst.h>
#include <gio/gio.h>
@justinjoy
justinjoy / docker-compose.yml
Created April 8, 2020 02:16
hwangsae-docker-compose
version: "3"
services:
h8l-hwangsae-allinone:
image: "hwangsaeul/h8l-hwangsae-allinone-eoan:latest"
restart: always
hostname: h8l-mec-sr0-01
privileged: true
volumes:
- ./conf/hwangsaeul.conf:/etc/hwangsaeul.conf:ro
- ./service/hwangsae-relay.service:/lib/systemd/system/hwangsae-relay.service:ro