Skip to content

Instantly share code, notes, and snippets.

View taking's full-sized avatar
🐈
Focusing

taking taking

🐈
Focusing
View GitHub Profile
for %%f in (*.ts) do (
ffmpeg -i "%%f" -c:v h264_nvenc -c:a copy "%%f.mp4"
)
pause
@taking
taking / 자막 넣기
Last active March 30, 2023 02:21
ffmpeg를 이용한 영상에서 한글 자막 (Korea Subtitle) 추출, 삽입, 자막 맞추기
for i in *.mp4
do
i="${i%.mp4}"
mkvmerge -o "$i.mkv" "$i.mp4" --language 0:kor --default-track 0:yes "$i.kor.srt" --language 0:eng "$i.en.srt"
mkvpropedit "$i.mkv" --edit info --set "title=$i" --set "writing-application=mkvmerge v34.0.0 ('Sign and Seen') 64-bit - TAKING" --set "muxing-application=libebml v1.3.7 + libmatroska v1.5.0"
done
#!/bin/sh
## 20-03-25
## CentOS 7 기준
## ROOT 계정으로 실행하기
###########################################
read -p "hostname (ex testdev, dont use UNDER BAR): " uhost
read -p "username(not root): " uname
############ nameserver setting ###############
/* optional */
/* uppercase titles */
.page-content h1{text-transform:uppercase}
h1.break-text{text-transform:uppercase}
/* Dracula stuff */
/* background */
:focus{outline-style:none!important}
html {background-color: #282b36;}
@taking
taking / [Ubuntu] Docker, Kubernetes, helm Install Shell Script
Last active March 30, 2021 08:52
쿠버네티스 설치부터 helm 을 이용한 istio service mesh 구성까지
#!/bin/bash
RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`
# Check permission
if [ "$EUID" -ne 0 ]
then echo "${RED}Please run as root ${NC}"
exit
#!/bin/bash
# fork by fltd/qbittorrent-slack-notify.sh
#
# this script is qBittorrent Discord Notify
# by taking
# A shell scirpt designed to be executed by qBittorrent's "Run external program on torrent completion"
# This scirpt will send a Discord notification using Discord's Incoming Webhooks with the information of completed torrent
#
#!/bin/bash
# 이 스크립트는 토렌트 다운로드 시, 폴더로 받아지는 경우 다음과 같은 작업을 진행한다.
# 1. 폴더 내 txt 가 있는 경우 제거
# 2. 폴더 내 mkv, mp4 확장자가 있는 경우, 다운로드 루트 폴더로 이동
# 2.1. 폴더 내 smi, srt 확장자가 있는 경우, 다운로드 루트 폴더로 이동
# 2.2. 폴더 내 .url 확장자가 있는 경우, 삭제
# - down-folder\test\1.mp4 -> down-folder\1.mp4
# 3. 빈 폴더는 삭제
# by taking
version: '3.7'
#
#
services:
hub:
image: 'jetbrains/hub:2020.1.12722'
container_name: 'hub'
restart: unless-stopped
security_opt:
- no-new-privileges:true
#!/bin/bash
## ROOT 계정으로 실행하기
## 21-03-02
#!/bin/bash
RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`
curl -Ls https://get.submariner.io | bash
cp ~/.local/bin/subctl /usr/bin
rm -rf ~/.local/bin/
subctl version
curl -O -L https://github.com/projectcalico/calicoctl/releases/download/v3.18.1/calicoctl
chmod +x calicoctl
mv calicoctl /usr/bin