Skip to content

Instantly share code, notes, and snippets.

View pmoranga's full-sized avatar

Pmoranga pmoranga

View GitHub Profile
@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
Last active November 13, 2024 05: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"
@gruckion
gruckion / setup_mac.sh
Last active October 2, 2024 16:01
Setup Mac script
#!/bin/sh
####################################################################
# Check for Homebrew, install if we don't have it
####################################################################
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
@ursulacj
ursulacj / Create-branch-with-Github-API.md
Last active June 26, 2024 17:23 — 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 8, 2024 06:43
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 time being
  • 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@galvesribeiro
galvesribeiro / vault_raft_bu_restore_example.sh
Created November 13, 2020 17:03 — forked from mikegreen/vault_raft_bu_restore_example.sh
Vault raft snapshot backup and restore quick demo
# 2020-06-23
# this shows creating a Vault instance running integrated storage/raft,
# then adding a KV and taking a snapshot
# then kill the raft DB files to simulate a storage failure
# repeat new Vault instance, restore snapshot, unseal and auth with orig keys
# and read some data to show how backup/restore works
# not meant to be a live script to run!
# this uses the vault_config.hcl from https://gist.github.com/mikegreen/c2df5eea2283f0dbc5f3a5d3650536fd
@blake
blake / create-envoy-systemd-template-unit.md
Last active July 29, 2024 03:13
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: