Skip to content

Instantly share code, notes, and snippets.

View eagleusb's full-sized avatar
🪐
.

Leslie-Alexandre DENIS eagleusb

🪐
.
View GitHub Profile
@eagleusb
eagleusb / kubernetes-tls-rotation.md
Last active February 4, 2019 14:26
Kubernetes TLS certificates renewal

TLS

Certificates are valid for one year by default (i.e. generated by kubeadm)

The certificates validity periods can be checked with openssl.

For example, connected on one of the masters :

openssl -in /etc/kubernetes/pki/apiserver.crt -noout -text
@eagleusb
eagleusb / aws-nlb-service.yml
Created September 26, 2019 19:00
AWS NLB Service
---
kind: Service
apiVersion: v1
metadata:
name: ingress-nginx
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
annotations:
@eagleusb
eagleusb / sierra_mc7355_flashing.md
Created November 26, 2019 15:58 — forked from mleinart/sierra_mc7355_flashing.md
Flashing Carrier configuration and updated firmware to a Sierra MC7355

Overview

The Sierra MC7355 can run configurations for several North American carriers. These cards are easy to find on eBay and notable for their support for the Sprint LTE network. Unless you're luck out, you may find you need to flash a new carrier configuration onto the card you purchased before using it.

Notes

These procedures are specific to the setup I had to perform this on. Most notably, the only system I had with a mini-PCI-e slot was the target pfSense system, a PCengines APU1d with no VGA port (serial console only). If you're able to obtain a

@eagleusb
eagleusb / ebsnvme-id
Created December 23, 2019 10:21 — forked from lbernail/ebsnvme-id
ebsnvme-id script
#!/usr/bin/env python2.7
# Copyright (C) 2017 Amazon.com, Inc. or its affiliates.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
@eagleusb
eagleusb / README.md
Created January 14, 2020 11:05 — forked from zytek/README.md
Terraform to manage AWS RDS PostgreSQL databases, users and owners

Terraform vs PostgreSQL RDS

Thanks to new resources (postgresql_default_priviledges) and some fixes Terraform can now add new databases and manage ownership / access to them.

This example creates new database and two users. You can use owner to create new tables and run migrations and user for normal read/write access to database.

@eagleusb
eagleusb / qemu.md
Last active April 17, 2025 14:15
QEMU build from sources

QEMU

  • Debian like systems

Dependencies

# git clone https://git.qemu.org/git/qemu.git && cd qemu
# git submodule init
# git submodule update --recursive
@eagleusb
eagleusb / readme.md
Last active June 17, 2023 09:10
High Quality Linux Sound :)

HQLS

High Quality Linux Sound is just my memo about Linux sound stack configuration, as:

  1. I never remember all the tools to configure (ALSA, PulseAudio...)
  2. I never remember the correct parameter(s)
  3. It must be automated

ALSA

PulseAudio

@eagleusb
eagleusb / prefetch.reg
Created May 10, 2020 17:34
Windows prefetch optimization.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"BootId"=dword:00000029
"BaseTime"=dword:22a20bb3
"EnableSuperfetch"=dword:00000000
"SfTracingState"=dword:00000001
"EnablePrefetcher"=dword:00000000
@eagleusb
eagleusb / helm.md
Last active June 10, 2020 15:55
Helm Semantics

Helm Semantics

Helm Commands

Install

$ helm install --dry-run --debug ./mychart
$ helm install --dry-run --debug --set favoriteDrink=slurm ./mychart
$ helm install --dry-run --debug --namespace foo --tiller-namespace foo --name my-chart .
@eagleusb
eagleusb / ovpn.md
Last active June 25, 2020 07:40
OpenVPN No Brainer Configuration

OpenVPN

Configuration

# general
verb 4
# silence repeating messages
mute 20
user root