Skip to content

Instantly share code, notes, and snippets.

View DEARaison's full-sized avatar
🎯
Focusing

DEA Raison DEARaison

🎯
Focusing
View GitHub Profile
@DEARaison
DEARaison / SHOPEE Statistics
Last active April 18, 2024 17:05
To Get Shopee Statistics
var tongDonHang = 0;
var tongTienTietKiem=0;
var tongtienhang = 0;
var tongtienhangchuagiam = 0;
var tongSanPhamDaMua = 0;
var trangThaiDonHangConKhong = true;
var offset = 0;
var si = 20;
function xemBaoCaoThongKe() {
var orders = [];
@DEARaison
DEARaison / The Window Navigator Object.html
Created November 6, 2023 15:55
The Window Navigator Object navigator.onLine
<!DOCTYPE html>
<html>
<body>
<h1>The Window Navigator Object</h1>
<h2>All Properties</h2>
<div id="demo"></div>
<script>
@DEARaison
DEARaison / GroupFilesByExtensionRecursively.ps1
Last active September 28, 2023 14:37
Group Files By Extension Recursively
"Please note that this script will modify your directory, You must back up your directory by yourself!"
#pause
$currentLocation = Get-Item -Path ""
# Create Grouped By Extension directory
$parentOfCurrentLocation = Split-Path -Parent $currentLocation
$groupedByExtensionLocation = Join-Path -Path $parentOfCurrentLocation -ChildPath "Grouped By Extension"
New-Item -Force -ItemType Directory $groupedByExtensionLocation
@DEARaison
DEARaison / RemoveItem.ps1
Last active September 28, 2023 14:36
Remove Item
$locationToRemove = Get-Item -Path ""
Get-ChildItem -Path $locationToRemove -Force | ForEach-Object {
Remove-Item -Force -Recurse -Path $_.FullName
"Removed $_"
}
@DEARaison
DEARaison / Fix the login issue on the Microsoft Edge
Created September 23, 2023 16:49
Fix login issue on Microsoft Edge
1. Goto "Settings" -> "Clear browsing data" -> Click on "Choose what to clear".
2. Choose "Time range": "All time".
3. Tick on all the browsing data except "Passwords" and "Autofill form data (includes forms and cards)"
4. Click on "Clear now".
5. Restart the Microsoft Edge.
6. Repeat from step 1 to step 5 one more time.
7. Check if the login issue on the Microsoft Edge was resolved.
@DEARaison
DEARaison / GPG
Created September 23, 2023 16:41
GPG
GPG
• Export GPG details
1. Running command to get secret key in base64 format:
## gpg -a --export-secret-keys <your-email-address> | base64 -w 0
1. Running command to get ownertrust in base64 format:
## gpg --export-ownertrust | base64 -w 0
@DEARaison
DEARaison / Using CLI on Windows to build OpenCV library including extra modules for Java
Last active September 23, 2023 16:40
Using CLI on Windows to build OpenCV library including extra modules for Java.
mkdir OpenCV
cd OpenCV
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_SHARED_LIBS=OFF -D BUILD_FAT_JAVA_LIB=ON -D OPENCV_ENABLE_NONFREE=ON -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules -D BUILD_EXAMPLES=OFF -D BUILD_opencv_apps=OFF -D BUILD_DOCS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF ../opencv
cmake --build . --config release
cmake --build . --target install --config release
@DEARaison
DEARaison / Solution to remove unremovable files and folders on Windows
Last active September 23, 2023 16:38
Solution to remove unremovable files/folder on Windows
1.Create folder that name "windows.old" in Local disk C
2.Drag the files or folder that cannot be deleted into Windows.old
3.run Disk cleanup
4.choose Disk C
5.then click Cleanup System Files
@DEARaison
DEARaison / Remove unnecessary IntelliJ IDEA config files.ps1
Last active September 23, 2023 16:37
Remove IntelliJ IDEA config files or folders that can be created automatically by IntelliJ
"Put config folder into the same folder with this script file"
Pause
# Files and directories need removing
$directoriesToRemove = "codestyles", "event-log-whitelist", "extensions", "jdbc-drivers", "mdn", "tasks", "workspace", "terminal"
$filesInConfigToRemove = "idea.properties", "idea64.exe.vmoptions", "user.web.token"
$filesInOptionsToRemove = "acceptedLanguageLevels.xml", "baseRefactoring.xml", "colors.scheme.xml", "databaseDrivers.xml", "debugger.xml", "dimensions.xml", "equalsHashCodeTemplates.xml", "extensionsRootType.xml", "file.template.settings.xml", "filetypes.xml", "find.xml", "images.support.xml", "jdk.table.xml", "markdown.xml", "other.xml", "laf.xml", "path.macros.xml", "profilerRunConfigurations.xml", "recentProjects.xml", "runner.layout.xml", "studioFlags.xml", "textmate_os.xml", "updates.xml", "usage.statistics.xml", "vcs.xml", "window.state.xml", "window.manager.xml", "wsl.distributions.xml"
# The total number of files/directories to remove
$totalDirs = $directoriesToRemove.Length
$totalFil
Azure Active Directory | Devices | Enterprise State Roaming