Sample template from: Thomas A. Limoncelli. “The Practice of Cloud System Administration: Designing and Operating Large Distributed Systems, Volume 2.”.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Set the environment prefix | |
| ENV_PREFIX="[test]" | |
| # Process each line of input, prefixing with the environment name | |
| while IFS= read -r line; do | |
| echo "${ENV_PREFIX} ${line}" | |
| done |
Template from: Michael Kehoe
| Incident Summary | |||
|---|---|---|---|
| Incident Number | Incident Severity | ||
| Postmortem Date | War-room Required | ||
| SRE Lead | Developer Lead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build and test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hierarchy in tmux: session > window > pane. | |
| Prefix for commands and help: | |
| Ctrl-b and sth: issue a command to tmux, inside tmux. | |
| Ctrl-b and ?: see all commands. | |
| Session commands: | |
| tmux: creates a new session and enters it. | |
| tmux new -s sessionname: creates a session with the specified name. | |
| tmux ls: lists all sessions. |
Ranchers official documentation about how to configure the Rancher <> KeyCloak setup is fine but definitely not sufficient to successfully configure it (https://rancher.com/docs/rancher/v2.x/en/admin-settings/authentication/keycloak/). That's the reason why here every single required step is documented down here.
I simply use the default master realm for the Rancher client. Nevertheless, it would sometimes absolutely make sense to use a custom KeyCloak realm.
- Login as
adminon https://keycloak.example.com/. Important: It's crucial that in KeyCloak the same username exists as you use as admin user on Rancher. Since I just use theadminaccount in this guide, this prerequisite is already achieved. - Create a new client under https://keycloak.example.com/auth/admin/master/console/#/realms/master/clients
Client ID:https://rancher.example.com/v1-saml/keycloak/saml/metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-AppxPackage *Microsoft.3dbuilder* | Remove-AppxPackage | |
| Get-AppxPackage *AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxPackage | |
| Get-AppxPackage *Microsoft.WindowsAlarms* | Remove-AppxPackage | |
| Get-AppxPackage *Microsoft.Asphalt8Airborne* | Remove-AppxPackage | |
| Get-AppxPackage *microsoft.windowscommunicationsapps* | Remove-AppxPackage | |
| Get-AppxPackage *Microsoft.WindowsCamera* | Remove-AppxPackage | |
| Get-AppxPackage *king.com.CandyCrushSodaSaga* | Remove-AppxPackage | |
| Get-AppxPackage *Microsoft.DrawboardPDF* | Remove-AppxPackage | |
| Get-AppxPackage *Facebook* | Remove-AppxPackage | |
| Get-AppxPackage *BethesdaSoftworks.FalloutShelter* | Remove-AppxPackage |