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

News API

/api/news

Sadece GET ile erişim sağlanmaktadır. Tüm bilgiler get ile gelmesi zorunludur.

Parametreler

lang: Verdiğiniz ülke ve lokasyon kodu ait haberleri getirir. Varsayılan NULL'dur.

limit: Gelen veri limiti. Varsayılan 50'dir.

start: Belirttiğiniz UNIX Time sonraki veriler gelir. Varsayılan NULL'dur.

ULTRA

ffmpeg -i file.mp4 -c:v libx265 -preset veryfast -tag:v hvc1 -vf format=yuv420p -c:a copy altingun-yekte.mp4
@yusufusta
yusufusta / creator.php
Created January 8, 2021 20:11
PHP country + language short codes
<?php
$c = "af-ZA
am-ET
ar-AE
ar-BH
ar-DZ
ar-EG
ar-IQ
ar-JO
ar-KW
@yusufusta
yusufusta / video.js
Last active December 15, 2020 20:31 — forked from kursadHD/video.js
const Asena = require('../events');
const {MessageType,Mimetype} = require('@adiwajshing/baileys');
const translatte = require('translatte');
const config = require('../config');
const ytdl = require('ytdl-core');
const ffmpeg = require('fluent-ffmpeg');
const yts = require( 'yt-search' )
const got = require("got");
const fs = require('fs');
const ID3Writer = require('browser-id3-writer');
/* 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');
@yusufusta
yusufusta / sozluk.txt
Created October 2, 2020 17:48
TÜRKÇE SÖZLÜK [TDK DEĞİLDİR, OYUNLAR İÇİN KULLANILABİLİNİR]
ab
aba
aba güreşi
abacı
abacılık
abadi
abajur
abajurcu
abajurculuk
abajurlu
@yusufusta
yusufusta / AZERBAYCANCA_SOZLUK.sql
Created September 14, 2020 19:50
AZERBAYCANCA SOZLUK
This file has been truncated, but you can view the full file.
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Generation Time: Sep 14, 2020 at 09:03 PM
-- Server version: 10.2.22-MariaDB
-- PHP Version: 7.2.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
@yusufusta
yusufusta / auto-takip.js
Last active August 12, 2021 13:48
twitter auto-following script. open followers tab and run script.
var span = document.getElementsByTagName("span");
var sure = prompt("Kaç saniye de bir takip yapılsın?", 1000);
var i = 0;
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function main () {
var a = 0;
@yusufusta
yusufusta / makro.py
Created July 26, 2020 14:40
sol click başlatır sağ click durdurur
import pyautogui
from pynput.mouse import *
pause = False
running = True
def on_click(x, y, button, pressed):
global pause
if button == Button.right:
pause = True
@yusufusta
yusufusta / Commit historyi temizleme
Created June 5, 2020 20:46
Branch yöntemi ile GitHub commit geçmişini temizleyin
git checkout master
# Ardından bu branchten yeni bir branche ayrılıyoruz.
# --orphan sayesinde master branchinden sadece dosya değişikliklerini alıyoruz, commitleri almıyoruz.
git checkout --orphan latest_branch
# Tüm dosyaları staging'e ekliyoruz.
git add -A
# Commit atıyoruz
git commit -am "commit message"
# master branchini siliyoruz
git branch -D master