Skip to content

Instantly share code, notes, and snippets.

@Sighyu
Sighyu / Favorite_gifs.js
Created February 16, 2026 01:23
export discord favourite gifs (requires vencord or any other vencord forks)
/*
Export your favourite gifs
Vencord is required or any fork of vencord
paste into console using ctrl+shift+i
*/
(() => {
// 1. Find the module that manages user settings (including fav gifs)
const FrecencyUserSettings = Vencord.Webpack.find(m => m.ProtoClass?.typeName?.endsWith(".FrecencyUserSettings"));
if (!FrecencyUserSettings) {
@XDflight
XDflight / README.md
Last active June 13, 2026 01:45
Remove cache and old extensions under "~/.vscode-server/" on your Linux server

If you often connect to your Linux server using VSCode, the "~/.vscode-server/" folder (and sometimes the ~/.cache/ folder too) can get very large because VSCode:

  1. Does NOT clean its download cache after installing extensions;
  2. Does NOT delete old extensions after updating them;
  3. Does NOT remove old VSCode servers after installing a new version.

If your server storage space is limited, you might consider cleaning "~/.vscode-server/" (and ~/.cache/) regularly using the bash script I wrote. Simply run the following command:

curl -sL https://gist.githubusercontent.com/XDflight/5f3509eb84fc282b88059c909036f5bc/raw/07aa29746c9b085fce84702967bdfe6ac019c8b6/clean_vscode-server.sh | bash -s
@Limbicnation
Limbicnation / ubuntu_cleanup_hardened.sh
Last active May 22, 2026 17:20
ubuntu_cleanup.sh A comprehensive system cleanup script for Ubuntu 24.04 that safely removes unnecessary files to free up disk space. This script includes system maintenance tasks like package cleanup, log rotation, cache removal, and system optimization. Features include progress tracking, disk space reporting, resource limiting, and extensive …
#!/usr/bin/env bash
# Security-Hardened Ubuntu Cleanup Script
# This script performs comprehensive system cleanup with enterprise-grade security
# EXCLUDES: hy3dgen folder from any deletion operations
#
# Security improvements:
# - Comprehensive error handling with trap handlers
# - Safe configuration loading without arbitrary code execution
# - APT and script-level locking mechanisms
@Silvenga
Silvenga / install.ps1
Created September 13, 2023 00:16
A simple PS script to install ADB/Fastboot (aka platform-tools) directly from Google and add the the binaries to PATH.
function Update-UserPath([string]$Value)
{
$currentPath = [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::User)
if ($currentPath -like "*${Value}*")
{
Write-Host "The value '${Value}' already exists in user PATH, no update is needed."
}
else
{
$targetPath = $currentPath + ";${Value}";
@wanglf
wanglf / vscode-extension-offline.md
Last active June 2, 2026 18:02
Download VS Code extensions as VSIX

How to use?

  • Copy content of vsix-bookmarklet, create a bookmark in your browser.
  • Navigate to the web page of the VS Code extension you want to install.
  • Click the bookmark you just created, then click the download button.
    download
  • After download finished, rename the file extension to *.vsix.
  • In VS Code, select Install from VSIX... in the extension context menu.
    vsc