This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open the terminal or Press Alt+Ctrl+t | |
Paste the Command Below. | |
$sudo mount | grep <disk_name> | |
Replace the disk Name with the disk you want to fix i.e, Data | |
Example: | |
$sudo mount | grep Data | |
Output: | |
/dev/sdb2 on /media/utgupta27/Data type fuseblk (ro,nosuid,nodev,relatime, | |
user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run the Commands listed below: | |
$sudo apt install git make gcc libgtk-3-dev libpolkit-gobject-1-dev | |
$git clone https://github.com/thiggy01/gdm-background.git | |
$cd gdm-background/ | |
$make | |
$sudo make install | |
Click the GDM-Background icon in your application launcher and drag-n-drop any background image of your choice and then restart Your computer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View the current system swappiness: | |
$sysctl vm.swappiness | |
Temporarily configure the System Swappiness: | |
$sudo sysctl vm.swappiness=10 | |
(The changes will persist until you restart your PC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Only for Snap-Packages. | |
Stop auto-update: | |
$sudo snap set system refresh.metered=hold | |
(After executing the above command, toggle-on the Metered Wifi Connection) | |
Resume auto-update: | |
$sudo snap set system refresh.metered=null | |
(After executing the above command, toggle-of the Metered Wifi Connection) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing pytube module for downloading and selecting the streams for the video to be downloaded | |
from pytube import YouTube | |
# Importing the OS module for accessing system functionality | |
# 'getlogin' gives the username of the user who is logged in currently | |
# 'remove' to delete the junk files from the system to free up space | |
from os import remove,getlogin | |
# Importing the platform module to identify the type of system on which the program is being used. | |
from platform import system | |
def get_video_info(url): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Using SQLite3 database for storing the data locally on the machine" | |
import sqlite3 | |
import os | |
"Importing the Encrypt class for encryption and decryption of databases" | |
from encrypt import Encrypt | |
class UserBase(): | |
""" | |
This UserBase() class contains all the methods/functions to manipulate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 as cv | |
import mediapipe | |
import time | |
class PoseDetection(): | |
def __init__(self, markLandmarks=list(range(21)), drawPose=True, mark=True) -> None: | |
self.stream = cv.VideoCapture(0) | |
self.drawPose = drawPose | |
self.mark = mark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 as cv | |
import mediapipe | |
import time | |
class FaceDetection: | |
def __init__(self) -> None: | |
self.delayFrame = 1 | |
self.prevTime = 0 | |
self.currTime = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import mediapipe | |
import time | |
class HandDetection: | |
def __init__(self, markLandmarks=list(range(21)), drawPalm=True, mark=True): | |
self.mark = mark | |
self.delayFrame = 1 | |
self.prevTime = 0 |
NewerOlder