Skip to content

Instantly share code, notes, and snippets.

View taylor224's full-sized avatar
๐Ÿˆ
cat

Taylor Hoshino taylor224

๐Ÿˆ
cat
View GitHub Profile
@taylor224
taylor224 / send.py
Created May 3, 2026 10:42
ICOM VE-PG4 RoIP Gateway Multicast Communication PoC code
#!/usr/bin/env python3
"""
VE-PG4 RoIP Gateway 1 (239.255.255.1:22510, G.711u) ๋กœ 1์ดˆ๊ฐ„ 1kHz ๋น„ํ”„ ์†ก์‹ .
"""
import socket, struct, time, math, sys
MCAST = '239.255.255.1'
PORT = 22510
SSRC = 0xCAFEBABE
TTL = 32 # ๋ผ์šฐํ„ฐ ํ•œ๋‘ ํ™‰ ๋„˜๊ธฐ ์œ„ํ•ด
@taylor224
taylor224 / script.js
Last active February 14, 2020 02:32
Amazon aws Bulk SG IP add script
var script = document.createElement('script');
script.onload = function() {
jQuery.noConflict();
if (callback) {
callback(jQuery);
}
};
script.src = "https://code.jquery.com/jquery-2.1.1.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
@taylor224
taylor224 / README.md
Last active July 5, 2018 12:32
MariaDB Auto Backup Script

MariaDB Auto Backup Script

without DB lock

@taylor224
taylor224 / README.md
Last active November 21, 2024 15:08
ํ‹ฐ์Šคํ† ๋ฆฌ ๋ธ”๋กœ๊ทธ ๋ฐฑ์—…ํ•˜๊ธฐ & ์›Œ๋“œํ”„๋ ˆ์Šค๋กœ ์ด์‚ฌํ•˜๊ธฐ

ํ‹ฐ์Šคํ† ๋ฆฌ ๋ธ”๋กœ๊ทธ ๋ฐฑ์—…ํ•˜๊ธฐ & ์›Œ๋“œํ”„๋ ˆ์Šค๋กœ ์ด์‚ฌํ•˜๊ธฐ

Tistory ๋ธ”๋กœ๊ทธ ๋ฐฑ์—… ๊ธฐ๋Šฅ์ด ์‚ญ์ œ ๋˜์–ด ๋ฐฑ์—…ํ• ์ˆ˜ ์—†๋Š” ๋ถ„๋“ค์„ ์œ„ํ•œ ๋ฐฑ์—… ์Šคํฌ๋ฆฝํŠธ ๋ฐ ์›Œ๋“œํ”„๋ ˆ์Šค๋กœ์˜ ์ด์ „ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

์šฐ์„  tistory ์˜ ์Šคํ‚จ์„ [์‚ฌ์šฉ์ค‘TickTalk(์‚ฌ์šฉ์ž ์ˆ˜์ •/์—…๋กœ๋“œ) ver.1.0(์‚ฌ์šฉ์ž ์ˆ˜์ •/์—…๋กœ๋“œ)] ์œผ๋กœ ๋ณ€๊ฒฝํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ๋ณธ ์Šคํฌ๋ฆฝํŠธ์™€ ์„ค๋ช…์€ ์ด ์Šคํ‚จ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ์ œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ํ™˜๊ฒฝ์„ค์ • - ๊ธฐ๋ณธ์ •๋ณด - ๋ธ”๋กœ๊ทธ ์ •๋ณด - ์ฃผ์†Œ์„ค์ • ์—์„œ ์ฃผ์†Œ๋ฐฉ์‹์„ [์ˆซ์ž (http://notice.tistory.com/123)] ๋กœ ๋ณ€๊ฒฝํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ์›Œ๋“œํ”„๋ ˆ์Šค๋ฅผ ๋ฏธ๋ฆฌ ์„ค์น˜ํ•˜์‹  ํ›„ ์›Œ๋“œํ”„๋ ˆ์Šค ๋ธ”๋กœ๊ทธ์˜ url ๋ฐ ๊ธฐํƒ€ ์„ค์ •์„ ๋ฏธ๋ฆฌ ์ง„ํ–‰ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋ณธ ์‚ฌํ•ญ์„ ๋ฏธ๋ฆฌ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š์„๊ฒฝ์šฐ ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ๋™์ž‘ํ•˜์ง€ ์•Š์„์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ง„ํ–‰ํ•˜๊ธฐ ์ „ ๋ชจ๋“  ๋ถ€๋ถ„์— ๋Œ€ํ•ด์„œ ์ฝ์–ด๋ณด์‹  ํ›„ ์ง„ํ–‰ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ์‚ฌ์ „์ž‘์—…์ด ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@taylor224
taylor224 / cv.py
Created February 27, 2017 10:55
ffmpeg stream to UStream with python
command = "ffmpeg -f avfoundation -i \":0\" -f rawvideo -pix_fmt bgr24 -s 1280x720 -i - -deinterlace -vb 2000k -vcodec libx264 -preset ultrafast -g 60 -threads 4 -acodec libmp3lame -ab 128k -ar 22050 -bufsize 512k -f flv \"rtmp://1.1234567.fme.ustream.tv/ustreamVideo/id/streamkey\"
videopipe = subprocess.Popen(pipecommand, shell=True, stdin=subprocess.PIPE)
videopipe.stdin.write(frame.tostring()) # OpenCV Frame Data
@taylor224
taylor224 / 2cpu_application_list.js
Created February 2, 2017 17:22
2CPU [์‹ ์ฒญ] ์ž ์ถ”์ถœ ์Šคํฌ๋ฆฝํŠธ
var a=$("#commentContents>table");
var list = [];
var text = '';
$.each(a, function(i,v) {
if (v.innerText.indexOf("[์‹ ์ฒญ]") >= 0) {
list.push($(v).find("a[class='sideview']")[0].innerText);
}
});
console.log("์ด " + list.length + " ๋ช… ์ž…๋‹ˆ๋‹ค.");
@taylor224
taylor224 / auto_convert.sh
Last active November 20, 2016 16:35
Automatic SMI to SRT convert script
#!/bin/sh
# Find SMI file recursively script by Taylor Starfield
FindRoot=/top/directory/to/convert
find $FindRoot -name '[^.]*.smi' | while read line; do
if [ -f "${line%.smi}.srt" ]; then
continue
fi
python convert.py "$line"
@taylor224
taylor224 / tooltip.html
Created November 13, 2016 08:19
NVD3 Default Multiple Line Chart with Focus Tooltip HTML Code
<table>
<thead>
<tr>
<td colspan="3">
<strong class="x-value">2016-12-01</strong>
</td>
</tr>
</thead>
<tbody>
<tr>
@taylor224
taylor224 / run.py
Last active May 10, 2017 22:52
rclone Automatic Upload Script
#-*- coding: utf-8 -*-
import os
import subprocess
ROOT_DIR = '/home/user/data/'
REMOTE_ROOT_DIR = '/Documents/data/'
for dir in os.listdir(ROOT_DIR):
if not os.path.isdir(os.path.join(ROOT_DIR, dir)):
@taylor224
taylor224 / vss.py
Created September 17, 2015 07:51
Vehicle Sound System
import subprocess
import time
import fcntl, os
#p = subprocess.Popen(['mplayer', '-slave', '-quiet', 'motor_start.wav'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
#while(True):
# speedstr = raw_input('rpm: ')
# print '\r\n'
# speednum = int(speedstr)