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
diff --color -ur a/src/commands/initialize-project-command.ts b/src/commands/initialize-project-command.ts | |
--- a/src/commands/initialize-project-command.ts 2025-05-08 23:30:37 | |
+++ b/src/commands/initialize-project-command.ts 2025-05-08 22:31:06 | |
@@ -2,7 +2,7 @@ | |
import * as vscode from 'vscode'; | |
import { config } from '../config'; | |
import { StateMemento } from '../persistence/state-memento'; | |
-import { getWorkspacePath } from '../utils/common'; | |
+import { getCachePath, getWorkspacePath } from '../utils/common'; | |
import { LuaProjectInitializer } from '../utils/lua-project-initializer'; |
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
diff --color -ur a/installer/install-zls.sh b/installer/install-zls.sh | |
--- a/installer/install-zls.sh 2025-02-23 20:02:19 | |
+++ b/installer/install-zls.sh 2025-02-23 20:02:36 | |
@@ -2,8 +2,34 @@ | |
set -e | |
+zls_for_zig_version() { | |
+ git log -G minimum_zig_version --format=%H build.zig.zon | while read commit; do | |
+ if git show $commit:build.zig.zon | awk -v major=$1 -v minor=$2 -v patch=$3 -v rev=$4 \ |
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
<# | |
.SYNOPSIS | |
Revert WinRM to a pristine state. | |
See this post for full details on why this code is helpful: https://cloudywindows.io/winrm-for-provisioning---close-the-door-on-the-way-out-eh/ | |
.DESCRIPTION | |
CloudyWindows.io DevOps Automation: https://github.com/DarwinJS/CloudyWindowsAutomationCode | |
Why and How Blog Post: https://cloudywindows.io/winrm-for-provisioning---close-the-door-when-you-are-done-eh/ | |
Invoke-Expression (Invoke-WebRequest -UseBasicParsing -Uri 'https://raw.githubusercontent.com/DarwinJS/Undo-WinRMConfig/blob/master/Undo-WinRMConfig/Undo-WinRMConfig.ps1') | |
Invoke-WebRequest -UseBasicParsing -Uri 'https://raw.githubusercontent.com/DarwinJS/Undo-WinRMConfig/blob/master/Undo-WinRMConfig/Undo-WinRMConfig.ps1' -outfile $env:public\Undo-WinRMConfig.ps1 ; & $env:public\Undo-WinRMConfig.ps1 -immediately | |
Contributing New Undo Profiles: https://github.com/DarwinJS/Undo-WinRMConfig/blob/master/readme.md |
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
Add-Type @' | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace LSA | |
{ | |
using System.Runtime.InteropServices; | |
using System.Security; | |
using System.Management; |
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
{{- $directories := list -}} | |
{{- $files := list -}} | |
{{- range .Items -}} | |
{{- if .IsDir -}} | |
{{- $directories = mustAppend $directories . -}} | |
{{- else -}} | |
{{- $files = mustAppend $files . -}} | |
{{- end -}} | |
{{- end -}} | |
{ |
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
{{- define "icon" -}} | |
{{- if .IsDir -}} | |
<img src="data:image/gif;base64,R0lGODlhFAAWAMIAAP/////Mmcz//5lmMzMzMwAAAAAAAAAAACH+TlRoaXMgYXJ0IGlzIGluIHRoZSBwdWJsaWMgZG9tYWluLiBLZXZpbiBIdWdoZXMsIGtldmluaEBlaXQuY29tLCBTZXB0ZW1iZXIgMTk5NQAh+QQBAAACACwAAAAAFAAWAAADVCi63P4wyklZufjOErrvRcR9ZKYpxUB6aokGQyzHKxyO9RoTV54PPJyPBewNSUXhcWc8soJOIjTaSVJhVphWxd3CeILUbDwmgMPmtHrNIyxM8Iw7AQA7" alt="[DIR]"> | |
{{- else if or (hasSuffix ".jpg" .Name) (hasSuffix ".jpeg" .Name) (hasSuffix ".png" .Name) (hasSuffix ".gif" .Name) (hasSuffix ".webp" .Name) (hasSuffix ".tiff" .Name) (hasSuffix ".bmp" .Name) (hasSuffix ".heif" .Name) (hasSuffix ".heic" .Name) -}} | |
<img src="data:image/gif;base64,R0lGODlhFAAWAOMAAP////8zM8z//8zMzJmZmWZmZmYAADMzMwCZzACZMwAzZgAAAAAAAAAAAAAAAAAAACH+TlRoaXMgYXJ0IGlzIGluIHRoZSBwdWJsaWMgZG9tYWluLiBLZXZpbiBIdWdoZXMsIGtldmluaEBlaXQuY29tLCBTZXB0ZW1iZXIgMTk5NQAh+QQBAAACACwAAAAAFAAWAAAEkPDISae4WBzAu99Hdm1eSYYZWXYqOgJBLAcDoNrYNssGsBy/4GsX6y2OyMWQ2OMQngSlBjZLWBM1AFSqkyU4A2tWywUMYt/wlTSIvgYGA/Zq3QwU7mmHvh4g8GUsfAUHCH95 |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <limits.h> | |
int digitalroot(long num) { | |
int sum = 0; | |
// sum digits of num |
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 sys | |
import struct | |
import json | |
KEYS = { | |
-2129310917: '0x81154B3B', | |
-2117554806: 'godray_inival', | |
-2117455812: 'skyToneAmbientIntensity', | |
-2111807076: 'tmaaSharpness_1', | |
-2105411348: 'avmp10', |
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
package example; | |
import org.springframework.security.oauth2.core.OAuth2TokenType; | |
import org.springframework.security.oauth2.server.authorization.JwtEncodingContext; | |
import org.springframework.security.oauth2.server.authorization.OAuth2TokenCustomizer; | |
import org.springframework.stereotype.Component; | |
@Component | |
public class JwtCustomizer implements OAuth2TokenCustomizer<JwtEncodingContext> { |
NewerOlder