This file contains hidden or 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
server { | |
listen 443 ssl; | |
server_name domain.com; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; | |
# First Entry | |
location /VAR1/ { | |
proxy_pass http://127.0.0.1:VAR2/; |
This file contains hidden or 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
api_id = 111337 # my.telegram.org | |
api_hash = 'blblbla12317823123789127809' | |
phone_number = '+79991488228' |
This file contains hidden or 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
void binary_form(int TYPE) { | |
int z; | |
for (char j = sizeof(int) * 8 - 1; j >= 0; j--) { | |
z = ((int)1) << j; | |
if ((TYPE & z) != 0) | |
std::cout << 1; | |
else | |
std::cout << 0; | |
} | |
} |
This file contains hidden or 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
def shut_dow(s): | |
if s == "yes": | |
return "Shutting down" | |
elif s == "no": | |
return "Shutdown aborted" | |
return "Sorry" |
This file contains hidden or 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
#include <string> | |
#include <vector> | |
#include <iostream> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <termios.h> | |
#include <unistd.h> | |
#include <memory.h> | |
// For blocked reading pressed symbol |
This file contains hidden or 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 telethon import TelegramClient | |
api_id = 12345 | |
api_hash = '0123456789abcdef0123456789abcdef' | |
phone = '+34600000000' | |
# First Connect | |
client = TelegramClient('user_{}'.format(phone[1:]), api_id, api_hash) | |
client.connect() |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import json | |
import logging | |
import requests | |
import flask | |
# https://play.google.com/store/apps/details?id=app.greyshirts.sslcapture for Token and User-Agent | |
vkapi_url = 'https://api.vk.com/method/audio.getById' | |
vk_token = 'qwertyuiopasdfghjklzxcvbnm1234567890' |
This file contains hidden or 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 telebot | |
import flask | |
from credentials import token, host, port, DEBUG | |
API_TOKEN = token | |
WEBHOOK_HOST = host | |
WEBHOOK_PORT = port | |
WEBHOOK_URL_BASE = "https://%s" % (WEBHOOK_HOST) |
This file contains hidden or 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
#include <sys/ioctl.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
void DeleteLine(int delay=10000){ | |
usleep(delay); | |
std::cout << "\033[A\033[2K"; | |
} | |