Skip to content

Instantly share code, notes, and snippets.

View level120's full-sized avatar

Gusam Park level120

  • Republic of Korea
  • 15:54 (UTC +09:00)
View GitHub Profile
@level120
level120 / Install NVIDIA Driver and CUDA.md
Created July 21, 2018 13:06 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@level120
level120 / Github Webhook Tutorial.md
Created July 27, 2018 08:48 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@level120
level120 / mpeg-dash-ffmpeg-dashjs.md
Created August 1, 2018 06:36 — 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
@level120
level120 / crawling.py
Last active February 8, 2019 07:00
python3 웹 크롤링 결과를 json 저장, selenium + webdriver(크롬-headless, 파폭-headless) 사용 -> excel 저장
from selenium import webdriver
def crawling(url, browser, wl, fn):
print("set url : " + url + ", browser : " + browser)
if browser is "Chrome":
options = webdriver.ChromeOptions()
options.add_argument('headless')
options.add_argument('window-size=1920x1080')
options.add_argument("disable-gpu")
@level120
level120 / checkxss.md
Created January 19, 2019 17:09
XSS를 사용하는 SSO 시스템에서 User의 Token을 훔치는 코드(포트나이트 취약점 참조, https://research.checkpoint.com/hacking-fortnite/)

url + script 코드

http://some_page/"+onmouseover="alert(%27xss%27)

sso는 token 발급 후 redirect 하는 경우가 많음. 이점을 주목(TU_SSO 참고).

@level120
level120 / custom.h
Last active February 8, 2019 07:10
커맨드창 디자인용 헤더(C/C++), 교내/학원 과제용
#include <Windows.h>
#define LEFT 75 // 왼쪽 키(좌)
#define RIGHT 77 // 오른쪽 키(우)
#define UP 72 // 위쪽 키(상)
#define DOWN 80 // 아래쪽 키(하)
#define SPACEBAR 32 // 스페이스 바
#define ESC 27 // ESC
#define PGUP 73 // PageUP
#define PGDN 81 // pageDown
@level120
level120 / AppleSDGothicNeo.css
Created June 8, 2019 01:37
MacOS의 사파리에서 궁서체 -> 애플 산돌고딕 Neo로 바꾸기
* {
font-family: "Apple SD 산돌고딕 Neo", "Apple SD Sandol Gothic Neo", AppleGothic, 애플고딕 !important;
}
.itemfont {
font-family: "Apple SD 산돌고딕 Neo", "Apple SD Sandol Gothic Neo", "AppleGothic" !important;
}
.itemfont {
font-family: "Apple SD 산돌고딕 Neo", "Apple SD Sandol Gothic Neo", "AppleGothic" !important;
}
@level120
level120 / readme.md
Last active August 6, 2019 03:47
RDP에서 OpenGL 프로그램 실행

RDP에서 OpenGL 프로그램 실행

원리

  • tscon 이용해 원격연결을 끊고 그 사이에 프로그램을 실행

동작

  1. 관리자 권한으로 실행하였는지 검사, 실패 시 UAC창 활성화(권한요구)
  2. qwinsta에서 >rdp-tcp#으로 시작하는 구문을 가져와서 >제거한 문장 Parse
  3. tscon으로 2에서 가져온 세션번호 대입(이때 연결이 끊어짐)
  4. 연결이 끊어진 상태에서 OpenGL 프로그램 실행
@level120
level120 / Unpack to MP3.bat
Created September 28, 2020 00:44
Genshine Unpack - Music(*.pck)
REM This context have a no any question and closing.
REM Based on https://github.com/Vextil/Wwise-Unpacker
FOR %%a IN ("Game Files\*.PCK") DO ("Tools\quickbms.exe" "Tools\wavescan.bms" "Game Files" "Tools\Decoding")
FOR %%b IN ("Game Files\*.BNK") DO ("Tools\bnkextr.exe" "%%b" & MOVE *.wav "Tools\Decoding")
FOR %%c IN (Tools\Decoding\*.WAV) DO ("Tools\ww2ogg.exe" "%%c" --pcb Tools\packed_codebooks_aoTuV_603.bin & DEL "%%c")
FOR %%d IN (Tools\Decoding\*.OGG) DO ("Tools\revorb.exe" "%%d" & MOVE "%%d" "MP3")
FOR %%e IN (MP3\*.OGG) DO ("Tools\ffmpeg.exe" -i "%%e" -acodec libmp3lame -q:a 0 -y "MP3\%%~ne.mp3" & DEL "%%e")
@echo off
@level120
level120 / changelog_generator.ps1
Last active February 8, 2023 08:42
Change log generator - powershell version
# Based on https://medium.com/@Jeef/creating-a-git-submodule-change-log-for-ci-db60c90f821c
# Input Parameter
param([String] $script:BeginCommitOrTag, [String] $script:EndCommitOrTag, [String] $script:Branch)
function Get-RootPath {
<#
.SYNOPSIS
입력 파라미터의 Path 기준으로 *.sln 파일이 있는 위치까지 상향 탐색합니다.