Method | Result |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Google | |
UseTab: true | |
IndentWidth: 8 | |
InsertBraces: true | |
AllowShortIfStatementsOnASingleLine: Never | |
AllowShortBlocksOnASingleLine: Never | |
BreakBeforeBraces: Attach | |
AllowShortFunctionsOnASingleLine: None | |
ColumnLimit: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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--------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 && \ |
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:
-
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ừ:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <mutex> | |
#include <condition_variable> | |
#include <thread> | |
#include <vector> | |
class ReadWriteLock { | |
public: | |
void read(std::function<void()> reader) { | |
std::unique_lock<std::mutex> lock(mutex_); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Kill process then re-build and run | |
pid=`ps aux | grep LuongThangScraper | grep -v grep | awk {'print $2'}` | |
if [ -z "$pid" ] | |
then | |
echo "LuongThangScraper not found!" | |
else | |
echo "LuongThangScraper running on PID = " $pid | |
kill -9 "$pid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task LogNetworkRequests(IWebDriver driver) | |
{ | |
INetwork interceptor = driver.Manage().Network; | |
interceptor.NetworkRequestSent += OnNetworkRequestSent; | |
interceptor.NetworkResponseReceived += OnNetworkResponseReceived; | |
await interceptor.StartMonitoring(); | |
driver.Url = "http://the-internet.herokuapp.com/redirect"; | |
await interceptor.StopMonitoring(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl --help | |
Usage: curl [options...] <url> | |
--abstract-unix-socket <path> Connect via abstract Unix domain socket | |
--alt-svc <file name> Enable alt-svc with this cache file | |
--anyauth Pick any authentication method | |
-a, --append Append to target file when uploading | |
--basic Use HTTP Basic Authentication | |
--cacert <file> CA certificate to verify peer against | |
--capath <dir> CA directory to verify peer against | |
-E, --cert <certificate[:password]> Client certificate file and password |
NewerOlder