Skip to content

Instantly share code, notes, and snippets.

View vazrupe's full-sized avatar

HyeonGyu Lee vazrupe

View GitHub Profile
@vazrupe
vazrupe / extract_audio.py
Created December 8, 2021 07:14
*.mp4 파일을 드래그 앤 드랍으로 동일한 이름의 mp3을 추출합니다.
import argparse
import os
import ffmpeg
def extract(path):
filename, ext = os.path.splitext(path)
output_path = f'{filename}.mp3'
print(output_path)
@vazrupe
vazrupe / qcam-v7
Created July 28, 2020 13:43
QCAM-V7 octoprint
server {
listen <OPEN_PORT>;
server_name 0.0.0.0;
location /<RANDOM_PATH>/stream {
proxy_pass http://<IPCAM_IP>:<IPCAM_PORT>/videostream.cgi?user=admin&pwd=<IPCAM_PASSWORD>;
}
location /<RANDOM_PATH>/snapshot {
@vazrupe
vazrupe / .gitconfig
Created February 27, 2020 16:09
My Git Config
[core]
preloadindex = true
fscache = true
[gc]
auto = 256
[submodule]
fetchJobs = 8
[alias]
lg = log --branches --remotes --tags --graph --oneline --decorate
sfe = submodule foreach

Keybase proof

I hereby claim:

  • I am vazrupe on github.
  • I am vazrupe (https://keybase.io/vazrupe) on keybase.
  • I have a public key ASA5GjhY9wOgYPKFUj2WTmgVzXPZWOzUStCZlgZYcRSkuAo

To claim this, I am signing this object:

@vazrupe
vazrupe / decompiled.c
Created October 17, 2018 10:10
C 디컴파일 코드 with snowman
void fun_1800024af() {
goto sqrt;
}
void TA_Test2(int32_t* rcx) {
int32_t* rbx2;
int32_t* rsi3;
int32_t* rdi4;
int32_t* rsi5;
struct s14* rsi6;
@vazrupe
vazrupe / triangle_sel_listbox.xaml
Created September 18, 2018 06:40
선택된 요소를 왼쪽 삼각형으로 보여주는 List
<ListBox SelectionMode="Single" SelectedIndex="0" BorderThickness="0">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<DockPanel Cursor="Hand" Margin="2">
<Polygon Name="SelectIcon"
DockPanel.Dock="Left"
Points="0,0 5.6,3.5 0,7"
@vazrupe
vazrupe / SharpDX-Samples-init.md
Last active December 1, 2017 06:46
SharpDX-Samples(Desktop) Initialize

https://github.com/sharpdx/SharpDX-Samples

  1. clone repository
  2. convert-packconf.py in 'Desktop' directory
  3. running script with python3
  4. nuget run command Update-Package -reinstall
  5. copy dll files in 'Direct3D11\MiniTriEffects11' to 'Desktop' directory
  6. retry nuget run command Update-Package -reinstall
  7. good luck
@vazrupe
vazrupe / static_files.py
Created April 15, 2017 14:14
flask snippet
from flask import Flask
app = Flask(__name__, static_folder='static')
@app.route('/<path:path>')
def static_files(path):
return app.send_static_file(path)
@app.route('/')
@vazrupe
vazrupe / nginx.conf
Last active January 9, 2017 17:24
your website adding ssl on nginx with certbot(let's encrypt)
#server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
# ssl_certificate /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem;
#
# server_name YOUR_DOMAIN;
# index index.html index.htm;
#
# location / {