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
// Zed settings | |
// | |
// For information on how to configure Zed, see the Zed | |
// documentation: https://zed.dev/docs/configuring-zed | |
// | |
// To see all of Zed's default settings without changing your | |
// custom settings, run `zed: open default settings` from the | |
// command palette (cmd-shift-p / ctrl-shift-p) | |
{ | |
"features": { |
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 | |
cls | |
Color 04 | |
Echo ############################################################################## | |
Echo Script to disable Virtualization Based Security and Credential Guard | |
Echo Version 20250404 by Metis IT | |
Echo Script started at %date% %time% | |
Echo . | |
Echo DISCLAIMER: | |
Echo . |
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
{"configVersion":10,"chat-sessions":[],"settings":{"showWordCount":false,"showTokenCount":false,"showTokenUsed":true,"showModelName":true,"showMessageTimestamp":false,"showFirstTokenLatency":false,"userAvatarKey":"","defaultAssistantAvatarKey":"","theme":2,"language":"en","fontSize":16,"spellCheck":true,"defaultPrompt":"You are a helpful assistant.","allowReportingAndTracking":true,"enableMarkdownRendering":true,"enableLaTeXRendering":true,"enableMermaidRendering":true,"injectDefaultMetadata":true,"autoPreviewArtifacts":false,"autoCollapseCodeBlock":true,"pasteLongTextAsAFile":true,"autoGenerateTitle":true,"autoLaunch":false,"autoUpdate":true,"betaUpdate":false,"shortcuts":{"quickToggle":"Alt+`","inputBoxFocus":"mod+i","inputBoxWebBrowsingMode":"mod+e","newChat":"mod+n","newPictureChat":"mod+shift+n","sessionListNavNext":"mod+tab","sessionListNavPrev":"mod+shift+tab","sessionListNavTargetIndex":"mod","messageListRefreshContext":"mod+r","dialogOpenSearch":"mod+k","inpubBoxSendMessage":"Enter","inpubBoxSendMess |
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 main | |
import ( | |
"bufio" | |
"context" | |
"encoding/csv" | |
"fmt" | |
"os" | |
"path/filepath" | |
"runtime" |
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
#!/usr/bin/env bash | |
# Prompt user to enter the domain | |
read -p "Please enter the domain (e.g., example.com): " domain | |
# Get the current year and month | |
current_year=$(date +%Y) | |
current_month=$(date +%m) | |
# Get the first day of the current month |
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
#!/usr/bin/env bash | |
docker run --name pgauto -it \ | |
--mount type=bind,source=${PGDATA},target=/var/lib/postgresql/data \ | |
-e TZ="Asia/Bangkok" \ | |
-e LANG="C.UTF-8" \ | |
-e POSTGRES_USER="${POSTGRES_USER}" \ | |
-e POSTGRES_PASSWORD="${POSTGRES_PASSWORD}" \ | |
-e PGAUTO_ONESHOT=yes \ | |
pgautoupgrade/pgautoupgrade:17-bookworm |
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
#!/usr/bin/env bash | |
# Print header information | |
cat << "EOF" | |
+----------------------------------------------------------------------+ | |
| Intel Gen 12/13 vGPU SR-IOV on Proxmox Host Enabler (Installer) | | |
| https://github.com/Upinel/Intel-vGPU-SRIOV-on-Proxmox | | |
+----------------------------------------------------------------------+ | |
| This source file is subject to version 2.0 of the Apache license, | | |
| that is bundled with this package in the file LICENSE, and is | |
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
async function handler(event) { | |
const request = event.request; | |
const uri = request.uri; | |
// Extract pathname and check conditions | |
const hostnameWithPath = uri.split('//').pop(); | |
const hasQuery = uri.indexOf('?') !== -1; | |
const hasExtension = uri.indexOf('.') !== -1 && uri.lastIndexOf('.') > uri.lastIndexOf('/'); | |
const pathEndWithSlash = uri.charAt(uri.length - 1) === '/'; | |
const isRootUrl = hostnameWithPath.indexOf('/') === -1 || hostnameWithPath.indexOf('/') === (hostnameWithPath.length - 1); |
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
DELIMITER // | |
-- Drop the procedure if it already exists | |
DROP PROCEDURE IF EXISTS convert_chars_to_utf8mb4 // | |
-- Create the procedure to convert character set of columns | |
CREATE PROCEDURE convert_chars_to_utf8mb4(IN db_name VARCHAR(255)) | |
BEGIN | |
-- Declare variables for cursor and loop control | |
DECLARE done INT DEFAULT FALSE; |
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
#!/usr/bin/env bash | |
# ------------------------------------------------------------------------------ | |
# Script Name: update-litespeed-cache.sh | |
# Description: This script updates the LiteSpeed Cache plugin for all WordPress | |
# installations on a DirectAdmin server. It checks for the WP-CLI | |
# tool and installs it if not found, then updates the specified plugin | |
# for each user's domains. | |
# | |
# Author: Kawin Viriyaprasopsook |
NewerOlder