Skip to content

Instantly share code, notes, and snippets.

View ingria's full-sized avatar
:shipit:
ingria

ingria ingria

:shipit:
ingria
View GitHub Profile
@ingria
ingria / 1.html
Created June 22, 2023 21:23 — forked from refoerofekr/.js
testGithubGist
<script type="text/javascript">
let timer;
const timerDisplay = document.getElementById('seconds');
document.getElementById('timerButton').addEventListener('click', startTimer);
function startTimer() {
let seconds = 1000;
let bar_width = 85;
timerDisplay.textContent = seconds;
@ingria
ingria / hellobot.php
Last active December 7, 2021 11:35
Simple PHP Telegram Bot
<?php
// @see https://core.telegram.org/bots/samples/hellobot
define('BOT_TOKEN', '12345678:replace-me-with-real-token');
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');
function apiRequestWebhook($method, $parameters) {
if (!is_string($method)) {
error_log("Method name must be a string\n");
return false;
# /etc/danted.conf
logoutput: syslog /var/log/sockd.log
internal: ens3 port = 1080
external: ens3
clientmethod: none
socksmethod: none
# Если нужна авторизация, заменить на: