Skip to content

Instantly share code, notes, and snippets.

View stmps's full-sized avatar
🐧

stmps

🐧
  • Canberra
  • 20:48 (UTC +10:00)
View GitHub Profile
@stmps
stmps / generate_rgw_s3_token.py
Last active February 5, 2021 05:52 — forked from adamgoossens/generate_rgw_s3_token.py
Simple python3 script that will generate an access key suitable for use with the Ceph RADOSGW S3 API, when authenticating against an LDAP or AD backend.
######################
#
# generate_rgw_s3_token.py
#
# Generates a base64 access key suitable for use with the Ceph
# RADOSGW S3 API
#
# usage: python3 generate_rgw_s3_token.py --ttype ldap
#
# alternative: RGW_ACCESS_KEY_ID='foobar' RGW_ACCESS_SECRET_KEY='barbaz' generate_rgw_s3_token.py --ttype ad
@stmps
stmps / local-coop.markdown
Last active January 27, 2017 06:13
Local Co-op Video Games
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "Deployment location"
}
},
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "Deployment location"
}
},
@stmps
stmps / xenserver-storage-passthrough
Last active February 27, 2024 10:22
local disk passthrough in xenserver
/etc/udev/rules.d/50-udev.rules:
ACTION=="add", KERNEL=="sdb", SYMLINK+="xapi/block/%k", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
ACTION=="remove", KERNEL=="sdb", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
ACTION=="add", KERNEL=="sdc", SYMLINK+="xapi/block/%k", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
ACTION=="remove", KERNEL=="sdc", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
ACTION=="add", KERNEL=="sdd", SYMLINK+="xapi/block/%k", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
ACTION=="remove", KERNEL=="sdd", RUN+="/bin/sh -c '/opt/xensource/libexec/local-device-change %k 2>&1 >/dev/null&'"
@stmps
stmps / ccdp-arch.md
Last active August 29, 2015 14:10
CCDP ARCH 642-874

Exam Topics

  • (30%) design advanced enterprise campus networks
    • design for high availability in enterprise networks
    • design layer 2 and layer 3 campus infrastructures using best practices
    • describe enterprise network virtualisation considerations
    • design for infrastructure services
      • voice
      • video
      • qos
    • identify network management capabilities in cisco ios software
@stmps
stmps / jwplayer-rtmp.html
Last active February 10, 2019 19:54
example jwplayer HTML for live playback of an RTMP stream
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
</head>
<body style="margin:0;padding:0">
<div id="player">Loading the player...</div>
<script type="text/javascript">
@stmps
stmps / rtmp-nginx.conf
Last active April 27, 2016 18:01
nginx config for an RTMP live streaming server
worker_processes 1;
error_log logs/error.log;
error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 1024;
@stmps
stmps / BGP Path Selection.md
Last active January 27, 2017 05:22
BGP Path Selection Metrics

If BGP has multiple potential routes to a destination, how does it choose which one to install in the RIB? I'm glad you asked!

Don't panic - at the CCNP level, you'll only need to know up to step 4.

  1. Next Hop Accessibility

    Like IGPs, a route will never be installed in the route table if the next-hop router is inaccessible.
    Unlike IGPs, this might not be obvious because the next-hop BGP router might not be directly connected.

Next-hop accessibility is the "zeroth" step - depending on who you ask.