Hard reset to specific commit
git reset --hard <commit-id> && git push --force
$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 $_ } |
$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 $_ } |
import { loadConfigFile } from "./load"; | |
const { config } = await loadConfigFile("custom.config"); // custom.config.(?:json|[cm]?[tj]s) | |
console.log(config); |
#!/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 |
(() => { | |
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()); |
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 |
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; |
Hard reset to specific commit
git reset --hard <commit-id> && git push --force
#.github/workflows/main.yml | |
name: Windows - Ngrok | |
on: workflow_dispatch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: |
package { | |
import flash.events.*; | |
import flash.net.*; | |
import flash.utils.*; | |
import flash.filesystem.*; | |
import flash.display.MovieClip; | |
public class Downloader { |