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 / 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)
@taylor224
taylor224 / edrs.py
Last active September 16, 2015 05:53
ECU Data Recording System
import obd
import json
import time
import os
import sys
from obd import OBDCommand
from obd.utils import unhex
def rpm(_hex):
v = unhex(_hex) # helper function to convert hex to int