Skip to content

Instantly share code, notes, and snippets.

View ingvarch's full-sized avatar
🍺
Not drunk enough

Igor Churmeev ingvarch

🍺
Not drunk enough
View GitHub Profile
@f41gh7
f41gh7 / api-server.yaml
Last active August 21, 2023 10:31
vm operator configuration examples
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: apiserver
namespace: monitoring-system
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
bearerTokenSecret:
key: ""
@aleskiontherun
aleskiontherun / pritunl-backup.sh
Last active February 19, 2024 15:31
Backup and restore Pritunl database.
sudo service pritunl stop
mongodump -d pritunl -o pritunl-bkp
tar -czvf pritunl-bkp.tar.gz pritunl-bkp
@patmigliaccio
patmigliaccio / purge-css-cloudflare.sh
Last active September 13, 2023 01:47
Executes cURL to purge the cache on Cloudflare for a specified set or all files (requires config)
#!/bin/sh
# Author: Pat Migliaccio <pat@patmigliaccio.com>
# License: MIT
EMAIL="<Acct_Email>"
ZONE="<Zone_ID>"
API_KEY="<API_Key>"
DATA="{ \"files\": [\"https://example.com/css/style.css\"] }"
@wallyqs
wallyqs / nats-cluster-tls-kubernetes.org
Last active September 9, 2022 11:41
Secure NATS Cluster in Kubernetes

Secure NATS Cluster in Kubernetes

Creating the certificates

Generating the Root CA Certs

{
    "CN": "My Custom CA",
@astynax
astynax / README.md
Last active May 25, 2017 02:54
Vzhuhsay

Vzhuh!

  1. Make sure what you have a cowsay installed
  2. Save the vzhuh.cow to /usr/share/cowsay/cows
  3. ...
  4. PROFIT!
$ cowthink -f vzhuh Hello
 _____
&lt; foo &gt;