Skip to content

Instantly share code, notes, and snippets.

View mohsenkhanpour's full-sized avatar

Mohsen Khanpour mohsenkhanpour

View GitHub Profile
@spdegabrielle
spdegabrielle / terminal.md
Created November 5, 2023 12:22
@thingskatedid 💡FAQ about displaying stuff in a terminal
@stokito
stokito / README.md
Last active September 21, 2024 10:00
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",
"$id": "https://example.com/product.schema.json",
"title": "sing-box config schema",
"type": "object",
"$defs": {
"listableString": {
"$comments": "ref:https://github.com/SagerNet/sing-box/blob/b0db869b052aa32ec1716e43f7c1f50d7e491057/option/types.go#L77",
"description": "allow not having to be an array when there's single item",
"oneOf": [

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! 🎆


@mattbell87
mattbell87 / remote-wsl.md
Last active September 12, 2024 08: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.
@gpspelle
gpspelle / firework-overlay-demo.markdown
Created August 28, 2020 08:24
Firework Overlay Demo

Firework Overlay Demo

This is a fork of my firework simulator that shows how it could be used as an overlay above custom content. Keep in mind I built this as a standalone project, not as a plugin/library. There are a bunch of issues you may possibly run into using this code.

Some features from the full version have been disabled, including sound effects and the menu system. Getting these to work well on a custom site involves even more work.

If you like this and use it yourself, I would appreciate if you credit me (Caleb Miller) at cmiller.tech.

A Pen by Gabriel Pellegrino da Silva on CodePen.

@Postrediori
Postrediori / Interactive-Graphics.md
Last active December 31, 2023 09:13
Online Resources With Generative and Interactive Graphics

Introduction

THis is a list of interactive coding tools online.

GLSL-based interactive tools

Shadertoy

Managing Gists Locally

by Danny Quah, May 2020 (revised Jan 2022)

Through the Embed instruction or plugin, Gist snippets on GitHub can conveniently provide posts on Medium, WordPress, and elsewhere supplementary information (lines of code, images, Markdown-created tables, and so on). But while Gist snippets on GitHub can be managed directly via browser or through something like [Gisto][], a user might also wish to manipulate them offline. This last is for many of the same reasons that a user seeks to clone a git repo to their local filesystem, modify it locally, and then only subsequently push changes back up to GitHub.

Here's how to do this:

Create the gist on GitHub and then clone it to your local filesystem:

@JakubOboza
JakubOboza / private-docker-regs-with-free-tiers.markdown
Created May 30, 2019 07:15
Private Docker registry with free tiers for Developers.

List of sites with free tier limits

  • Docker Hub - One private repo/image spot for free
  • Three Scale - Very generous free tier 50GB of space, 500 Pulls a month etc..
  • Canister - 20 private repos with almost no limits on free tier
  • Code Fresh - Free tier for developers

Setup your own private registry