Skip to content

Instantly share code, notes, and snippets.

View olegabr's full-sized avatar
💭
vtreke.ru

Oleg Abrosimov olegabr

💭
vtreke.ru
View GitHub Profile
@olegabr
olegabr / vk_clean.js
Last active July 27, 2016 20:27
Удалить все свои записи вконтакте
setInterval(function(){
var a = document.getElementsByClassName('post_delete_button');
console.log("Clear " + a.length + " records.");
for (var i=0; i < a.length; i++) a[i].click();
}, 1000);
@olegabr
olegabr / README.md
Created December 9, 2016 12:13
graylog2 docker-compose startup scripts and test commands

The idea is to collect logs from docker containers in the graylog2 server. It can be done only by using GELF UDP Input type. And I don't want to provide an access to the graylog2 web interface for security reasons. That is why I'm using only local interface binding for the REST API port 9000.

File udp-input-graylog.json is from here: http://stackoverflow.com/a/40636190/4256005 It is used to create the GELF UDP input on the server startup.

[{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name"