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
[Desktop Entry] | |
Version=5.1 | |
Name=Whatsapp By Xnuvers007 | |
Type=Application | |
Exec='/usr/local/bin/whatsdesk.sh' | |
Icon=/path/to/image | |
StartupNotify=true | |
Terminal=false | |
file whatsdesk.sh like this |
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
from flask import Flask, request, send_from_directory, jsonify, redirect, url_for | |
from html2image import Html2Image | |
import os | |
from threading import Timer | |
from urllib.parse import urlparse | |
app = Flask(__name__) | |
# Configure Html2Image with custom flags | |
hti = Html2Image(output_path='output/', |
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 os | |
try: | |
import requests | |
from bs4 import BeautifulSoup | |
except ImportError: | |
print("Required packages not found. Attempting to install them.") | |
try: | |
os.system("pip install requests beautifulsoup4") | |
print("Packages installed successfully.") |
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 re | |
import requests | |
import tkinter as tk | |
from tkinter import messagebox | |
import webbrowser | |
def get_video_id(url): | |
pattern = re.compile(r'(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})') | |
match = pattern.search(url) | |
return match.group(1) if match else None |
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 turtle | |
from math import pi, sin, cos | |
def draw_heart(w, h, iteration=0): | |
if iteration >= len(colors): | |
return | |
t = turtle.Turtle() | |
t.hideturtle() | |
t.pensize(2.5) |
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
og:Type Lists Of Objects | |
- apps.saves | |
An action representing someone saving an app to try later. | |
- article | |
This object represents an article on a website. It is the preferred type for blog posts and news stories. | |
- book | |
This object type represents a book or publication. This is an appropriate type for ebooks, as well as traditional paperback or hardback books. Do not use this type to represent magazines |
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
#!/usr/bin/env sh | |
# LATEST VERSION OF THIS SCRIPT: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4 | |
# FORKED FROM: https://gist.github.com/ddwang/0046da801bcb29d241869d37ad719394 | |
# 1) No longer has a hard-coded COMMIT | |
# 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking | |
# HOW TO INSTALL: | |
# 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings | |
# 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable |