Skip to content

Instantly share code, notes, and snippets.

View fasalmbt's full-sized avatar
🎯
Focusing

Muhammad Fasal fasalmbt

🎯
Focusing
View GitHub Profile
#include <iostream>
using namespace std;
int row, col;
/*
can be used for left traingle and pyramid pattern with space
*
* *
sudo apt update && sudo apt upgrade
sudo apt install git tree nodejs python3-pip npm curl sysstat htop golang-go mysql-client-core-8.0 mysql-server
sudo snap install code --classic
sudo apt install php7.4-cli
sudo snap install android-studio --classic
sudo snap install postman --classic
sudo apt install ruby
sudo snap install flutter --classic
sudo snap install insomnia
<!DOCTYPE html>
<html>
<head>
<title>Calculus notes</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script>
MathJax = {
tex: {inlineMath: [['$', '$'], ['\\(', '\\)']]}
};
</script>
@fasalmbt
fasalmbt / scrape_currency.py
Created January 6, 2021 20:03
Scrape the value of currency from google search and print it in indian rupees
import requests as r
from bs4 import BeautifulSoup
currency = input("Enter the Currency and value >> ")
search = "Value of {} in rupees".format(currency)
url = f"https://www.google.com/search?&q={search}"
req = r.get(url)
http_data = BeautifulSoup(req.text, "html.parser")
temp = http_data.find("div", class_='BNeawe').text
@fasalmbt
fasalmbt / solution.py
Created December 15, 2020 07:40
Generate QR Codes
#QRCode geneartion made easy
import os
import pyqrcode
from PIL import Image
class QRCode(object):
def __init__(self,text):
self.qr_image = self.qr_generator(text)
#update-initramfs: Generating /boot/initrd.img-2.6.39-0-generic-pae
#W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
#seen in ubuntu 18.04 during sudo apt upgrade operation
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
sudo cp -r linux-firmware/rtl_nic/ /lib/firmware/
sudo update-initramfs -u