Skip to content

Instantly share code, notes, and snippets.

View HEskandari's full-sized avatar

Hadi Eskandari HEskandari

View GitHub Profile
@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active April 16, 2025 09:38
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

پنل x-ui

پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور

mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
 -v $PWD/cert/:/root/cert/ \
@sts10
sts10 / rust-command-line-utilities.markdown
Last active April 30, 2025 14:31
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@mholt
mholt / macapp.go
Last active May 1, 2025 04:32
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@mdo
mdo / 00-intro.md
Last active March 4, 2025 19:03
Instructions for how to affix an Ikea Gerton table top to the Ikea Bekant sit-stand desk frame.

Ikea Bekant standing desk with Gerton table top

@evandroamparo
evandroamparo / WinMergeSourcetree.txt
Last active June 6, 2023 14:27
WinMerge with Sourcetree
Diff tool: C:\Program Files (x86)\WinMerge\WinMergeU.exe
Arguments: "$LOCAL" "$REMOTE" -dl "Local" -dr "Remote"
Merge tool: C:\Program Files (x86)\WinMerge\WinMergeU.exe
Arguments: "$MERGED"
var predicate = PredicateBuilder.True<Person>();
if (filderOptions.FirstName != null)
predicate = predicate.AndAlso(p=>p.FirstName == "Alex");
if (filderOptions.SomeNullable.HasValue)
predicate = predicate.AndAlso(p=>p.SomeProp == filterOptions.SomeNullable.Value);
var where = queryable.Where(predicate);
// will create an expresion which looks like this: p => true && p.FirstName == "Alex" && p.SomeProp == filterOptions.SomeNullable.Value)