Skip to content

Instantly share code, notes, and snippets.

View ennjoy's full-sized avatar
🏠
Working from home

Math Solid ennjoy

🏠
Working from home
View GitHub Profile
@ennjoy
ennjoy / vk-friends-spam.js
Created August 4, 2020 07:39
vk-friends-spam.js
const MESSAGE = `😉 Добавлю всех в друзья! 😉
🤝🏻 Приму всех 🤝🏻
✊🏻 Могу сделать подписку на ваш ютуб канал ✊🏻`;
const GROUP_IDS = [10190856, 24261502, 25885216, 33690971, 33764742, 39130136, 46258034, 47484197, 56558556, 59721672, 94946045, 99839307, 14731082];
let i = 0;
let limit = 1000;
const sendWall = (groupId) => (
@ennjoy
ennjoy / spam-group.js
Created June 4, 2020 11:19
spam-group.js
const MESSAGE = `Привет! Не можешь найти с кем сыграть кв или треню? ☺
Тогда пиши нам в группу ВК в личное сообщение: https://vk.com/rbn_so2 и мы обязательно сыграем 😜`;
const GROUP_IDS = [40228238, 169415158];
let i = 0;
let limit = 1000;
const sendWall = (groupId) => (
vk._api(
@ennjoy
ennjoy / api.php
Created May 27, 2020 12:56
api.php
<?php
$data = [
'q' => '', // Что ищешь?
'count' => 1, // Сколько записей выведешь
'access_token' => '',
'v' => '5.101'
];
$json = json_decode(file_get_contents('http://api.vk.com/method/audio.search' . http_build_query($data)));
@ennjoy
ennjoy / audio.php
Created May 27, 2020 12:55
audio.php
<?php
$data = [
'q' => '', // Что ищешь?
'count' => 1, // Сколько записей выведешь
'access_token' => '',
'v' => '5.101'
];
$json = json_decode(file_get_contents('http://api.vk.com/method/audio.search' . http_build_query($data)));
@ennjoy
ennjoy / api.php
Created May 27, 2020 12:46
api.php
<?php
$data = [
'q' => '', // Что ищешь?
'count' => 1, // Сколько записей выведешь
'access_token' => '',
'v' => '5.101'
];
$json = json_decode(file_get_contents('http://api.vk.com/method/audio.get' . http_build_query($data)));
@ennjoy
ennjoy / php.php
Created May 26, 2020 16:54
php.php
<?php
function get_wall(int $owner_id): array
{
$db = DbMysqlProvider::getConnection();
$db->where('owner_id', $owner_id);
$db->where('active', 1);
$db->orderBy('date', 'DESC');
@ennjoy
ennjoy / php.php
Created May 26, 2020 16:32
php.php
<?php
function get_wall(int $owner_id): array
{
$db = DbMysqlProvider::getConnection();
$db->where('owner_id', $owner_id);
$db->where('active', 1);
$db->orderBy('date', 'DESC');
@ennjoy
ennjoy / wall.php
Created May 26, 2020 16:26
wall.php
function get_wall(int $owner_id): array
{
$db = DbMysqlProvider::getConnection();
$db->where('owner_id', $owner_id);
$db->where('active', 1);
$db->orderBy('date', 'DESC');
$wall = $db->get('wall');
@ennjoy
ennjoy / wall.php
Created May 25, 2020 11:22
wall.php
function get_wall(int $owner_id): array
{
$db = DbMysqlProvider::getConnection();
$db->where('owner_id', $owner_id);
$db->where('active', 1);
$db->orderBy('date', 'DESC');
$raw_wall = $db->get('wall');
@ennjoy
ennjoy / json.json
Created May 25, 2020 10:08
json.json
{
"response": {
"count": 6,
"items": [
{
"id": 7,
"owner_id": 1,
"text": "",
"date": 1590245162,
"likes": {