Skip to content

Instantly share code, notes, and snippets.

View Itz-fork's full-sized avatar
🖤
Exploring :octocat:

Hirusha Himath Itz-fork

🖤
Exploring :octocat:
View GitHub Profile
@Itz-fork
Itz-fork / Eventify-Widget.txt
Created May 2, 2021 14:32
Eventify Social Widget
# For Eventify Blogger Template #
# Add This after 13th line In Your Blogger Template Html
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css' rel='stylesheet'/>
# Code For The Widget
<div class="wrapper">
<div class="icon instagram">
{"id":"eb9777220b6c9e6318a230e6e768b3fd",
"type":"movies",
"title":"Watch Sarrainodu Dubbed in Hindi 2016 Movie Online | Sarrainodu Telugu Movie in Hindi - MX Player",
"description":"Watch Sarrainodu in Hindi Online on MX Player \nSarrainodu is a 2016 Telugu movie which you can now watch in Hindi online. The movie is directed by Boyapati Srinu and is produced by Allu Aravind. The Sarrainodu features an ensemble cast including Allu Arjun, Rakul Preet Singh, Pradeep Rawat, Srikanth, Sai Kumar, Aadhi Pinisetty and Jayaprakash. Drama, romance, action, comedy, Sarrainodu has something for all kinds of audiences and will be enjoyed by the full family. Watch Sarrainodu in Hindi online on MX Player. ",
"releaseDate":"2016-04-21T18:30:00.000Z",
"duration":"7539 seconds",
"actors":[{"name":"Allu Arjun","type":"actor"},{"name":"Rakul Preet Singh","type":"actor"},{"name":"Aadhi Pinisetty","type":"actor"},{"name":"Catherine Tresa","type":"actor"},{"name":"Anjali","type":"actor"},{"name":"Joy Badlani","type":"actor"
@Itz-fork
Itz-fork / script.js
Created July 7, 2021 08:36
Js file of cutr.ml :)
var zp = document.getElementById("r2");
zp.addEventListener('click', Lunc);
var zo = document.getElementById("expa");
zo.addEventListener('click', unc);
function unc(){
var x = document.getElementById("r1");
if (x.style.display === "none") {
x.style.display = "block";
@Itz-fork
Itz-fork / no_tag.py
Created July 29, 2021 04:45
Simple Plugin to Remove Forward tag From a Message. Powered by Pyrogram
# Simple Plugin to Remove Forward tag From a Message. Powered by Pyrogram
# Idea by - https://github.com/lntechnical2
from pyrogram import Client, filters
from pyrogram.types import Message
@Client.on_message(filters.command("rm_tag") & ~filters.edited & filters.private)
async def rmforwdtag(client: Client, message: Message):
replied_msg = message.reply_to_message
rmtag_chat = message.chat.id
@Itz-fork
Itz-fork / nano_install.md
Last active April 8, 2022 05:19
How to install nano in vps/computer

Debian, Ubuntu based

sudo apt install nano

Arch Based Distros

sudo pacman -S nano
@Itz-fork
Itz-fork / how_to_install_ffmpeg.txt
Created August 17, 2021 13:41
How to install ffmpeg in Windows and Linux
======= In Ubuntu =======
apt install ffmpeg
@Itz-fork
Itz-fork / translate_api_example.py
Created December 15, 2021 05:14
Google Translate API example
import requests
def translate_text(text, dest):
req = requests.get(f"https://nexa-apis.herokuapp.com/tr?text={text}&dest_lang={dest}").json()
if req["status"] == "Ok":
return req["data"]
else:
return None
trans = translate_text("Hi!", "es")
@Itz-fork
Itz-fork / random_anime_wallpapers.py
Last active December 15, 2021 19:05
Random Anime Wallpaper API example
import requests
def get_random_anime_wallpaper(q=None):
"""
q - The name (query) you want to search about
"""
if q:
req = requests.get(f"https://nexa-apis.herokuapp.com/anime_wall?query={q}").json()
else:
req = requests.get("https://nexa-apis.herokuapp.com/anime_wall").json()
@Itz-fork
Itz-fork / reddit_search_example.py
Last active December 6, 2023 09:13
Reddit Post Search API Example
import requests
def search_reddit_posts(q, sub_reddit=None):
if sub_reddit:
req = requests.get(f"https://nexa-apis.herokuapp.com/reddit?query={q}&subreddit={sub_reddit}").json()
else:
req = requests.get(f"https://nexa-apis.herokuapp.com/reddit?query={q}").json()
if req["status"] == "Ok":
return req["data"]
else:
@Itz-fork
Itz-fork / get_wallpapers.py
Created December 30, 2021 13:46
Wallpaper API Example
import requests
def search_and_get_wallpapers(q="aesthetic"):
"""
q - The name (query) you want to search about
"""
if q:
req = requests.get(f"https://nexa-apis.herokuapp.com/wallpaper?query={q}").json()
else:
req = requests.get("https://nexa-apis.herokuapp.com/wallpaper").json()