Skip to content

Instantly share code, notes, and snippets.

View mbaneshi's full-sized avatar
👋
happy coding

Mehdi Baneshi mbaneshi

👋
happy coding
View GitHub Profile

How To Use GitHub Gists For Publishing Articles

GitHub Gists may be used not only for code snippets sharing but as a publishing platform for your articles.

Features And Restrictions Of GitHub Gists

Each gist is a git repo with restrictions and features:

  • You can't create folders in any branch of the repo.
  • Each file in the master branch larger than 1MB risks to be truncated so you can't add zip archive to master. But you may keep additional large files at another branches which can't be viewed on the gist page.
  • If you want to use images in your article but wish non-embedded images to be hidden on the gist page then you may keep them in non-master branch and reference by .//raw//foobar.jpg.

Comparison of ASP.NET and Node.js for Backend Programming

We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.

Updates

This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):

  1. Koa.js no longer uses co-routines, it has switched to Babel's async/await. yield and await are used almost in the same way, so I see no point to rewrite the examples.

Tuning Windows 10 for Slow Machines

Windows 10 on slow netbook

This guide is for those who dares to install Windows 10 on slow netbooks (1GB of RAM).
Though Windows update program is over, you still may use old Windows product keys from license stickers to install Windows 10 on old machines.

UPD Jan 2019
This article is quite old, some instructions may be obsolete.

abbr sss "open x-apple.systempreferences:com.apple.preference.sound"
abbr kt 'kitty +kitten themes'
abbr fcc fish_config
abbr s "kitty +kitten ssh"
abbr tws ' ssh -C -N -v -L 8080:twitter.com:80 shahab@23.88.127.140'
[style.description]
underline = false
bold = false
italic = false
[style.command_name]
foreground = "red"
underline = false
bold = false
italic = false
@mbaneshi
mbaneshi / bot.py
Created June 20, 2023 08:10
work in progress
# import os
# import requests
# from flask import Flask, request
from flask import Flask
from telegram import Bot
# from dotenv import load_dotenv
# Load environment variables from .env file in the current working directory
# load_dotenv()
@mbaneshi
mbaneshi / a.py
Created June 19, 2023 22:06
py test
import os
print(os.getcwd())
print('hello py')
@mbaneshi
mbaneshi / alacritty.yml
Created June 19, 2023 21:42
alacrity conf
import:
# uncomment the flavour you want below:
# - ~/.config/alacritty/catppuccin/catppuccin-mocha.yml
# - ~/.config/alacritty/catppuccin/catppuccin-macchiato.yml
#- ~/.config/alacritty/catppuccin/catppuccin-frappe.yml
# - ~/.config/alacritty/catppuccin/catppuccin-latte.yml
- ~/.config/alacritty/tokyo-night/zatchheems-tokyo-night-alacritty-theme.yml
#
#this is comment
# Configuration for Alacritty, the GPU enhanced terminal emulator.
dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa
The options you provided refer to different cryptographic algorithms used for digital signatures. Here's a brief explanation of each:
1. DSA (Digital Signature Algorithm): DSA is a widely used algorithm for digital signatures. It is based on the mathematical concept of modular exponentiation and is primarily used for authentication and integrity verification of digital documents.
2. ECDSA (Elliptic Curve Digital Signature Algorithm): ECDSA is another digital signature algorithm that is based on elliptic curve cryptography. It offers the same functionality as DSA but with smaller key sizes, making it more efficient in terms of computation and storage.
3. ECDSA-SK (ECDSA with Secure Key): ECDSA-SK is an extension of ECDSA that incorporates additional security features for protecting the private key. It typically involves the use of secure hardware modules or tokens to store and perform cryptographic operations using the private key securely.
@mbaneshi
mbaneshi / .gist1.learning-go-lessen01.sh
Created June 4, 2023 13:12
this is my first gist ,created by gh cli , and nvim , zellij and kitty
❯ gh gist create --help
Create a new GitHub gist with given contents.
Gists can be created from one or multiple files. Alternatively, pass "-" as
file name to read from standard input.
By default, gists are secret; use '--public' to make publicly listed ones.
USAGE