Skip to content

Instantly share code, notes, and snippets.

@rafaribe
rafaribe / alias.yml
Created February 27, 2023 11:46
k9s configuration
# $XDG_CONFIG_HOME/k9s/alias.yml
alias:
sec: v1/secrets
sm: monitoring.coreos.com/v1/servicemonitors
ss: apps/v1/statefulsets
udp: traefik.containo.us/v1alpha1/ingressrouteudps
@Paraphraser
Paraphraser / Checking your Raspberry Pi's view of its power supply.md
Created June 13, 2022 06:53
Checking your Raspberry Pi's view of its power supply (sometimes it's not the wall-wart)

Checking your Raspberry Pi's view of its power supply

Sometimes it seems like the first (and sometimes only) advice you get offered for almost any problem with a Raspberry Pi is "check your power supply". You think something like:

"hey, I'm using an official power supply sold as being matched with my Pi so how can there be any problem?"

You look up the specs then stick a controlled load across your supply and confirm that it can deliver the required number of Watts.

Yet your problems persist…

@Phate334
Phate334 / docker-compose.yml
Last active March 2, 2024 01:33
JanusGraph and OpenSearch
version: "3"
services:
janusgraph:
image: janusgraph/janusgraph:0.6.2
container_name: jce-janusgraph
env_file:
- janusgraph.env
ports:
- "8182:8182"
@ursulacj
ursulacj / Create-branch-with-Github-API.md
Last active November 11, 2023 05:26 — forked from auwsome/Create-branch-with-Github-API.md
Create a branch on Github using API and Python

Create a branch on Github using API and Python

Created as a module that can be imported or run. Requires built in JSON, requests, and datetime modules.

Allows you to clone a branch on Github using the Github Git Database API Endpoints.

Forked Gist from:

  • auwsome/Create-branch-with-Github-API.md

See:

@ankurk91
ankurk91 / dnsmasq.md
Last active October 22, 2023 11:50
DNSmasq on Ubuntu 18/20

DNSmasq wildcard on Ubuntu 18/20

  • Install dnsmasq
sudo apt install -y dnsmasq
sudo apt install -y resolvconf
  • 💡 The dnsmasq service will fail to start, you can ignore those errors for timebeing
  • Disable the default systemd-resolved service
@dev-korr
dev-korr / rundeck-acl-config-map.yaml
Created January 31, 2021 08:36
configmap with acl policies for rundeck hosted on kubernetes.
apiVersion: v1
kind: ConfigMap
metadata:
name: acl-configmap
namespace: rundeck
labels:
app: rundeck
data:
custom.aclpolicy: |
description: Admin, all access for admin/SRE team - project context.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@blake
blake / create-envoy-systemd-template-unit.md
Last active November 24, 2023 22:16
systemd template unit for envoy

Create a systemd template unit for Envoy proxies with Consul

This brief tutorial will walk through the process of creating a systemd template unit file for starting Envoy sidecars for use with Consul service mesh.

Template unit files allow systemd to address multiple units from a single configuration file. You can call a systemd template unit file using a special format to use this feature:

/*
* Print storage details for all collections and indexes.
* Supports sharded clusters
*
* @author alex.bevilacqua@mongodb.com
* @version 1.3
* @updated 2022-11-21
*
* History:
* 1.3 - Filter out admin, local and config databases
@scodx
scodx / config.yml
Last active April 16, 2022 14:58
traefik example with letsencrypt and docker and external services
# place this file in the `config` folder
http:
services:
# the urls must be accesible from the traefik installation, either native or as a container
rundeck:
loadBalancer:
servers:
- url: http://172.17.0.1:4440
php-tt: