Skip to content

Instantly share code, notes, and snippets.

View ilyar's full-sized avatar
🖖
this is the way

ilyar

🖖
this is the way
View GitHub Profile
@ilyar
ilyar / The_most_effective_attacks_against_web_applications.md
Last active April 30, 2023 13:23
Самые эффективные атаки на веб-приложения origin https://hackmd.io/7QGe2cu4QLeNU1Z87GQFMw?view

Самые эффективные атаки на веб-приложения

Ожидания от workshop'a

Общаемся 2 часа с перерывом на 15 минут
Моя задача рассказать об интересных атаках и объяснить как научиться их проводить
Первый час будет рассказ об атаках на веб приложения
Второй час будет демонстрацией практического применения атак
@ilyar
ilyar / blockly.xml
Created February 9, 2021 14:32
New Project
<xml xmlns="https://developers.google.com/blockly/xml"><block type="BaseContractType" id="root_contract" deletable="false" x="13" y="187"><statement name="BaseContractType"><block type="WhenContractType" id="T/{v:[*Lu.4o]KAuJ-n,"><field name="timeout">10</field><statement name="case"><block type="DepositActionType" id="f9G#}l.7*M:Ay0:|q`r("><value name="from_party"><block type="RolePartyType" id="JcZQg_vcs39ngyV5I#K9"><field name="role">alice</field></block></value><value name="value"><block type="ConstantValueType" id="S]$dNpwwcT2S^$MK.D9D"><field name="constant">1000000000</field></block></value><value name="token"><block type="AdaTokenType" id="j8!j{M/Q97Oh+,wzAt7-"/></value><value name="party"><block type="RolePartyType" id="NiQ_hc^%ill)Cn?NSUc:"><field name="role">alice</field></block></value><statement name="contract"><block type="WhenContractType" id=")U~T4(jdZBt|K,Q|BLJ_"><field name="timeout">20</field><statement name="case"><block type="DepositActionType" id="_AqAGm?]o+4V|k+`e~UA"><value name="from_
@ilyar
ilyar / Playground.hs
Created February 9, 2021 17:56
Plutus Playground Smart Contract
import qualified Data.Text as T
import Language.Plutus.Contract hiding (when)
import Language.PlutusTx.Prelude
import Playground.Contract
-- | A 'Contract' that logs a message.
hello :: Contract BlockchainActions T.Text ()
hello = logInfo @String "Hello, world"
endpoints :: Contract BlockchainActions T.Text ()

Brew Formula note

A

class TonCompiler < Formula
  desc "Clang compiler for Free TON Virtual Machine"
  homepage "https://github.com/tonlabs/ton-compiler/"
  url "https://github.com/tonlabs/ton-compiler.git",
@ilyar
ilyar / step-1.md
Last active June 24, 2024 21:01
Игра на чистом JavaScript — Создание Canvas и рисование на нём — шаг 1 из 10

Игра на чистом JavaScript

Создание Canvas и рисование на нём — шаг 1 из 10

Это 1й шаг из 10. Прежде чем мы сможем начать писать функциональные возможности игры, нам необходимо создать базовую структуру для рендеринга игры внутри. Это можно сделать с помощью HTML и элемента <canvas>.

HTML игры

Структура HTML документа довольно проста, так как игра будет полностью визуализироваться в [``](https://developer.mozilla.org/ru/docs/Web/HTML/Element/canvas 'HTML Элемент может быть использо

@ilyar
ilyar / ghc-run.sh
Last active March 2, 2021 14:08
Compiling and running in Haskell this invention of the bicycle there is already a runhaskell for this
#!/usr/bin/env bash
# Usage:
# ghc-run [ghc command-line-options-and-input-files] [-- programm-args]
# Sample:
# ghc-run main.hs
# ghc-run main.hs -- foo bar
# echo "foo bar" | ghc-run main.hs
@ilyar
ilyar / png2svg.sh
Last active March 9, 2021 11:09
Convert png to svg
#!/usr/bin/env bash
# Install
# wget https://git.io/JqtZd -O ~/.local/bin/png2svg && chmod +x ~/.local/bin/png2svg
if [ "$1" == "" ]; then
echo "Usage: $0 png file"
exit 0;
fi
@ilyar
ilyar / minting-native-tokens-on-cardano.sh
Created March 26, 2021 12:54 — forked from ElGatoLoco/minting-native-tokens-on-cardano.sh
Mint native tokens on Cardano testnet using the node and cli that come with Daedalus
# This guide assumes that you're running MacOS and already have a fully synced Daedalus testnet wallet
# For mainnet some minor tweaks are required
# The line below assumes the default location for the testnet wallet at the time of writing this guide
# If your node socket is located somewhere else, you should be able to finding by inspecting the running processes on your machine
export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Testnet/cardano-node.socket
# Make testnet id available as environment variable; not needed for the mainnet
# This one is active at the time of writing this guide
export TESTNET_ID=1097911063

fabric-storage

cd fabric-storage
bash scripts/bootstrap.sh
cd network
../bin/cryptogen generate --config=./crypto-config.yaml
export FABRIC_CFG_PATH=$PWD
export CHANNEL_NAME=testchannel
../bin/configtxgen -profile TwoOrgsOrdererGenesis -channelID byfn-sys-channel -outputBlock ./channel-artifacts/genesis.block
# source bash_aliases_for_cardano.sh
alias cardano-cli="docker run --rm -it -u $(id -u):$(id -g) -v "$(pwd)":/data -w /data --entrypoint cardano-cli inputoutput/cardano-node"
#source <(cardano-cli --bash-completion-script cardano-cli)
_cardano-cli()
{
local CMDLINE
local IFS=$'\r\n'
CMDLINE=(--bash-completion-index $COMP_CWORD)
for arg in ${COMP_WORDS[@]}; do