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 June 27, 2024 07:58
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/ \
@gbrayhan
gbrayhan / contact.html
Created June 7, 2018 05:55 — forked from ShuvoHabib/contact.html
Mailgun Contact Form
<div class="contact-form">
<form id="contactform" name="contactform" method="post">
<div class="row">
<div class="col-sm-6">
<input name="name" class="form-control" type="text" placeholder="Name*"/>
</div>
<div class="col-sm-6">
<input name="email" class="form-control" type="email" placeholder="Email*"/>
</div>
<div class="clearfix"></div>
@mholt
mholt / macapp.go
Last active June 19, 2024 16:05
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 June 25, 2024 18:16
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)