Skip to content

Instantly share code, notes, and snippets.

View neiroc's full-sized avatar
🦥
Festina Lente

Enrico Marchelletta neiroc

🦥
Festina Lente
View GitHub Profile
@neiroc
neiroc / k8s_add_SAN_apiserver.md
Last active February 11, 2025 20:59
Add SAN to Kubernetes apiserver

kubernetes - add SANs to apiserver certificate

Tested in kubernetes version 1.32

kubectl -n kube-system get configmap kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' > kubeadm.yaml
  • Add to kubeadm.yaml
@neiroc
neiroc / PANDOC_REVEALJS.md
Last active December 23, 2024 14:00 — forked from jsoma/README.md
How to use pandoc and Markdown to build a simple reveal.js presentation (and a bit about how to customize it, too)

Requirements

First you need to install pandoc.

I used brew install pandoc to install via Homebrew since I'm on a mac.

Writing your presentation

Make a slides.md for your slides (or name it whatever you want!). I put images in an /images/ folder. You can see how links and images and all of that work from this sample:

@neiroc
neiroc / emoji_list.md
Last active December 8, 2024 11:57 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@neiroc
neiroc / utility-pods.md
Created December 3, 2024 16:04
List of utility Pods for Kubernetes

Utility Pods for Kubernetes

dns utils

apiVersion: v1
kind: Pod
metadata:
 name: dnsutils
@neiroc
neiroc / keybindings.json
Last active November 24, 2024 11:21
VS CODE - Custom keybindings
// neiroc custom keybindigs
[
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "alt+n",
"command": "bookmarks.jumpToNext",
# DOWNLOAD IMAGES FROM DB
# neiroc script
from datetime import datetime
from pymongo import MongoClient
import gridfs
def mongo_conn():
try:
print('start ')
@neiroc
neiroc / radios.m3u
Last active November 13, 2024 09:59
A list of Radio Streaming URL
#EXTM3U
# ITALY - BOLOGNA
#EXTINF:-1, Radio Città del Capo (Bologna)
http://stream2.netlit.eu/rcdc.m3u
#EXTINF:-1, Radio Città Fujiko (Bologna)
http://comodino.org:8001/rcf.ogg
@neiroc
neiroc / gitlab-on-minikube-helm3.md
Created October 11, 2024 13:03
setup gitlab on minikube using helm3

Setup gitlab on minikube using helm3

Start minikube with virtualbox driver

minikube start \
  --driver=virtualbox \
  --cpus 4 \
  --memory 8192

Recomended: 8 CPU and 30 GB RAM (for demo we are going to use minimal setup)

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",