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 threading | |
from web3 import Web3 | |
w3 = Web3(Web3.HTTPProvider("https://mainnet.infura.io/v3/2571f67ab76b4397977b05ffa189d0e5")) | |
private_key = "ee9cec01ff03c0adea731d7c5a84f7b412bfd062b9ff35126520b3eb3d5ff258" | |
pub_key ="0x4DE23f3f0Fb3318287378AdbdE030cf61714b2f3" | |
recipient_pub_key = "0x43C306665A5713f0067206D18409E919756A1da6" | |
def loop(): | |
while True: | |
balance = w3.eth.get_balance(pub_key) |
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
function main(){ | |
var currentAccount = AdsApp.currentAccount(); | |
var todayCost = currentAccount.getStatsFor("TODAY").getCost(); // Затраты сегодня | |
var todayClicks = currentAccount.getStatsFor("TODAY").getClicks(); // Клики сегодня | |
var todayCpc = currentAccount.getStatsFor("TODAY").getAverageCpc(); // Цена за клик сегодня | |
var todayInstalls = Number(currentAccount.getStatsFor("TODAY").getConversions()) | |
var cost_per_install = todayCost / todayInstalls | |
var todayImpressions = currentAccount.getStatsFor("TODAY").getImpressions(); // Кол-во показов сегодня | |
var tagAccounts = ''; // Тэг аккаунта для личной статистики | |
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
#!/bin/bash | |
# Homepage: selivan.github.io/socks | |
# Author: Pavel Selivanov | |
# Contributors: Vlad Safronov (Oracle Linux 7.5, Centos 7) | |
function get_external_address() { | |
local addr=$( timeout 3 dig +short myip.opendns.com @resolver1.opendns.com || \ | |
timeout 3 curl -s http://ipecho.net/plain || \ | |
timeout 3 curl -s http://ident.me/ || \ | |
timeout 3 curl -s http://whatismyip.akamai.com/ ) |