Skip to content

Instantly share code, notes, and snippets.

View Mohsens22's full-sized avatar
🎯
Focusing

Mohsen Seifi Mohsens22

🎯
Focusing
View GitHub Profile
@Mohsens22
Mohsens22 / TestAsyncLocal.cs
Created May 16, 2024 14:43
This gist tests if Task.Run and Parallel.ForEachAsync actually create async contexts.
namespace PatchUpYaml.Tasks
{
internal class TestAsyncLocal
{
public async Task ExecuteAsync()
{
var values = Enumerable.Range(0, 16).ToArray();
var tasks = new Task[values.Length];
var asyncLocal = new AsyncLocal<string>();
string notAsyncLocal = "";
@Mohsens22
Mohsens22 / install.bat
Last active November 14, 2022 13:29
Geeks VPC update tools
dotnet tool install zebble-schema --global
dotnet tool install zebble-image --global
dotnet tool install zebble-format-zbl --global
dotnet tool install zebble-css --global
dotnet tool install zebble-compile-zbl --global
dotnet tool install zebble-build --global
dotnet tool install update-local-nuget-cache --global
dotnet tool install replace-in-file --global
dotnet tool install msharp-build --global
dotnet tool install generate-eventbus-command-proxy --global
#!/bin/bash
(STOP=$((SECONDS+5))
until [[ $SECONDS -ge $STOP || $(ps -C fluidsynth -o stat=) =~ S ]]; do:; done &&
aconnect 20:0 128:0 &)
fluidsynth -a alsa -g 5 /usr/share/sounds/sf2/FluidR3_GM.sf2
@Mohsens22
Mohsens22 / MTP.txt
Created January 15, 2021 09:29
Telegram MT Proxy
https://t.me/proxy?server=198.74.56.224&port=443&secret=ee000000000000000000000000000000006d61696c2e676f6f676c652e636f6d
https://t.me/proxy?server=now.lets.begin.we.are.here.todownipantigotitmudfuk.wwww.digikala.com.iranserver.com.bing.com.gmail.com.nic.ir.thisisme.ir.mihanwebhost.ejhost.ir.986.entekhab.ddns.net.dynu.com.noip.withoutip.withouanti.justfucem.hehehehehe.nokwabcdefo.iranserver.website.&port=23456&secret=ee000000000000000000000000000000006b65746161626f6e6c696e652e636f6d
https://t.me/proxy?server=194.5.206.179&port=443&secret=7gAAAAAAAAAAAAAAAAAAAAB3d3cuY2xvdWRmbGFyZS5jb20=
@Mohsens22
Mohsens22 / Albums.txt
Created September 19, 2020 05:16
Mohsen and Hasti album night list
No Man:
Schoolyard Ghosts
Returning Jesus
Flower Mouth
Love you to the bits
@Mohsens22
Mohsens22 / Roles.txt
Last active May 23, 2020 12:31
Memesta Roles
Rules and regulations
Your responsibilities would be:
1- Posting new and high quality content.
2- Creating and posting original memes and content.
3- Keep an eye on the quality of memes.
4- Help the growth of the channel, in terms of quantity of subscribers.
5- Moderating @MemestaGroup and having connections to our subscribers.
Postig style:
@Mohsens22
Mohsens22 / BestMemesEnVote.txt
Last active March 31, 2020 13:58
Favorite memes of each admin and program used for generating meme of the year in @Memesta.
1- https://t.me/Memesta/5056 Woman's day, by Mohsen and Reza Kornano
2- https://t.me/Memesta/4582 Super villain, by Sam
3- https://t.me/Memesta/1260 Kiss ass student, by Mohsen (Template by Mohsen)
4- https://t.me/Memesta/5003 The Lesbo, by Mohsen (Template by Mohsen)
5- https://t.me/Memesta/5215 Boil the money, by Anita
6- https://t.me/Memesta/1933 Rapists vs me, by Mohsen (Template by Reza Kortano and Mohsen)
7- https://t.me/Memesta/4352 Feminists vs Amber, by Mohsen
8- https://t.me/Memesta/1408 Observe my cheat, by Mohsen
9- https://t.me/Memesta/1217 God restarts, by Mohsen
10- https://t.me/Memesta/1284 Bad father, by Reza Kortano (Template by Mohsen)
@Mohsens22
Mohsens22 / Chapters
Last active December 29, 2019 17:13
Asp MVC 101, Shamsi pour
1 Basics:
- They are general, but u can skip to episode 3
- Web, request and response (User side)
- Url = protocol + address + Endpoint(resource), it should make sence.
- Request = Url, verb, body(payload) and attributes
- Google example ( Types, sends request, gets html and shows)
- HTTP verbs, post vs get : Post has body, get doesn't. Body can get encrypted. Post is used for manipulating data.
- Get with attributes, post with body
- Web server, application server
- Web, Getting request and deciding what to do.
@Mohsens22
Mohsens22 / BookList.txt
Last active January 12, 2020 13:50
Books
Scrum and XP from the trenches
Choice theory
Toxic people
Think like a man act like a lady
Neighbor (Novel)
How to get things done
Toghyan
Sakhtan ayande
---
@Mohsens22
Mohsens22 / Part 0
Last active November 5, 2019 13:49
Programming concepts
- What is this course and what we're gonna learn
- What is programming
- What is not programming
- Why you should know programming concepts