Skip to content

Instantly share code, notes, and snippets.

View lovmoon3k's full-sized avatar
💭
I may be slow to respond.

LovMoon3k lovmoon3k

💭
I may be slow to respond.
View GitHub Profile
using System;
using FFmpeg;
using FFmpeg.AutoGen;
using static FFmpeg.AutoGen.ffmpeg;
namespace StreamVideo.Ffmpeg
{
public unsafe class LiveStream : IDisposable
{
public static string RootPath
{
//https://github.com/tqk2811/FFmpegArgs
FFmpegArg ffmpegArg = new FFmpegArg();
var colorInput = new FilterGraphInput();
colorInput.FilterGraph.ColorFilter().Size(new Size(width,height)).Color(Color.Transparent);
var colorVideo = ffmpegArg.AddVideoInput(colorInput,1,0);
var colorMap = colorVideo.ImageMaps.First();
List<ImageMap> maps = new List<ImageMap>();
@lovmoon3k
lovmoon3k / 0_using.cpp
Created April 26, 2023 13:13 — forked from tqk2811/0_using.cpp
NV12ToRgbShader
NV12ToRgbShader* shader = new NV12ToRgbShader();
if(shader->Init())
{
AVFrame* src = ...;
AVFrame* dst = ...;
if(shader->Convert(src,dst))
{
}
}
# Cracking Sublime Text ( Build 4121 ) Tutorial Analysis
---
Two main changes to be made for best experience. This can be done with script.
### License Key
While it is possible to deduce the format of the license key, there is available ones online to show. Analyse and see that it is still that same format. The main part is the verification of the hash values from the license key that we want to always be "correct". This is also the key that this tutorial will use.
```
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: 80 78 05 00 0F 94 C1
> * In Search Type select "Enable replace" and put: 80 78 05 00 0F 94 C1
> * Click "Find next" then "Replace"
> * Do the same thing with: C6 40 05 01 48 85 C9 => C6 40 05 01 48 85 C9
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text
@lovmoon3k
lovmoon3k / banks.md
Created February 28, 2023 07:57 — forked from KangHidro/banks.md
Đăng ký tài khoản ngân hàng để tối ưu trải nghiệm sử dụng và các loại phí

Đăng ký tài khoản ngân hàng để tối ưu trải nghiệm sử dụng và các loại phí

Link bài viết này (để copy cho nhanh ý mà :v): http://bit.ly/optimizeBanks

  • Cách mình trình bày dưới đây chỉ mang tính chất chia sẻ kinh nghiệm nhé!
  • Tuy các giao dịch mình làm qua app, online, ít khi phải ra ngân hàng nhưng vì giờ đa số các ngân hàng đã miễn hầu hết các loại phí nên mình sẽ bàn thêm về trải nghiệm CSKH và một số tiện ích khác nữa.
  • Chắc chắn tuỳ khu vực sẽ có "chỗ this chỗ that" rồi, nên nếu bạn ưng bụng ngân hàng nào trước rồi thì cứ dùng thôi nhé!
@lovmoon3k
lovmoon3k / cloudflare_bypass.php
Created February 17, 2023 01:18 — forked from yasinkuyu/cloudflare_bypass.php
PHP CURL function which bypasses the Cloudflare
<?php
/*
PHP CURL function which bypasses the Cloudflare
@yasinkuyu
*/
function cloudFlareBypass($url){
$useragent = "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/W.X.Y.Z‡ Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)";
@lovmoon3k
lovmoon3k / gpt.py
Created February 16, 2023 00:52 — forked from ustayready/gpt.py
CloudGPT - Use ChatGPT to analyze AWS policies for vulnerabilities
import openai
import boto3
import json
import time
from typing import Dict, List
openai.api_key = '### SET YOUR OPENAPI API KEY HERE ###'
session = boto3.session.Session()
client = session.client('iam')
@lovmoon3k
lovmoon3k / ffmpeg-compress-mp4
Created November 26, 2022 13:11 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4