Skip to content

Instantly share code, notes, and snippets.

View eagleusb's full-sized avatar
🪐
.

Leslie-Alexandre DENIS eagleusb

🪐
.
View GitHub Profile
@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 / 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 / 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 / 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 / spectre.c
Created January 8, 2018 10:03 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@eagleusb
eagleusb / this.js
Last active November 15, 2017 23:59
A `this` context reminder for NodeJS
#!/usr/bin/node
// non-strict mode = `this` context is 'global'
// strict-mode = `this` context is undefined
function parentFunction() {
this.foo = 'bar';
console.log('parentFunction scope : ' + this.foo);
@eagleusb
eagleusb / keybase.md
Last active September 15, 2019 07:53
keybase

Keybase proof

I hereby claim:

  • I am eagleusb on github.
  • I am grumpycat (https://keybase.io/grumpycat) on keybase.
  • I have a public key ASC0HxVgyLb7_fRNd6juaTGOExlPpYA3dGBZ2O5CDqBxlwo

To claim this, I am signing this object:

@eagleusb
eagleusb / haproxy.cfg
Created August 7, 2017 15:39 — forked from GABeech/haproxy.cfg
Stack Exchange HAProxy
# This is an example of the Stack Exchange Tier 1 HAProxy config
# The only things that have been changed from what we are running are:
# 1. User names have been removed
# 2. All Passwords have been remove
# 3. IPs have been changed to use the example/documentation ranges
# 4. Rate limit numbers have been changed to randome numbers, don't read into them
userlist stats-auth
group admin users $admin_user
user $admin_user insecure-password $some_password
@eagleusb
eagleusb / config.txt
Last active May 24, 2017 14:36
Firefox about:config tweaks
webgl.disabled;false
layers.acceleration.force-enabled;true
extensions.pocket.enabled;false
geo.enabled;false
media.peerconnection.enabled;false
media.peerconnection.identity.enabled;false
media.peerconnection.use_document_iceservers;false
media.peerconnection.video.enabled;false
network.cookie.lifetime.days;8
network.cookie.lifetimePolicy;3
user_pref("beacon.enabled", false);
user_pref("browser.disableResetPrompt", true);
user_pref("browser.fixup.alternate.enabled", false);
user_pref("browser.newtab.preload", false);
user_pref("browser.newtabpage.enhanced", false);
user_pref("browser.newtabpage.introShown", true);
user_pref("browser.safebrowsing.appRepURL", "");
user_pref("browser.safebrowsing.enabled", false);
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.search.suggest.enabled", false);