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
// @ts-nocheck | |
'use client' | |
const chainIdHex = '0x108d'; // 4237 in hex | |
const networkData = { | |
chainId: chainIdHex, | |
chainName: 'Mintlayer Testnet ZKThunder', | |
nativeCurrency: { | |
name: 'Mintlayer', |
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
$ sudo vim /etc/systemd/system/mltnode.service | |
Insert | |
[Unit] | |
Description=ML Node Daemon | |
After=network.target | |
[Service] | |
Type=Simple | |
User=safeuser |
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 | |
TIME="10" | |
URL="https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" | |
TEXT="Deploy status: $1%0A%0AProject:+$CI_PROJECT_NAME%0AURL:+$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/%0ABranch:+$CI_COMMIT_REF_SLUG%0ALink:+$DOCS_LINK" | |
curl -s --max-time $TIME -d "chat_id=$TELEGRAM_USER_ID&disable_web_page_preview=1&text=$TEXT" $URL > /dev/null |
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 React, { useState, useCallback } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { useTranslation } from 'server/i18n'; | |
import Subscription from 'store/models/Subscription'; | |
import cx from 'classnames'; | |
import css from './style.css'; | |
/** | |
* AutoRenewSwitch | |
* @param subscription |
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
// имитация случайных нажатий на кнопки | |
var classes = ['.increment', '.decrement']; | |
var steps = 0; | |
var max_steps = 500; // сколько щелкать | |
var completed = false; | |
while (steps < max_steps) { |
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
javascript:(function(){var%20a,w=document.createTreeWalker(document,NodeFilter.SHOW_TEXT);while(a=w.nextNode()){if(a.textContent.trim().length)a.textContent='Одиннадцатиклассница%20';}})() |