SQL Server
╭──────────────────────┬──────────┬─────────────┬───────────────────────────┬────────────────────────────────────────╮
│ Action │ Entities │ Performance │ TimeFaster │ ReducedPercent │
├──────────────────────┼──────────┼─────────────┼───────────────────────────┼────────────────────────────────────────┤
│ Dapper │ 2000 │ 1491 ms │ N/A │ N/A │
│ Dapper (Transaction) │ 2000 │ 1370 ms │ 1.09x faster than Dapper │ Time reduced by 8% compared to Dapper │
│ Dapper Plus │ 2000 │ 63 ms │ 23.67x faster than Dapper │ Time reduced by 96% compared to Dapper │
╰──────────────────────┴──────────┴─────────────┴───────────────────────────┴────────────────────────────────────────╯
SQLite :memory:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| # 定义常量 | |
| $magiskRepo = "C:\a\magisk" | |
| $magiskApk = Resolve-Path "Magisk-v29.0.apk" | |
| $device = "pixel_8_pro" | |
| $AndroidSdkRoot = "C:\Users\$env:UserName\AppData\Local\Android\Sdk" | |
| $sdkmanager = Join-Path $AndroidSdkRoot "cmdline-tools\latest\bin\sdkmanager.bat" | |
| $avdmanager = Join-Path $AndroidSdkRoot "cmdline-tools\latest\bin\avdmanager.bat" | |
| $emulator = Join-Path $AndroidSdkRoot "emulator\emulator.exe" | |
| $adb = Join-Path $AndroidSdkRoot "platform-tools\adb.exe" |
This file contains hidden or 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
| #!/usr/bin/ash | |
| # this file is at /etc/initcpio/hooks/bedrock | |
| run_hook () | |
| { | |
| mount_handler="ramdisk_mount_handler" | |
| } | |
| ramdisk_mount_handler () | |
| { |
This file contains hidden or 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
| # Windows (mingw-w64-i686) hosted cross toolchains | |
| # AArch64 GNU/Linux target (aarch64-none-linux-gnu) | |
| # 1. Download the ARM GNU Toolchain for Windows host from | |
| # https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads | |
| # Extract the downloaded archive to a convenient location, such as C:\bin. | |
| # 2. [optional] You might need to modify the toolchain variable based on | |
| # your extraction location and toolchain version. | |
| # 3. Install MSYS2 (https://www.msys2.org/) if you don't have it already. | |
| # It provides a Unix-like environment for Windows, including package management tools. |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Drawing; | |
| using System.Windows.Forms; | |
| public static class InputDialogs | |
| { | |
| public static double getDouble(out bool ok, string title, string label, double value = 0, double min = -2147483647, double max = 2147483647, int decimals = 1, double step = 1, IWin32Window parent = null) | |
| { | |
| double result = value; |
This file contains hidden or 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
| # Revanced Script # | |
| Download and Patch Youtube and Youtube Music with latest Revanced assets | |
| prerequisite: | |
| Python ^3.8 in PATH | |
| JRE 17+ in PATH | |
| python-requests ^2.28.1 | |
| python-bs4 / beautifulsoup4 ^4.11.1 | |
This file contains hidden or 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
| # https://github.com/microsoft/terminal/issues/7081#issuecomment-1065833836 | |
| $WinAppsPaths = @("C:\Program Files\WindowsApps") | |
| $UserAppsPaths = @("$env:LOCALAPPDATA\Microsoft\WindowsApps") | |
| $UserProfile = @("$env:USERPROFILE") | |
| Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\App Paths" | ForEach-Object { | |
| $v = $_.GetValue('') | |
| if (${v}?.StartsWith($WinAppsPaths)) { | |
| $_ | Set-ItemProperty -Name "(default)" -Value "$UserAppsPaths\$($_.PSChildName)" |
This file contains hidden or 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
| #Requires -Version 7 | |
| Set-StrictMode -Version 3.0 | |
| # /sdcard/Android/data/com.tencent.mobileqq/tencent/MobileQQ/.emotionsm | |
| $folder = Get-Item ".\emotionsm" | |
| $outFolder = mkdir -Force ".\outfolder" | |
| Get-ChildItem $folder | ForEach-Object -ThrottleLimit 8 -Parallel { | |
| $outFolder = $using:outFolder |
This file contains hidden or 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
| # play with filters and arguments to reduce file size lower than 256KB by yourself | |
| $folder = Get-Item ".\gif" | |
| $outFolder = Get-Item ".\outfolder" | |
| Add-Type -AssemblyName System.Drawing | |
| # Get-ChildItem $folder | Sort-Object Length -Descending | Select-Object -First 3 | ForEach-Object -ThrottleLimit 8 -Parallel { | |
| Get-ChildItem $folder | ForEach-Object -ThrottleLimit 4 -Parallel { | |
| $outFolder = $using:outFolder # comment out if Parallel disabled |
NewerOlder