Skip to content

Instantly share code, notes, and snippets.

View fluential's full-sized avatar
💭
¯\_(ツ)_/¯

Mike fluential

💭
¯\_(ツ)_/¯
  • Earth
View GitHub Profile
@ifeulner
ifeulner / 01_longhorn_bestpractices.md
Last active March 15, 2024 09:00
Longhorn hcloud best practices

Longhorn best practices

The following settings are provided as an example how longhorn should be configured in a production cluster, especially if it is deployed on Hetzner Cloud infrastructure.

Hetzner server nodes provide local storage and allow up to five attached volumes (with a size of up to 10TiB each) Local storage is provided by NVMe storage and therefore is much faster than the attached volumes, but limited in size (max 300GiB usable).

It is assumed that the cluster creation is already done, e.g. via terraform scripts provided by the great kube-hetzner project.

Initial configuration

@allisson
allisson / ubuntu-2204-remove-snap.md
Last active March 19, 2024 23:11
Ubuntu 22.04 remove snap

Remove snaps

sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge snapd-desktop-integration
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge gnome-3-38-2004
sudo snap remove --purge core20
sudo snap remove --purge bare
sudo snap remove --purge snapd
@halloei
halloei / secret_detection.yml
Created December 9, 2021 10:21
GitLab Secret Detection which fails when vulnerabilities were found
# This job overrides the default secret detection job from GitLab
# (https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Jobs/Secret-Detection.gitlab-ci.yml)
# and fails if vulnerabilities were found. The exit code represents the number of vulnerabilities.
#
# Requirements:
# - Stage "test"
include:
- template: Security/Secret-Detection.gitlab-ci.yml
@CustomIcon
CustomIcon / 1.md
Last active July 23, 2023 17:52 — forked from ColinShark/1.md
start(), idle() and stop() multiple Pyrogram Clients at once.

UPDATED

Updated to Pyrogram v1.

If you know what you're doing, feel free to use these as a guide.

For any questions, head to @PyrogramLounge.

@blackjack4494
blackjack4494 / soundcloud_login.py
Last active November 8, 2022 15:59
Soundcloud login. retrieve access_token through reverse engineered web flow authentication.
import time
import random
import requests
import sys
import getpass
import random
# signature generation
def signp(a, i, s, w, u, l, b, k, c, n, r, e, t):
d = '-'.join([str(mInt) for mInt in [a, i, s, w, u, l, b, k]])
@ruanbekker
ruanbekker / promtail_docker_logs.md
Last active April 29, 2024 22:18
Docker Container Logging using Promtail
@stiltr
stiltr / YouTube_Streaming.md
Last active April 6, 2021 05:39
Streaming to the new YouTube Studio with ffmpeg and nginx-rtmp

Streaming to the new YouTube Studio with ffmpeg and nginx-rtmp

I've been successfully streaming to YouTube from a Teradek Vidiu Pro hardware encoder, but wanted to play with streaming to both YouTube and Facebook at the same time. I also wanted to be able to stream pre-recorded videos as if they were live. To accomplish this, I turned to nginx-rtmp and ffmpeg. The only problem was, it didn't work. There are plenty of tutorials out there for setting up nginx-rtmp and for using ffmpeg to send rtmp streams, but no matter what I tried I couldn't get the stream to start on YouTube. I'd start streaming to YouTube, and I could see in the Live Dashboard it would change from No data to Excellent connection, but that was it. The Go Live button was disabled and there was nothing I could do about it. I suspect this is also why I was unable to get castr.io to stream to YouTube as well.

However, after much trial and error, I found that if I switched from Live Control Room to Stream Now Classic, I was

@florentchauveau
florentchauveau / .gitlab-ci.yml
Last active March 30, 2024 05:21
GitLab CI yaml file for building docker images
# This is a GitLab CI configuration to build the project as a docker image
# The file is generic enough to be dropped in a project containing a working Dockerfile
# Author: Florent CHAUVEAU <florent.chauveau@gmail.com>
# Mentioned here: https://blog.callr.tech/building-docker-images-with-gitlab-ci-best-practices/
# do not use "latest" here, if you want this to work in the future
image: docker:20
stages:
- build
/**
* This method is responsible for creating the Jenkins job.
* @param jobName jobName
* @param timerConfig cron expression to schedule the job
* @return
*/
def createJenkinsJob(def jobName, def timerConfig) {
echo "Creating the job ${jobName}"
// Here I'm using a shared library in the pipeline, so I have loaded my shared library here