Skip to content

Instantly share code, notes, and snippets.

@ServOKio
ServOKio / pro.cpp
Created January 28, 2024 09:22
ESP Weather A-LED
#define LED_PIN 0
#define LED_NUM 8
#include "FastLED.h"
#include <ESP8266TrueRandom.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
const char* ssid = "WiFi-sssd";
const char* password = "-";
@ServOKio
ServOKio / proxy.js
Created November 14, 2022 18:42
proxy.js
const
express = require('express'),
axios = require('axios'),
sizeOf = require('image-size'),
os = require("os");
var app = express();
function formatBytes(bytes, decimals = 2) {
if (!+bytes) return '0 Bytes'
const k = 1024
@ServOKio
ServOKio / proxy.php
Created June 16, 2022 21:47
Just a proxy
<?php
header("Access-Control-Allow-Origin: *");
include_once('getid3/getid3.php');
$baseURL = "http://p91878l7.beget.tech/api.php"; //For example http://mysite/proxy.php
$request = $_GET["reg"];
if ($request == "get_info") {
$url = $_GET["url"];
$ch = curl_init();
$headers = array(
'cache-control: max-age=0',
@ServOKio
ServOKio / proxy.php
Created March 21, 2022 02:06
Our .php proxy
<?php
header("Access-Control-Allow-Origin: *");
$baseURL = "http://site.net/api.php"; //For example http://mysite/proxy.php
$request = $_GET["reg"];
if ($request == "get_info") {
$url = $_GET["url"];
$ch = curl_init();
$headers = array(
'cache-control: max-age=0',
'upgrade-insecure-requests: 1',
@ServOKio
ServOKio / fix.cmd
Last active November 24, 2021 15:23
Для аниматоров. Исправление проигрывания видео в дискорде
@ECHO OFF
chcp 65001
cls
for %%f in (./input/*) do (
IF EXIST output\%%~nf (
echo output\%%~nf exist
) ELSE (
echo %%f
mkdir output\%%~nf
ffmpeg.exe -i ./input/%%f -b:a 192K -loglevel quiet -vn ./output/music_from_%%~nf_.mp3
@ServOKio
ServOKio / meta.java
Created November 24, 2021 15:16
Отображение времени и кол-во игроков пока вы играете
Bukkit.getScheduler().runTaskTimerAsynchronously(main, () -> {
Calendar cal = Calendar.getInstance(); // creates calendar
cal.setTime(new Date()); // sets calendar time/date
cal.add(Calendar.HOUR_OF_DAY, 2); // adds one hour
String text = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(cal.getTime())+"|"+Bukkit.getOnlinePlayers().size();
for(Player player : Bukkit.getOnlinePlayers()) nms.sendActionBar(player, "{\"text\": \""+text+"\",\"color\":\"white\"}");
}, 0, 20);
@ServOKio
ServOKio / unitpay.java
Created November 24, 2021 15:14
Отслеживание донатов UnitPay
// +------------------+
// | UnitPay DONATE |
// +------------------+
if (!Bukkit.getPluginManager().isPluginEnabled("HolographicDisplays")) {
String email = "твой email";
String key = "Ключ";
int xo4y = 700; //Цель
Hologram hologram = HologramsAPI.createHologram(main, new Location(Bukkit.getWorld("world"), 0 , 70, 70,0,0));
@ServOKio
ServOKio / qiwi.java
Last active November 25, 2021 19:43
Отслеживание донатов QIWI в майнкрафте c помощью HolographicDisplays
// +---------------+
// | QIWI DONATE |
// +---------------+
if (!Bukkit.getPluginManager().isPluginEnabled("HolographicDisplays")) {
String phone = "твой номер мобилы QIWI";
String token = "Токен";
int xo4y = 700; //Цель
Hologram hologram = HologramsAPI.createHologram(main, new Location(Bukkit.getWorld("world"), 0 , 70, 70,0,0));