Skip to content

Instantly share code, notes, and snippets.

View manashmandal's full-sized avatar
👨‍💻
Probably Coding || ! Probably Coding

Manash Kumar Mandal manashmandal

👨‍💻
Probably Coding || ! Probably Coding
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@manashmandal
manashmandal / download.sh
Created May 3, 2020 20:52
Download Asset from Private Repo
curl -L -H 'Accept: application/octet-stream' -H "Authorization: token $TOKEN" 'https://api.github.com/repos/:owner/:repo/releases/assets/:asset_id' --output output.format
{
"openapi": "3.0.3",
"info": {
"title": "Bmi Screen Event",
"description": "All of events will be there which one is trigger on Bmi Screen ui",
"version": "1.0.0"
},
"paths": {},
"tags": [{
"name": "Event Details"
@manashmandal
manashmandal / cloudSettings
Last active October 16, 2021 17:28
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-16T17:27:58.934Z","extensionVersion":"v3.4.3"}
@manashmandal
manashmandal / .block
Created December 23, 2016 14:44
Concept Network on BD News Analysis
license: mit
license: mit
@manashmandal
manashmandal / disable-nouveau.sh
Created September 13, 2019 14:03
Disable Nouveau Driver
sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo update-initramfs -u
@manashmandal
manashmandal / letsencrypt_2019.md
Created October 23, 2019 09:58 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@manashmandal
manashmandal / fetch.py
Created April 28, 2020 06:16
Asyncio Concurrent Request
# Need at least Python 3.7 To Run this code
import asyncio
import aiohttp
endpoint = "https://randomuser.me/api/"
num_concurrent_requests = 20
async def fetch(session, url):
async with session.get(url) as response: