View hb_h.265_1080p_vfast.sh
#!/bin/bash | |
# This script uses HandBrakeCLI to automatically convert a folder containing video files to H.265 (HEVC). | |
# You need to substitute SRC -- Source folder, DEST -- Destination folder, | |
# PRESET -- Preset name, & PRESET_FILE -- Preset file (json) for your own values | |
SRC="/root/video_in" | |
DEST="/root/video_out" | |
DEST_EXT=mkv | |
HANDBRAKE_CLI=HandBrakeCLI |
View hbap_vfast.json
{ | |
"PresetList": [ | |
{ | |
"AudioCopyMask": [ | |
"copy:aac", | |
"copy:ac3", | |
"copy:dtshd", | |
"copy:dts", | |
"copy:mp3", | |
"copy:truehd", |
View main.tf
provider "hcloud" { | |
token = var.hcloud_token | |
} | |
resource "hcloud_ssh_key" "default" { | |
name = var.ssh_public_key_name | |
public_key = var.ssh_public_key | |
} | |
resource "hcloud_network" "default" { |
View all-in-one-postgres-dev.yaml
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: kong | |
--- | |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: kongconsumers.configuration.konghq.com | |
spec: |
View hb_install.sh
#! /bin/bash | |
cd /root && mkdir video_in && mkdir video_out \ | |
&& wget https://gist.githubusercontent.com/colinwilson/bdc29535d8825acdda2fbc2d3718d021/raw/2a14fa3f8be94424a650308a2b5f2dbd6bad8876/hbap.json \ | |
&& wget https://gist.githubusercontent.com/colinwilson/3ba48ea637035d3f4ac8fdf5c25bc55a/raw/b9692629119246685bfeb3141b35e63a96a6ef6f/hbap720p.json \ | |
&& wget https://gist.githubusercontent.com/colinwilson/8852b8fe09a52cca6828960621edd5d3/raw/90f4b89f8f6b35a1929a1fd7b187340cb1d5342a/hbap4k.json \ | |
&& wget https://gist.githubusercontent.com/colinwilson/5ea73985e520f0c85e610c2f0e29ac39/raw/484cfa10216973d754bee2ab1e16ca18fb864dfa/hb_h.265_720p.sh \ | |
&& wget https://gist.githubusercontent.com/colinwilson/db77c82536721f6ea70309b6d601f19e/raw/4bd1f86df6b144123f3885c9bb99fe0842ee7e4c/hb_h.265_1080p.sh \ | |
&& wget https://gist.githubusercontent.com/colinwilson/4416611115d5f76bb9f6555dd2fe0730/raw/c343cde69b6a4e23e5bca304f865d36593e91b95/hb_h.265_2160p.sh \ | |
&& chmod +x hb_h.265_720p.sh \ | |
&& chmod +x hb_h.265_1080p.sh \ |
View all-in-one-postgres.yaml
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: kong | |
--- | |
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: kongconsumers.configuration.konghq.com | |
spec: |
View postgresql-geoip.sql
-- | |
-- GEOIP IN POSTGRESQL | |
-- | |
-- We use two approaches. First using PostgreSQL inet and cidr types and indexing (PostgreSQL 9.4 and later), | |
-- and then using ip4r (https://github.com/RhodiumToad/ip4r). | |
-- The performance of ip4r indexes is significantly better than PostgreSQL's own index. | |
-- An operation that took 42s using ip4r took 47 minutes using PostgreSQL's cidr index. | |
-- |
View hb_h.265_720p.sh
#!/bin/bash | |
# This script uses HandBrakeCLI to automatically convert a folder containing video files to H.265 (HEVC). | |
# You need to substitute SRC -- Source folder, DEST -- Destination folder, | |
# PRESET -- Preset name, & PRESET_FILE -- Preset file (json) for your own values | |
SRC="/root/video_in" | |
DEST="/root/video_out" | |
DEST_EXT=mkv | |
HANDBRAKE_CLI=HandBrakeCLI |
View hbap720p.json
{ | |
"PresetList": [ | |
{ | |
"AudioCopyMask": [ | |
"copy:aac", | |
"copy:ac3", | |
"copy:dtshd", | |
"copy:dts", | |
"copy:mp3", | |
"copy:truehd", |
View hb_h.265_2160p.sh
#!/bin/bash | |
# This script uses HandBrakeCLI to automatically convert a folder containing video files to H.265 (HEVC). | |
# You need to substitute SRC -- Source folder, DEST -- Destination folder, | |
# PRESET -- Preset name, & PRESET_FILE -- Preset file (json) for your own values | |
SRC="/root/video_in" | |
DEST="/root/video_out" | |
DEST_EXT=mkv | |
HANDBRAKE_CLI=HandBrakeCLI |
NewerOlder