Skip to content

Instantly share code, notes, and snippets.

@bigdragon1977
bigdragon1977 / ovpn-server-with-certs.md
Created April 24, 2025 17:03 — forked from timefcuk/ovpn-server-with-certs.md
MikroTik (RouterOS) script for setup OpenVPN server and generate certificates
'float_time'
'many2manyattendee'
'many2many_tags'
'one2many'
'email'
'mail_followers'
'mail_thread'
'many2many_tags_avatar'
'pad'
'statinfo'

How to get Telegram Bot Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFather
  2. Click Start
  3. Click Menu -> /newbot or type /newbot and hit Send
  4. Follow the instruction until we get message like so
    Done! Congratulations on your new bot. You will find it at t.me/new_bot.
    
/*
* See documentation at https://nRF24.github.io/RF24
* See License information at root directory of this library
* Author: Brendan Doherty (2bndy5), Tom Clement (tjclement)
*/
/**
* A modified example from the NRF24 library, that cycles through brightness levels of Neewer NL660-2.4 light panels.
*/
#include <SPI.h>
@bigdragon1977
bigdragon1977 / inverter-monitor.yaml
Created December 11, 2023 19:37 — forked from vladyspavlov/inverter-monitor.yaml
Must inverter ESPHome configuration for ESP32
substitutions:
inverter_id: inverter
updates: 5s
api_key: xxx
ota_password: xxx
esphome:
name: inverter-monitor
comment: "Inverter monitor"
@bigdragon1977
bigdragon1977 / index.html
Last active February 23, 2023 12:29
Index KATOK
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>КЗК</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css" integrity="sha384-QYIZto+st3yW+o8+5OHfT6S482Zsvz2WfOzpFSXMF9zqeLcFV0/wlZpMtyFcZALm" crossorigin="anonymous">
<link rel="stylesheet" href="<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">">
<link rel="stylesheet" href="css/lib/bulma-carousel.min.css">
<link rel="stylesheet" href="css/lib/bulma-divider.min.css">
@bigdragon1977
bigdragon1977 / compile.sh
Created June 20, 2022 12:37 — forked from alealexpro100/compile.sh
Build Rustdesk-Server under Alpine Linux + service to run it (based on samba service file).
#!/bin/bash
set -e
declare packages="git alpine-sdk cargo"
declare project_name="rustdesk-server"
echo "Installing build packages..."
sudo apk add $packages
@bigdragon1977
bigdragon1977 / fpv_hw_beginners.md
Created May 22, 2022 17:40
FPV квадрокоптеры: обзор оборудования для новичков
@bigdragon1977
bigdragon1977 / Hierarchy_widget_configuration
Created September 24, 2021 14:24 — forked from AlexDoanTB/Hierarchy_widget_configuration
ThingsBoard vidoe tutorials: Examples of configuration of Hierarchy widget
//Configuration code for HTML widget//
<div class='card'>
<div class='content'>
<div class='column'>
<h1>Current entity</h1>
<div class='value'>
${entityName}
</div>
</div>
fun addDecoration() {
recyclerView.addItemDecoration(
StickyHeaderItemDecoration(
epoxyController,
listOf(
TitleBindingModel_().id("title 3").id(), // steal the conversion from the ID constructors to its long value
TitleBindingModel_().id("title 20").id()
)
)
)