Skip to content

Instantly share code, notes, and snippets.

View pqviet07's full-sized avatar
🎯
Focusing

Phung Quoc Viet pqviet07

🎯
Focusing
View GitHub Profile
@pqviet07
pqviet07 / smartgit_bypass.md
Last active April 12, 2024 04:44
Bypassing SmartGit's update check popup

Nếu cần cài lại từ đầu thì set datetime về năm 2022 trước khi cài

A. Trên Ubuntu:

  1. Thêm vào file hosts

    127.0.0.1       syntevo.com
    127.0.0.1       www.syntevo.com
    # Hoặc tốt hơn thì config firewall rule (của Smartgit) sao cho chặn tất cả inbound/outbound IP ngoại trừ:
@pqviet07
pqviet07 / netcore_init.sh
Created May 28, 2023 07:31
Express Setup .Net Core App
dotnet new console -n <YourProjectName> -f net7.0 && \
cd <YourProjectName> && \
dotnet add package Microsoft.Extensions.Configuration.Json && \
dotnet add package Newtonsoft.Json && \
dotnet add package Quartz && \
dotnet add package RestSharp && \
dotnet add package Serilog && \
dotnet add package Serilog.Sinks.Console && \
dotnet add package Serilog.Sinks.File && \
dotnet add package HtmlAgilityPack && \
@pqviet07
pqviet07 / gist:33db2def25952ffe5b21e854a60b2783
Created July 2, 2023 03:06 — forked from nguditi/gist:27c81a205cc5e7697984c0d3ecf026ad
Build FFmpeg static lib in Window using MSYS2 and MSVC 2017
It's take two day searching and trying to firgure out the correct way =)))
follow https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT
-------BUT IT'S NOT WORK--------
1. Make sure SET LIB ; SET LIBPATH ; SET INCLUDE with exist and right path(version, exist binary files...)
2. Make sure evironment path, environment variables point to right value/path.
--------If still cannot build, follow my way---------
@pqviet07
pqviet07 / Open with Android Studio.cmd
Created July 9, 2023 09:10 — forked from kumaran-IV0IV/Open with Android Studio.cmd
Add `Open with Android Studio` to Windows right click context menu
@echo off
:: change the path below to match your installed version
SET AndroidStudioPath=C:\Program Files\Android\Android Studio\bin\studio64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_SZ /v "" /d "Open with AndroidStudio" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_EXPAND_SZ /v "Icon" /d "%AndroidStudioPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio\command" /t REG_SZ /v "" /d "%AndroidStudioPath% \"%%1\"" /f
@pqviet07
pqviet07 / README.md
Created July 13, 2023 01:16 — forked from lopspower/README.md
All Android Directory Path

All Android Directory Path

Twitter

1) System directories

⚠️ We can't write to these folers

Method Result
@pqviet07
pqviet07 / .clang-format
Created August 4, 2024 08:04
My clang-format
BasedOnStyle: Google
UseTab: true
IndentWidth: 8
InsertBraces: true
AllowShortIfStatementsOnASingleLine: Never
AllowShortBlocksOnASingleLine: Never
BreakBeforeBraces: Attach
AllowShortFunctionsOnASingleLine: None
ColumnLimit: 200