Skip to content

Instantly share code, notes, and snippets.

View y4kupkaya's full-sized avatar
🤒
Out sick

Aylak y4kupkaya

🤒
Out sick
View GitHub Profile
@y4kupkaya
y4kupkaya / node.20
Created December 6, 2023 22:29
node_20.x
#!/bin/bash
# Discussion, issues and change requests at:
# https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 20.x repo onto a
# Debian or Ubuntu system.
#
# Run as root or insert `sudo -E` before `bash`:
#
@y4kupkaya
y4kupkaya / BasicBotsSetup.sh
Created November 15, 2023 11:49
BasicBotsSetup
pprint() {
cred='\033[0;31m'
cgreen='\033[0;32m'
cyellow='\033[0;33m'
cblue='\033[0;34m'
cpurple='\033[0;35m'
eval "export color='$cpurple'"
[ ! -z $2 ] && eval "export color=\"\$$2\""
printf "$color $1"
}
@y4kupkaya
y4kupkaya / BasicBotsSetup.py
Created November 15, 2023 11:22
BasicBotsSetup For Ubuntu 22.04
import os
import subprocess
import sys
from pythonansi import colors
color = colors()
def update():
# eğer "can be upgraded" yazısı varsa güncelleme yapılır.
@y4kupkaya
y4kupkaya / example.php
Created September 20, 2023 20:16
Example APU usage for medyamiz.com
<?php
class Api
{
/** API URL */
public $api_url = 'https://medyamiz.com/api/v2';
/** Your API key */
public $api_key = '';
/** Add order */
@y4kupkaya
y4kupkaya / example.js
Created September 20, 2023 17:26
Example API usage for medyamiz.com
class Api {
constructor(apiKey) {
this.api_url = 'https://medyamiz.com/api/v2';
this.api_key = apiKey;
}
// Sipariş ekle
async order(data) {
const post = { key: this.api_key, action: 'add', ...data };
return await this.connect(post);
@y4kupkaya
y4kupkaya / example.py
Last active September 19, 2023 19:07
Example API Usage for medyamiz.com
import requests
import json
class Api:
def __init__(self):
# API URL
self.api_url = 'https://medyamiz.com/api/v2'
# API Anahtarınız (Your API Key)
self.api_key = ''