Skip to content

Instantly share code, notes, and snippets.

Avatar
🐈
Focusing

taking taking

🐈
Focusing
View GitHub Profile
@taking
taking / 자막 넣기
Last active Sep 16, 2022
ffmpeg를 이용한 영상에서 한글 자막 (Korea Subtitle) 추출, 삽입, 자막 맞추기
View 자막 넣기
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
@taking
taking / k8s-containerd-install.sh
Last active Sep 13, 2022
kubernetes containerd-crio-docker install scripts & traefik - 1.23.4
View k8s-containerd-install.sh
#!/bin/bash
# Author by Taking
# Kubernetes Install + Reset
# Containerd
# Flannel CNI
# Cluster Name Change (Host명 기준)
# MetalLB Install
RED=`tput setaf 1`
GREEN=`tput setaf 2`
@taking
taking / argv.json
Last active Aug 13, 2022
Visual Studio Code (Server Only) Settings.json
View argv.json
{
"locale": "ko"
}
View fluentd-helm.md
View ECK-helm.md

eck-operator Installation with Helm

  • Elasticsearch, Kibana, APM Server, Enterprise Search, and Beats on Kubernetes

Step

  1. Deploy an eck-operator
  2. Deploy an Elasticsearch
  3. Deploy an Kibana

Repo

View prometheus-operator-helm.md
View Longhorn-helm.md

Longhorn Installation with Helm

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • nfs-common (apt install nfs-common -y)
  • iscsi (apt install open-iscsi -y)
  • mkdir -p /data/longhorn

helm update

View qbittorrent-discord-notify.sh
#!/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
#
View docker hub rate limit 확인.md

확인 방법

apt install jq -y

TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)

curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest

image