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
import { Buffer } from "node:buffer"; | |
import crypto from "node:crypto"; | |
type Payload = { | |
ts: number; | |
salt: string; | |
}; | |
type EncodedPayload = { | |
iv: string; |
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
import $SourceMap from '@parcel/source-map'; | |
import * as ParcelSourceMap from '@parcel/source-map'; | |
export const SourceMap = (typeof $SourceMap === 'function' | |
? $SourceMap | |
// eslint-disable-next-line | |
: typeof ($SourceMap as any).default === 'function' | |
// eslint-disable-next-line | |
? ($SourceMap as any).default | |
: (typeof ParcelSourceMap === 'function' |
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
@echo off | |
REM Change directory to the MySQL directory | |
cd /d "C:\xampp\mysql" | |
REM Backup old data | |
rename "data" "data_old" | |
REM Create new data directory | |
xcopy "backup" "data" /E /I | |
rmdir /S /Q "data\test" |
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
$targetVersion = "23" | |
$ids = winget search EclipseAdoptium.Temurin | Where-Object { $_ -match "$targetVersion." } | ForEach-Object { [regex]::Match($_,'((EclipseAdoptium\.Temurin\.[\d]{1,2})\.(?=JDK|JRE)\S+)').Value } | |
$ids | ForEach-Object { winget install -e --id $_ } |
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
$arch = ((systeminfo | findstr /C:"System Type") -replace 'System Type:\s*', '' -split '-')[0].Trim().ToLower() | |
$ids = winget search Microsoft.VCRedist | Where-Object { $_ -match $arch } | ForEach-Object { [regex]::Match($_,'(Microsoft\.VCRedist\S+)').Value } | |
$ids | ForEach-Object { winget install -e --id $_ } |
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
import { loadConfigFile } from "./load"; | |
const { config } = await loadConfigFile("custom.config"); // custom.config.(?:json|[cm]?[tj]s) | |
console.log(config); |
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
#!/bin/bash | |
OWNER="lazuee" | |
REPO="react-router" | |
BRANCH="main" | |
deployment_shas=$(gh api repos/$OWNER/$REPO/deployments --jq '.[].sha') | |
existing_shas=$(gh api repos/$OWNER/$REPO/commits?sha=$BRANCH --jq '.[].sha') | |
for deployment_sha in $deployment_shas; do |
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
(() => { | |
if (typeof Vencord === "undefined") return console.log("You need to run this on (Vencord Web/Vesktop) app to continue..."); | |
let ApplicationStreamingStore = Vencord.Webpack.findStore("ApplicationStreamingStore"); | |
let RunningGameStore = Vencord.Webpack.findStore("RunningGameStore"); | |
let QuestsStore = Vencord.Webpack.findStore("QuestsStore"); | |
let ChannelStore = Vencord.Webpack.findStore("ChannelStore"); | |
let GuildChannelStore = Vencord.Webpack.findStore("GuildChannelStore"); | |
let { FluxDispatcher, RestAPI } = Vencord.Webpack.Common; | |
const quest = [...QuestsStore.quests.values()].find((q) => q.userStatus?.enrolledAt && !q.userStatus?.completedAt && new Date(q.config.expiresAt).getTime() > Date.now()); |
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
Function Priority { | |
$ErrorActionPreference = 'SilentlyContinue' | |
foreach ($root in 'HKCU', 'HKLM', 'HKU', 'HKCR') { | |
New-PSDrive -PSProvider Registry -Name $root -Root "HKEY_$root" | Out-Null | |
} | |
Set-ExecutionPolicy RemoteSigned -Force -Scope CurrentUser | |
$ErrorActionPreference = 'Continue' | |
} | |
Priority |
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
import * as fs from "node:fs"; | |
import * as path from "node:path"; | |
let build = await reimport(path.resolve("build/index.js")); | |
export async function reimport(path) { | |
const stat = fs.statSync(path); | |
// convert build path to URL for Windows compatibility with dynamic `import` | |
const BUILD_URL = url.pathToFileURL(path).href; |
NewerOlder