Skip to content

Instantly share code, notes, and snippets.

View SkYNewZ's full-sized avatar
🐳
Working from home

Quentin Lemaire SkYNewZ

🐳
Working from home
View GitHub Profile
@Clemv95
Clemv95 / ygg-api-download.yml
Last active November 10, 2025 09:06 — forked from LimeDrive/ygg-api.yml
Indexeur ygg-api pour jackett / prowlarr
---
id: yggapi
name: YggAPI
description: Indexeur non-officiel pour YggTorrent (YGG) - MOVIES / TV
language: fr-FR
type: private
encoding: UTF-8
testlinktorrent: false
links:
- https://yggapi.eu/
@SkYNewZ
SkYNewZ / main.go
Created November 9, 2023 21:19
Get YouTube channel ID from channel URL in Go
package main
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"regexp"
)
@chuckxD
chuckxD / __HEY.md
Last active August 24, 2024 03:48
ffz/bttv known API end-points quick list
@maratori
maratori / .golangci.yml
Last active November 8, 2025 19:55
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v2.6.1
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@SkYNewZ
SkYNewZ / main.py
Last active November 2, 2020 19:57
Python37 Google Cloud Logger with urllib3 handler
"""
Used to write logs on Stackdriver logging using the https://googleapis.dev/python/logging/latest/client.html
Detect if we are in Google Runtime environment and enable this logger or not
Change the default format
Append all urllib3 debug request into these loggers
https://stackoverflow.com/questions/16337511/log-all-requests-from-the-python-requests-module
https://github.com/psf/requests/issues/1297
https://stackoverflow.com/questions/11820338/replace-default-handler-of-python-logger
https://stackoverflow.com/questions/879732/logging-with-filters
@mikamboo
mikamboo / README.md
Last active September 17, 2024 20:32 — forked from steimntz/create_user_for_namespace.sh
Kubernetes : Create Service Account with permission for a specific namespace + Generate KUBECONFIG

Create KUBECONFIG limited to specific namespace

  • create_user_for_namespace.sh: Create $namespace-user ServiceAccount with full access to specified namespace and get KUBECONFIG
  • kubeconfig-generator.sh : Generate the KUBECONFIG of an existing sericeaccout + namespace

Ex : Create Gitlab-user on gitlab namespace

GIST_URL=https://gist.githubusercontent.com/mikamboo/5e20ea4a0aef8289e40f62844dec7bc8
curl $GIST_URL/raw/bb5ba7e3cc2b1e7be0006f7a2bc3d0f5d73958ec/create_user_for_namespace.sh | bash -s gitlab
@tjluoma
tjluoma / youtube-rss.sh
Last active May 31, 2025 20:28
Did you know YouTube has RSS feeds? No? Probably because YouTube makes them nearly impossible to find. But here's an easy way to get the RSS feed for any YouTube user. Inspired by <https://eggfreckles.net/notes/youtube-rss/>
#!/usr/bin/env zsh -f
# Purpose: get the RSS feed for a YouTube page
# Inspired By: https://eggfreckles.net/notes/youtube-rss/
# Gist: https://gist.github.com/tjluoma/fdbc63ceb78a2aecd3d638fd18b6ec6e
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2020-01-17; updated 2021-01-10
# 2021-01-10 YouTube currently has both 'rssUrl' and
git_current_branch () {
local ref
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null)
local ret=$?
if [[ $ret != 0 ]]
then
[[ $ret == 128 ]] && return
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return
fi
echo ${ref#refs/heads/}
version: '3'
services:
master:
build:
context: .
dockerfile: ./master.Dockerfile
working_dir: /root/playbooks
volumes:
- /c/repos/ansible/playbooks:/root/playbooks
- /c/repos/ansible/config:/etc/ansible
@Bluscream
Bluscream / obs_twitch_chat.css
Last active September 5, 2025 04:23
Twitch chat transparent popout for OBS
/*
Twitch chat browsersource CSS for OBS
Original by twitch.tv/starvingpoet modified by github.com/Bluscream
Just set the URL as either one of
- https://www.twitch.tv/%%TWITCHCHANNEL%%/chat?popout=true
- https://www.twitch.tv/popout/%%TWITCHCHANNEL%%/chat
- https://www.twitch.tv/embed/%%TWITCHCHANNEL%%/chat?parent=localhost
And paste this entire file into the CSS box or paste direct import css like