Skip to content

Instantly share code, notes, and snippets.

View Smartich0ke's full-sized avatar
🏜️
tracker not gonna find us

Nikolai Patrick Smartich0ke

🏜️
tracker not gonna find us
View GitHub Profile
@Smartich0ke
Smartich0ke / vso-auth-static.yaml
Created December 26, 2023 06:07
simple Vault secrets Operator static secrets templates
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultAuth
metadata:
name: static-auth
spec:
method: kubernetes
mount: auth-mount
kubernetes:
role: secrets-operator
serviceAccount: default
@Smartich0ke
Smartich0ke / personalize
Created December 1, 2023 02:00
Coder personalize file for laravel development (php and node)
#!/bin/bash
echo -e "\e[1;4;32mStarting personalize, please wait...\e[0m"
echo -e "\e[4;34mInstalling PHP dependencies\e[0m"
sudo apt-get install -y lsb-release gnupg2 ca-certificates apt-transport-https software-properties-common nano
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php8.2 openssl php8.2-bcmath php8.2-curl php8.2-cli php8.2-mbstring php8.2-mysql php8.2-zip php8.2-gd php8.2-xml

How to WEBrip Audio and Video Using OBS on Linux for Beginners (to give back to the seven seas)

  1. Start OBS and open settings. Set the the recording canvas and output canvas to that of the video playback resolution. So if the playback is 1080p, set both to 1080p.

  2. Set the recording bitrate. This number may needing a bit of tweaking, but the bigger the number, the higher the quality. You will reach a point of diminishing returns depending on the video's resolution, but it's good to do some test recordings and view the clip to check if it's ok. Here is a chart for the standard bitrates:

Type Video Bitrate, Standard Frame Rate (24, 25, 30) Video Bitrate, High Frame Rate (48, 50, 60)
2160p (4K) 35–45 Mbps 53–68 Mbps
1440p (2K) 16 Mbps 24 Mbps
@Smartich0ke
Smartich0ke / smb-credentials.yaml
Created November 4, 2023 22:33
Simple template for setting up an SMB volume in k8s using csi-driver-smb
apiVersion: v1
kind: Secret
metadata:
name: <name_of_credentials_secret>
annotations: {}
labels: {}
namespace: <namespace_of_credentials_secret>
type: Opaque
data:
domain: <some_domain> # e.g. WORKGROUP
@Smartich0ke
Smartich0ke / cnpg_cluster.yaml
Last active March 2, 2024 04:10
simple example template for spinning up a cnpg cluster
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: <name_of_cluster>
spec:
instances: 3
# superuserSecret:
# name: <secret_name>
bootstrap:
initdb:
@Smartich0ke
Smartich0ke / redisfailover.yaml
Last active March 2, 2024 04:14
spotahome redisfailover template. Use the rfrm-service to connect to the application.
apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
name: <name_of_redis_cluster>
spec:
# auth:
# secretPath: redis-auth
sentinel:
replicas: 3
resources:
@Smartich0ke
Smartich0ke / ReadMeTemplate.md
Last active September 10, 2022 10:10
A simple template for a good GitHub README

Name of project

Short description describing the purpose of your project.

Installation

Instructions for installation

Building from source

Instructions for building the project