Skip to content

Instantly share code, notes, and snippets.

View Regentag's full-sized avatar
🛩️
when TRUE =>

Ham, Yeongtaek Regentag

🛩️
when TRUE =>
View GitHub Profile
@Regentag
Regentag / Send-TelegramTextMessage
Last active August 8, 2024 15:01 — forked from techthoughts2/Send-TelegramTextMessage
This PowerShell function will send a Telegram message via the Telegram Bot API. Specify your Bot token and chat ID and send text messages to the specified Telegram chat via PowerShell. 한글 등(CJK) 지원을 위하여 강제로 UTF-8로 인코딩 적용.
<#
.Synopsis
Sends Telegram text message via Bot API
.DESCRIPTION
Uses Telegram Bot API to send text message to specified Telegram chat. Several options can be specified to adjust message parameters.
.EXAMPLE
$bot = "#########:xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxx"
$chat = "-#########"
Send-TelegramTextMessage -BotToken $bot -ChatID $chat -Message "Hello"
.EXAMPLE
@Regentag
Regentag / UserMediaExample.html
Created May 9, 2020 06:58
iPhone iOS에서 작동하는 getUserMedia() 예제 - iOS 13.3.1에서 테스트 됨
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>getUserMedia() example</title>
<script type="text/javascript">
function enableMedia() {
var video = document.getElementById("captureVideo");
@Regentag
Regentag / conrec.go
Created December 2, 2018 11:26
Save console output and replay.
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"os/signal"
"strconv"
"strings"
@Regentag
Regentag / DOHServer.go
Created May 28, 2018 17:18
DNS Over HTTPS server in Golang.
// DNS Over HTTPS server in Golang.
// 2018.5.29.
package main
import (
"bytes"
"crypto/tls"
"flag"
"io/ioutil"
@Regentag
Regentag / WinConExample.c
Last active August 29, 2015 14:20
윈도 콘솔 함수 예제
#include <Windows.h>
#include <stdlib.h>
void SetConsoleSize(HANDLE hCon, short width, short height)
{
COORD c;
c.X = width;
c.Y = height;
SMALL_RECT r;
// 모 채널에서 뉴스에 내보냈던 바로 그 이름궁합.
// 2015. 4. 27.
use std::env;
use std::borrow::Borrow;
/// 초성
#[allow(dead_code)]
static CHO : [char;19] = [
'ㄱ', 'ㄲ', 'ㄴ', 'ㄷ', 'ㄸ',
@Regentag
Regentag / malbolge.rs
Last active August 29, 2015 14:16
말레볼제(MALBOLGE) 언어 인터프리터
goto https://github.com/Regentag/malbolge-interpreter
@Regentag
Regentag / hq9plus.rs
Last active January 30, 2017 05:39
HQ9+ interpreter for Rust language.
// HQ9+ Interpreter
//
// Jan. 30. 2017.
// yeongtaek.ham {at} gmail.com
//
use std::env;
use std::fs::File;
use std::io::Read;
use std::string::String;