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