Skip to content

Instantly share code, notes, and snippets.

View hsnks100's full-sized avatar
😍
wow

Han Gyoung-Su hsnks100

😍
wow
View GitHub Profile
@hsnks100
hsnks100 / tcpdump
Last active February 20, 2021 17:06
고객검증용 스크립트들
port 채팅 포트
host 고객 아이피
sudo tcpdump dst host 175.123.88.191 -X -w /tmp/pktdump.pcap
@hsnks100
hsnks100 / gcc emacs on centos7
Last active January 31, 2021 18:58
emacs 25 on centos6
sudo yum install devtoolset-9-gcc devtoolset-9-libgccjit-devel libcurses-devel -y
git clone https://git.savannah.gnu.org/git/emacs.git
cd emacs
git fetch --all
git checkout -b native-comp origin/feature/native-comp
source scl_source enable devtoolset-9
./autogen.sh
./configure --with-nativecom --without-makeinfo
make -j8
sudo make install
@hsnks100
hsnks100 / request_url.cpp
Created August 19, 2020 08:19
libcurl request http page codes.
#include "request_url.h"
extern "C" {
#include<curl/curl.h>
}
// - - - - - - - - - - - - - - - - - - - -
#include<iostream>
static s
@hsnks100
hsnks100 / .bashrc
Last active December 20, 2022 03:43
개발환경에 필요한 스크립트 모음
source scl_source enable devtoolset-7
set -o vi
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1='\[\e[0;36m\]\u\[\e[0m\]@\[\e[0;33m\]\h\[\e[0m\]$(parse_git_branch)\[\e[0;35m\]
{"lastUpload":"2019-12-09T16:25:02.052Z","extensionVersion":"v3.4.3"}
@hsnks100
hsnks100 / README.md
Created November 20, 2019 22:36
simple-peer real world example

node ws.js

python -m SimpleHTTPServer

// ChildView.cpp : CChildView 클래스의 구현
//
#include "stdafx.h"
#include "SearchM.h"
#include "ChildView.h"
#include "OpenDlg.h"
#include "FindDlg.h"
#include "ValueDlg.h"
#pragma once
#include "stdafx.h"
class Packer
{
public:
Packer() {fileBuf = NULL;}
DWORD RVA2RAW(DWORD rva)
{
@hsnks100
hsnks100 / WEBRTC문서.md
Last active December 5, 2018 00:29
WEBRTC문서

WEBRTC 2차 문서

여기서는 실제 turn, stun 등의 시그널링과 실제 화상통신에 대한 것을 정리하는 내용을 다룬다.

WEBRTC Signaling 개념

WEBRTC 는 p2p 통신을 하기 위해 사전에 미리 sdp 나 turn 서버를 서로 알고 있어야 한다.

어떠한 텍스트 정보를 전달할 수 있는 통신수단(예: 소켓, 웹소켓 등)의 종류는 어떤것이라도 상관없다.

여기서는 websocket 을 사용했다.

@hsnks100
hsnks100 / a.java
Created December 3, 2018 08:37
조종 튜닝 오리지널 버전
ublic void onValueChanged(int angle, int power, int direction) {
// TODO Auto-generated method stub
JSONObject json1 = new JSONObject();
float left = 10000, right = 10000;
try {
if(power == 0) {
json1.put("left", 0);
json1.put("right", 0);
}