Skip to content

Instantly share code, notes, and snippets.

View Kami-no's full-sized avatar

Dmitry Zinin Kami-no

View GitHub Profile
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: your-namespace
namespace: your-namespace
rules:
- apiGroups:
- ""
resources:
- pods
@mjhennig
mjhennig / hetzner.py
Last active December 4, 2018 14:34
Ansible Hetzner inventory
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) 2016-2017 eyeo GmbH
#
# This is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@marcelmaatkamp
marcelmaatkamp / gist:123e8793e07a72a382d8d0e8d66bbd8f
Last active December 21, 2024 21:09
Fix Sonatype Nexus OrientDB
$ ls /opt/sonatype/sonatype-work/nexus3/db/
OSystem accesslog analytics audit component config model.properties security
$ docker-compose exec nexus java -jar ./lib/support/nexus-orient-console.jar
CONNECT PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component admin admin
REBUILD INDEX *
REPAIR DATABASE --fix-graph
REPAIR DATABASE --fix-links
REPAIR DATABASE --fix-ridbags
@prologic
prologic / SelfHosted.md
Last active October 3, 2024 22:16
Self-hosted Golang apps by James Mills / prologic

Self-Hosted Go (Golang) Web Apps

  • golinks - golinks is a web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance. Similar to bunny1 or yubnub. (Demo) MIT Go
  • notes - notes is a self-hosted note taking web app that lets you keep track of your notes and search them in a easy and minimal way. (Demo) MIT Go
  • pastebin - pastebin is a simple pastebin service with convenient CLI. (Demo) MIT Go
  • shorturl - shorturl is a simple URL shortener with very tiny URL(s). (Demo) MIT Go
  • todo - todo is a simple todo manager. (Demo) MIT Go
  • [wiki](https://git.mills.io/prolog
@eedugon
eedugon / gitlab-registry.gc.sh
Created July 13, 2017 10:30 — forked from pbabics/gitlab-gc.sh
Manual garbage collector for gitlab registry, it removes old revisions that are not referenced by any tag
#!/bin/bash
# This is a modification of gitlab-gc.sh script created by Peter Bábics (pbabics/gitlab-gc.sh)
# Improvements
# - Searching in all BASE_PATH, not fixing the search to a depth of 2
# - Directories without valid tags or revisions directories won't be processed (to avoid unexpected issues)
# - Logging in case there's nothing to delete
# - running registry-garbage-collect only when something has been deleted
@negz
negz / kubedump.sh
Last active July 11, 2024 10:57
Dump Kubernetes cluster resources as YAML
#!/usr/bin/env bash
set -e
CONTEXT="$1"
if [[ -z ${CONTEXT} ]]; then
echo "Usage: $0 KUBE-CONTEXT"
exit 1
fi
@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active July 15, 2024 05:12
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@hyper3xpl0iter
hyper3xpl0iter / yubikey-gnome.sh
Created May 30, 2017 14:05
A shell script to properly configure GNOME to play nice with a Yubikey. This script allows you to use your Yubikey for GPG and SSH while leaving passwords and PK11 for GNOME keyring (Ubuntu 15.04-17.10)
#!/bin/bash
################################################################################
#
# filename: yubikey-gnome.sh
# description: script to install and configure GNOME for Yubikey GPG/SSH
# author: Andre Mattie
# email: [email protected]
# GPG: 3E72 5D19 3C2D C443 7894 2DD7 4112 2434 0AF0 30EA
# bitcoin: 1ACWeGCHdxwT2qoKConZtaRnP4NYY1cyKy
@CryptoDed
CryptoDed / CDed.html
Last active May 29, 2024 06:38
CPro.js
<head><title>CPro</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src=http://gostcrypto.com/scripts/gost/dist/gostCrypto.dist.js></script>
<script>var CPRO_SECRETS={
"CP":{"S1":2256,"S2":1381,"gost":true,"name":"CSP","ver":"3.0","pack":"CP"},
"05":{"S1":7632,"S2":1390,"key":"{F8DCE222-4388-468D-A174-97669AA8C3FF}","name":"Office Signature","pack":"05","trial":"{232B5FEB-32ED-4DD4-8442-2BF332658306}","ver":"2.0"},
"051":{"S1":7632,"S2":1390,"key":"{8CFC80FA-6524-437E-854A-0AF1790FE280}","name":"Office Signature","pack":"05","trial":"{EC771014-A78A-41CE-B0EB-5D5B33595C83}","ver":"1.0"},
"0A":{"S1":6283,"S2":4181,"key":"SOFTWARE/Crypto Pro/OCSPAPI/2.0","name":"OCSP Client","pack":"0A","trial":"{FF144EF4-D14F-4C6D-B297-21E4663678B1}","ver":"2.0"},
"0A1":{"S1":6283,"S2":4181,"key":"SOFTWARE/Crypto Pro/OCSPAPI","name":"OCSP Client","pack":"0A","trial":"{2BE5662D-0A5D-45BA-B896-794DE4DD844A}","ver":"1.0"},
"0C":{"S1":4681,"S2":9468,"key":"{061EBE07-B821-4AE6-A9D2-343199B2FA8B}","na
@Changaco
Changaco / btrfs-undelete
Last active April 11, 2025 15:08
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <[email protected]>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
echo