Skip to content

Instantly share code, notes, and snippets.

View martin-magakian's full-sized avatar

Martin Magakian martin-magakian

View GitHub Profile
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
@bvaudour
bvaudour / compress.sh
Last active February 28, 2023 06:19
tar.lz4 creation/extraction
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage : $0 <file to compress>"
exit 1
fi
file=${1%%/}
tar c "$file" | lz4 -z - "$file.tar.lz4"
@pulse00
pulse00 / GithubJsonProtocol.scala
Last active November 4, 2021 10:19
spray-client http post request with custom header and json4s unmarshalling/marshalling
package com.example.actors.github
import spray.httpx.Json4sSupport
import org.json4s.{DefaultFormats, Formats}
/**
* Marshalling/Unmarshalling for the github json format
*
* see http://developer.github.com/v3/oauth/#web-application-flow
*/
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 19, 2024 18:25
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k