Skip to content

Instantly share code, notes, and snippets.

View yusufusta's full-sized avatar
💪
Hard working

Yusuf Usta yusufusta

💪
Hard working
View GitHub Profile
@yusufusta
yusufusta / azure_scraper.js
Last active February 2, 2022 14:40
azure tts
var result = [];
var sounds = Array.from(
document.querySelectorAll(
"#main > div.content > div:nth-child(18) > table > tbody > tr"
)
);
sounds.map((sound) => {
result.push({
@yusufusta
yusufusta / kargolaApi.php
Last active September 9, 2021 14:28
kargola.com Better API class
<?php
class Kargola
{
/**
* @var string
*/
public $Kargola = "http://185.241.100.221:9999/restapi/client"; # Default Kargola
/**
* @var string
@yusufusta
yusufusta / php74.sh
Last active December 26, 2021 19:50
php 7.4 installer ubuntu
sudo apt update
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties software-properties-common
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.4 php7.4-dev php7.4-xml php7.4-zip php7.4-gmp php7.4-cli php7.4-mbstring php7.4-json php7.4-mysql git -y
@yusufusta
yusufusta / brew_install_ffmpeg_with_all_options.sh
Last active June 12, 2021 00:43
macOS Brew install FFmpeg with all options (libffk_acc)
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')
from telethon.sync import TelegramClient, events
from telethon.tl.functions.messages import GetStickerSetRequest
from telethon.tl.types import InputStickerSetID
with TelegramClient('name', 0, "api hash") as client:
sent = {1397428129: 0, 1125780346: 0}
@client.on(events.NewMessage(from_users=[1397428129, 1125780346]))
async def handler(event):
if sent[event.sender_id] >= 10:
@yusufusta
yusufusta / instagram_unfollowers.py
Created April 18, 2021 21:26
find Instagram Unfollowers
# pip install instagrapi
from instagrapi import Client
IG_USERNAME = ''
IG_PASSWORD = ''
cl = Client()
# cl.load_settings("user.json")
@yusufusta
yusufusta / parse_pbzx.py
Created April 16, 2021 23:09 — forked from pudquick/parse_pbzx.py
Pure python reimplementation of .cpio.xz content extraction from pbzx file payload for OS X packages
# Pure python reimplementation of .cpio.xz content extraction from pbzx file payload originally here:
# http://www.tonymacx86.com/general-help/135458-pbzx-stream-parser.html
#
# Cleaned up C version (as the basis for my code) here, thanks to Pepijn Bruienne / @bruienne
# https://gist.github.com/bruienne/029494bbcfb358098b41
# Example usage:
# parse_pbzx('PayloadJava', 'PayloadJava.cpio.xz')
# Updated for speeeeeeeeeeeeed
/* Copyright (C) 2020 Yusuf Usta.
Licensed under the GPL-3.0 License;
you may not use this file except in compliance with the License.
WhatsAsena - Yusuf Usta
*/
const Asena = require('../events');
const {MessageType} = require('@adiwajshing/baileys');
const fs = require('fs');
const ffmpeg = require('fluent-ffmpeg');
apif
@yusufusta
yusufusta / Spotify_Unfollowers.py
Last active July 12, 2023 11:51
find Spotify UnFollowers.
import spotify_token as st
from requests import get, delete
SETTINGS = {
"UNFOLLOW": True,
"ARTIST_UNFOLLOW": True
}
account_id = 'ar5xr05io7p2lrvlzz8cgpz7f'
data = st.start_session("sp_dc","sp_key") # Login spotify with Chrome then open Cookie manager and find 'sp_dc' and 'sp_key'