Skip to content

Instantly share code, notes, and snippets.

@echo off
set DPS=%~dp0dps
:start
color 07
cls
echo --------------------------------------------------------------------------------
echo 排骨的 Win10 系统迁移脚本
echo.
echo 1. 系统备份
void Main()
{
var text = File.ReadAllText(@"C:\Users\Eric\Desktop\5000-random-people.json");
var users = JsonConvert.DeserializeAnonymousType(text, new { Results = default(IList<UserProfile>) }).Results;
using var sw = new StreamWriter(@"C:\Users\Eric\Desktop\5000-random-people.vcf");
foreach(var u in users){
sw.WriteLine(ConvertToVCard(u));
}
}
// ==UserScript==
// @name Data Validator Helper v2
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Data Validator Helper
// @author Eric Liu <[email protected]>
// @match https://data.veracity.com/dataValidator/*
// @match https://datatest.veracity.com/dataValidator/*
// @match https://datadevtest.veracity.com/dataValidator/*
// @grant GM.xmlHttpRequest
using System.Linq;
var folder = @"F:\git\blog\ugc\datacolor-spyderx";
var files = new[] {
Path.Combine(folder, "xsmax.xml"),
Path.Combine(folder, "xsmax1.xml"),
};
var file = files[0];
var doc = new XmlDocument();
function Is-Admin {
$myWindowsID = [System.Security.Principal.WindowsIdentity]::GetCurrent();
$myWindowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($myWindowsID);
$adminRole = [System.Security.Principal.WindowsBuiltInRole]::Administrator;
if (!$myWindowsPrincipal.IsInRole($adminRole))
{
throw '请使用管理员权限运行'
}
}
{
"Sys": {
"Group": "sys",
"Values": [
{ "Id": "SDATE", "Label": "Date", "Value": "2021-08-11" },
{ "Id": "STIME", "Label": "Time", "Value": "01:15:16" },
{ "Id": "STIMENS", "Label": "Time (HH:MM)", "Value": "01:15" },
{ "Id": "SUPTIME", "Label": "UpTime", "Value": "03:10:12" },
{ "Id": "SUPTIMENS", "Label": "UpTime (HH:MM)", "Value": "03:10" },
{ "Id": "SCPUCLK", "Label": "CPU Clock", "Value": "3498" },
void Main()
{
using var mmf = MemoryMappedFile.OpenExisting("AIDA64_SensorValues");
using var accessor = mmf.CreateViewAccessor();
var bytes = new byte[accessor.Capacity];
accessor.ReadArray(0, bytes, 0, bytes.Length);
using var sw = new StreamWriter(@"F:\Green\aida64\shared-memory.xml");
sw.WriteLine(Encoding.ASCII.GetString(bytes).Trim());
return;
var xmlDoc = new XmlDocument();
@cuteribs-1
cuteribs-1 / mac-vendor.txt
Created January 28, 2021 07:02 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
OpenSSL Version Device
OS
SoC
CPU
MD5 SHA1
SHA256
SHA512
DES
3DES
AES128
AES192
AES256
aes-128-gcm
OpenSSL 1.1.1g RT-AX68U
ASUSWRT 386
BCM4906
ARMv8
319.06M 793.47M
746.09M
111.44M
33.96M
12.11M
78.23M
65.83M
57.52M
706.86M
OpenSSL 1.1.1g RT-AX68U
ASUSWRT 386
BCM4906
ARMv8 2t
629.62M 1567.71M
1483.88M
223.11M
67.02M
23.96M
151.34M
128.69M
113.49M
1412.11M
OpenSSL 1.1.1g RT-AX86U
ASUSWRT
BCM4908
ARMv8
322.41M 799.03M
753.17M
113.24M
33.95M
12.03M
78.29M
65.63M
58.07M
707.28M
OpenSSL 1.1.1g RT-AX86U
ASUSWRT
BCM4908
ARMv8 2t
642.99M 1595.11M
1505.17M
225.97M
67.70M
24.20M
156.45M
131.66M
116.05M
1410.67M
OpenSSL 1.1.1g RT-AX86U ASUSWRT BCM4908 ARMv8 4t 1275.19M 3159.55M
部件 品牌型号 参考价格
CPU Intel i7-10700K 3000
主板 圣旗 Z490-PRO GAMING 1400
内存 十铨 DDR4 2666 8G x 2 440
机箱 骨伽 影武者X7 349
电源 骨伽 XTC 600W 339
电源 TT GT 650W (后改方案) 499
散热器 TT 冰龙240 379