Skip to content

Instantly share code, notes, and snippets.

@thesamesam
thesamesam / xz-backdoor.md
Last active June 17, 2024 00:37
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@mrbuk
mrbuk / vyos-with-bgp.md
Created August 19, 2020 20:56
Deploying a VyOS VM as a router for NSX-T with BGP

Router configuration for VyOS that will

  • learn routes via BGP
  • propagate routes via BGP

This configuration is at the moment used to bridge NSX-T in a homelab environment to the existing homerouter network

Network Design

The simplified network setup looks like the following

@ob1-sc
ob1-sc / mac-learning.md
Last active September 3, 2020 08:57
Setup Distributed Switch Mac Learning
  1. Download William Lam scripts and browse to correct folder
git clone https://github.com/lamw/vghetto-scripts.git
cd powershell
  1. Install powershell
$ sudo snap install powershell --classic
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active June 12, 2024 22:28
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@ob1-sc
ob1-sc / lastpass-cli-how-to.md
Last active April 14, 2022 15:33
How to setup and use LastPass cli to retrieve secrets when scripting

Prerequisties

  1. An active LastPass account
  2. LastPass cli installed, see here

Create a password entry in LastPass with the following details:

  • name: my-super-secret
  • username: my-super-secret-username
  • password: my-super-secret-password
@kekru
kekru / 01nginx-tls-sni.md
Last active May 27, 2024 21:49
nginx TLS SNI routing, based on subdomain pattern

Nginx TLS SNI routing, based on subdomain pattern

Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.

prerequisites

  • at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
  • check nginx -V for the following:
    ...
    TLS SNI support enabled
@jchandra74
jchandra74 / openssl.MD
Last active February 16, 2024 21:23
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@Amit-PivotalLabs
Amit-PivotalLabs / bosh-links-why-and-how.md
Last active December 10, 2021 21:33
BOSH Links: Why and How
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active April 13, 2024 12:22
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@bdunn313
bdunn313 / aruba-steps-reference.md
Created December 4, 2012 02:13
Aruba Cucumber Step Definition Reference

Aruba Cucmber Step Definition Reference

This is a short list of all of Aruba's different Cucumber step definitions that are available.

Givens

  1. Given /The default aruba timeout is (\d+) seconds/
  2. Given /^I'm using a clean gemset "([^"]*)"$/
  3. Given /^a directory named "([^"]*)"$/