Skip to content

Instantly share code, notes, and snippets.

Avatar
🧩
wfh

Mikhail akkez

🧩
wfh
  • Russia, Saint Petersburg
View GitHub Profile
@akkez
akkez / photosTransfer.js
Last active Jan 2, 2016
Script which helps to transfer all photos from one album to another in VK.
View photosTransfer.js
var user_id = 0;
var from_album = 0;
var to_album = 0;
var photos = API.photos.get({album_id: from_album}).items@.id;
var i = 0;
var result = [];
while (i < photos.length) {
result = result + API.photos.move({
View vk-swastika.txt
&#000000;&#8194;&#8194;&#8194; &#000000;&#000000;&#000000;
&#000000;&#8194;&#8194;&#8194; &#000000;
&#000000;&#000000; &#000000;&#000000;&#000000;
&#8194; &#8194;&#8194; &#8194;&#8194; &#000000;&#8194;&#8194;&#8194; &#000000;
&#000000; &#000000;&#000000;&#8194;&#8194;&#8194; &#000000;
View expectations-and-reality.java
package ic2.core.block.personal;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ic2.core.IC2;
import ic2.core.Platform;
import ic2.core.block.BlockMultiID;
import ic2.core.block.TileEntityBlock;
import ic2.core.init.InternalName;
import ic2.core.item.block.ItemPersonalBlock;
View ItemArmorQuantumSuit.java
IC2.platform.profilerStartSection("QuantumHelmet");
int air = player.func_70086_ai();
if ((ElectricItem.manager.canUse(itemStack, 1000)) && (air < 100)) {
player.func_70050_g(air + 200);
ElectricItem.manager.use(itemStack, 1000, null);
ret = true;
} else if (air <= 0) {
View askfm.im-troller.py
# -*- coding: utf-8 -*-
import string
import time
import re
import random
import vk_api
import requests
View blockinfo_block.js
importPackage(Packages.org.bukkit);
importPackage(Packages.com.sk89q.worldedit);
importPackage(Packages.com.sk89q.worldedit.blocks);
var w = player.getWorld();
var sel = context.getSession().getSelection(w);
var beg = sel.getMinimumPoint();
var x = beg.getBlockX();
var y = beg.getBlockY();
@akkez
akkez / tornado-bot.py
Last active Aug 29, 2015
Telegram bot example
View tornado-bot.py
curl https://api.telegram.org/bot<creds>/setWebhook?url=https://domain.me:8443/
View fuzz.txt
/!.gitignore
/!.htaccess
/!.htpasswd
/%3f/
/%ff/
/.7z
/.access
/.addressbook
/.adm
/.admin
View qiwi-csv-report.js
// заходим на страницу с историей операций и вставляем скрипт в консоль
var content = "Время;Провайдер;Счет;Комментарий;+/-;Сумма;Комиссия\n";
$(".reports .reportsLine").each(function (k, a) {
var row = [];
var date = $(a).find(".DateWithTransaction");
row.push(date.find(".date").text().trim() + " " + date.find(".time").text().trim());
var comment = $(a).find(".ProvWithComment");
View execute-audio-export.js
var a = API.audio.get({"count":15});
var i = 0;
var x = [];
while (true) {
x.push(a.items[i].artist + " - " + a.items[i].title);
i = i + 1;
if (i > a.items.length) {
return x;
}
}
You can’t perform that action at this time.