Skip to content

Instantly share code, notes, and snippets.

View mohsenkhanpour's full-sized avatar

Mohsen Khanpour mohsenkhanpour

  • Tehran, Iran
View GitHub Profile
@dEN5-tech
dEN5-tech / config.schema.json
Last active February 8, 2026 14:33
config.schema.json | XTLS/Xray-core
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/ConfigObject",
"definitions": {
"ConfigObject": {
"type": "object",
"title": "Xray-core Configuration",
"description": "Root configuration object for Xray.",
"additionalProperties": false,
"properties": {
@tdcosta100
tdcosta100 / WSL2GUIWSLg-Wayland-en.md
Last active March 8, 2026 19:11
Using full desktop shell in WSL2 using WSLg (Wayland)

Full desktop shell in WSL2 using WSLg (Wayland)

Note

If you want a more complete experience and already tried the Xvnc tutorial, maybe you should try the WSLg (Xwayland) instead.

Warning

This is a work in progress tutorial. Things done here may break existing functionality, so be careful!

In this tutorial, we will install and use a full GNOME Desktop environment in WSL2, without any external software. The only requirement is a working WSLg installation. At the moment, the instructions are only for Ubuntu (20.04, 22.04 and 24.04) distros and GNOME, but you can request me to test other distros and desktop environments.

@spdegabrielle
spdegabrielle / terminal.md
Created November 5, 2023 12:22
@thingskatedid 💡FAQ about displaying stuff in a terminal
@test482
test482 / clash-meta-config.yaml
Last active February 8, 2026 14:38
Clash Meta config
# Meta JSON Schema: A linter and snippet provider for Clash.Meta(mihomo) configuration.
log-level: info
external-controller: 127.0.0.1:9090
# external-ui: /usr/share/metacubexd/
# secret: "在此修改访问令牌"
mode: rule
mixed-port: 7890
allow-lan: false
@stokito
stokito / README.md
Last active January 25, 2025 22:14
Cryptography GUI tools: OpenSSL GUI, keys management, PKI, PGP/GPG GUI
@mdgrs-mei
mdgrs-mei / TerminalSpinner.ps1
Created June 15, 2023 14:43
Show spinner on the Windows Terminal tabs for every command.
$global:originalPSConsoleHostReadLine = $function:global:PSConsoleHostReadLine
$global:originalPrompt = $function:global:Prompt
$function:global:PSConsoleHostReadLine = {
$startProgressIndicator = "`e]9;4;3;50`e\"
$command = $originalPSConsoleHostReadLine.Invoke()
$startProgressIndicator | Write-Host -NoNewLine
$command
}
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "sing-box config schema",
"type": "object",
"properties": {
"log": {
"$ref": "#/$defs/log.schema.json"
},
"dns": {
"$ref": "#/$defs/dns.schema.json"

Firework Simulator v2

Fireworks fan here. This simulation of various firework effects offers variety and an attempt at realism.

Be sure to check out the settings menu (cog icon on top right) for more features and controls.


🎆 Major v2 Update! 🎆


@nikoheikkila
nikoheikkila / README.md
Last active December 14, 2025 01:16
Fish Shell function for sourcing standard .env files

envsource

⚠️ NOTE (20.5.2023): I don't really use this function at all anymore since there are now tools such as Taskfile, which reads the .env file for me sparing me the need to pollute my session with environment variables.


I've been using Fish shell for years which is great and all, but one thing that has got me frustrated is using it with .env files.

When attempting to run source .env in a project, I usually encounter this problem:

@mattbell87
mattbell87 / remote-wsl.md
Last active February 6, 2026 02:00
VSCode Remote: Connect to WSL2 from another machine

VSCode Remote: Connect to WSL2 from another machine

Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.

Proxy jump method

  1. On the host set up OpenSSH for Windows
  2. Run wsl --update to make sure you are running the latest WSL
  3. Open WSL and install another SSH server inside WSL with sudo apt-get install openssh-server
  4. Now run sudo systemctl enable --now ssh to automatically start ssh when WSL starts.