- Необходимо скачать с официального сайта последнюю версию питона, сделать это можно здесь 1.1. Обращаю внимание, что скачивать нужно именно с сайта, а не с Microsoft Store. В случае, если питон установлен из Microsoft Store ничего работать не будет
- Во время установки на первом экране необходимо нажать галочку "Add Python to PATH", это очень важно!
- После успешной установки откройте консоль (сделать это можно нажав
Win+X
, выбрав в менюТерминал Windows
) - Выполните команду
pip install toncli-win
- Скачайте скомпилированные бинарные файлы TON (сделать это можно здесь, обращаю внимание, что для скачивание необходимо авторизоваться на GitHub) ![image](https://user-images.githubusercontent.com/19264196/160259203-07fd0e2
This file contains 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
kubectl get po -A --all-namespaces -o json | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | "kubectl delete po \(.metadata.name) -n \(.metadata.namespace)"' | xargs -n 1 bash -c |
This file contains 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 requests | |
from time import sleep | |
def f(x): | |
return """{ | |
transactions( | |
address_friendly: "Ef8gQpp7pKD9GzBrcr3ju9faPjEWHPerhZ4tFpSiDoDUINxn", | |
order_by: "lt" | |
lt_gt: """ + '"' + str(x) + '"' + """ | |
page_size: 150 |
This file contains 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
source ~/projects/antigen.zsh | |
# Load the oh-my-zsh's library. antigen use oh-my-zsh | |
# Bundles from the default repo (robbyrussell's oh-my-zsh). | |
antigen bundle git # Lots of git aliases | |
####### antigen bundle Tarrasch/zsh-autoenv # Suppoert for folder specific | |
#envirronment | |
antigen bundle pip # Python package manager autocomplete helper |
This file contains 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
{"body": {"type": "sign-raw-payload", "params": {"messages": [{"amount": "200000000", "address": "0:4678FC05E6A22CAA3AD55CD446CEA60A3352146717D7C866CE99A8EE8F747A7A", "stateInit": "te6cckECDQEAAk8AAgE0AQIBFP8A9KQT9LzyyAsDAdOAHWXV8v1GUyaOAk5BBDDpDrFRBulaV3rnP465NWdH5GewAnvQeUr0R71RKV2zJmLko4lBPlmiWq71htAmdUW4bxb2ADg+PWAAeBEceC4y4SKgNzApowI3UBKOWK2Mv5sxyl25qNj/h2gEBAIBIAUGAE9QFH01cAgA4Pj1gAHgRHHguMuEioDcwKaMCN1ASjlitjL+bMcpduYQAgFIBwgABPIwAgLMCQoAL6A4WdqJofSB9IH0gfQBqGGh9AH0gfQAYQH32A6GmBgLjYSS+CcH0gGHaiaH0gfSB9IH0AahgRa6ThAVnHHZkbGymQ44LJL4NwKJFjgvlw+gFpj4DBCAKJxsjdeXD66Z+Y/SAYIBpkKALniygB54sA54sA/QFmZPaqcBNjgEybCBsimYI4eAVwA2mP6Z+YEOAAyS+FcBDAsB97RJBCB3NZQBQKRhfeXDhAeh9AH0gfQAYOEAIZGWCqATniyi50JDQqFrQilAK/QEK5bVkuP2AOEAIZGWCrGeLKAP9AQtltWS4/YA4QAhkZYKoAueLAP0BCeW1ZLj9gDgQQQgv5h6KEMAMZGWCqALnixF9AQpltQnlj4pln8MAMjAApoxEEcQNkVAEvAK4DI2NwTAA45HBIIQO5rKAL7y4clTEscFWccFsfLhynAgghBfzD0UIYAQyMsFUAbPFiL6AhXLahTLHxTLPyHPFgHPFsoAIfoCygDJgQCg+wDgXwaED/LwACYizxZYzxbKACH6AsoAyYEAoPsAcEsWiQ=="}, {"amount": "100000000", "ad |
This file contains 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
# Author: futpib <[email protected]> | |
_gitname=ton | |
pkgname=ton-git | |
pkgver=rr174.db3619e | |
pkgrel=1 | |
pkgdesc='The next gen network to unite all blockchains and the existing Internet' | |
arch=('any') | |
url='https://github.com/ton-blockchain/ton' | |
license=('GPL') |
This file contains 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
// Get anycast depth / rewrite_pfx or return 0 | |
// ( S -- x y S ) | |
{ | |
// maybe | |
1 u@+ swap 0 > | |
{ | |
// anycast_info$_ depth:(#<= 30) { depth >= 1 } | |
// rewrite_pfx:(bits depth) = Anycast; | |
30 u@+ swap // get depth |
This file contains 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
#!/usr/bin/fift -s | |
"TonUtil.fif" include | |
"Asm.fif" include | |
// If you dont know about stack-base languages | |
// Please read something before read comments and trying to understand what is going on here :) | |
5 :$1..n // parse arguments | |
$1 parse-workchain-id =: wc // set workchain id from command line argument | |
$2 parse-int =: subwallet-id // set subwallet id |
This file contains 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 | |
# Fixes the puppeteer not being able to spawn an instance on their AWS linux instance. | |
# Install ATK from CentOS 7 | |
sudo yum install cups-libs dbus-glib libXrandr libXcursor libXinerama cairo cairo-gobject pango | |
sudo rpm -ivh --nodeps http://mirror.centos.org/centos/7/os/x86_64/Packages/atk-2.28.1-2.el7.x86_64.rpm | |
sudo rpm -ivh --nodeps http://mirror.centos.org/centos/7/os/x86_64/Packages/at-spi2-atk-2.26.2-1.el7.x86_64.rpm | |
sudo rpm -ivh --nodeps http://mirror.centos.org/centos/7/os/x86_64/Packages/at-spi2-core-2.28.0-1.el7.x86_64.rpm |
This file contains 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
from flask import Flask, request, jsonify | |
def cors(f): | |
def fix_cors(*args, **kwargs): | |
if request.method == 'OPTIONS': | |
response = jsonify('') | |
response.headers.add('Access-Control-Allow-Origin',request.headers['Origin'] if 'Origin' in request.headers else '*') | |
response.headers.add('Access-Control-Allow-Headers', request.headers['Access-Control-Request-Headers'] if 'Access-Control-Request-Headers' in request.headers else '') | |
response.headers.add('Access-Control-Allow-Methods', 'POST, GET, OPTIONS') | |
response.headers.add('Access-Control-Max-Age', '86400') |
NewerOlder