Open Telegram and search for @BotFather user and message them the following:
You
/newbot
BotFather
| import React, { useEffect, useRef } from 'react'; | |
| /** | |
| * Use setInterval with Hooks in a declarative way. | |
| * | |
| * @see https://stackoverflow.com/a/59274004/3723993 | |
| * @see https://overreacted.io/making-setinterval-declarative-with-react-hooks/ | |
| */ | |
| export function useInterval( | |
| callback: React.EffectCallback, |
| ## | |
| ## private functions | |
| ## | |
| # | |
| # If necessary, download a file and unzip it to the specified location | |
| # | |
| function downloadAndUnzipIfRequired | |
| { | |
| Param( |
| $item = Get-Item master:/content/home | |
| $newTemplate = [Sitecore.Configuration.Factory]::GetDatabase("master").Templates["Sample/Sample Item"]; | |
| $item.ChangeTemplate($newTemplate) |
| <!-- | |
| A set of performance optimizations for development that vastly increase application startup time. | |
| Should not be used in production, as they largely disable forensic diagnostics that you'd want there over fast startup time after a compile. | |
| --> | |
| <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
| <sitecore> | |
| <hooks> | |
| <hook type="Sitecore.Diagnostics.HealthMonitorHook, Sitecore.Kernel"> | |
| <patch:delete /> |
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
| # | |
| # Powershell script for adding/removing/showing entries to the hosts file. | |
| # | |
| # Known limitations: | |
| # - does not handle entries with comments afterwards ("<ip> <host> # comment") | |
| # | |
| $file = "C:\Windows\System32\drivers\etc\hosts" | |
| function add-host([string]$filename, [string]$ip, [string]$hostname) { |