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
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: read-only-clusterrole | |
| rules: | |
| - nonResourceURLs: | |
| - /metrics | |
| verbs: | |
| - get | |
| - list |
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
| # This will use osd.5 as an example | |
| # ceph commands are expected to be run in the rook-toolbox | |
| 1) disk fails | |
| 2) remove disk from node | |
| 3) mark out osd. `ceph osd out osd.5` | |
| 4) remove from crush map. `ceph osd crush remove osd.5` | |
| 5) delete caps. `ceph auth del osd.5` | |
| 6) remove osd. `ceph osd rm osd.5` | |
| 7) delete the deployment `kubectl delete deployment -n rook-ceph rook-ceph-osd-id-5` | |
| 8) delete osd data dir on node `rm -rf /var/lib/rook/osd5` |
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
| version: "3.3" | |
| services: | |
| traefik: | |
| image: traefik | |
| command: --web --docker --docker.swarmmode --docker.watch --logLevel=DEBUG | |
| ports: | |
| - "80:80" | |
| - "8080:8080" | |
| - "443:443" |
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
| kubectl get secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl apply -f - |
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
| # Generate a passphrase | |
| openssl rand -base64 48 > passphrase.txt | |
| # Generate a Private Key | |
| openssl genrsa -aes128 -passout file:passphrase.txt -out server.key 2048 | |
| # Generate a CSR (Certificate Signing Request) | |
| openssl req -new -passin file:passphrase.txt -key server.key -out server.csr \ | |
| -subj "/C=FR/O=krkr/OU=Domain Control Validated/CN=*.krkr.io" |
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
| if ($request_uri = /) { | |
| set $test A; | |
| } | |
| if ($host ~* teambox.com) { | |
| set $test "${test}B"; | |
| } | |
| if ($http_cookie !~* "auth_token") { | |
| set $test "${test}C"; |
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
| license: mit |
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/bash | |
| echo "${CI_PULL_REQUESTS}" | |
| echo "${CI_PULL_REQUEST}" | |
| echo "${CIRCLE_PR_NUMBER}" | |
| if [[ ! "${CI_PULL_REQUEST}" =~ /pull/[0-9]+$ ]]; then | |
| exit 0 | |
| fi |
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 bash | |
| sudo -i; | |
| apt-get update; | |
| apt-get install --yes \ | |
| git \ | |
| bison \ | |
| autoconf \ |
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/bash | |
| # /etc/init.d/sentry | |
| # A debian-compatible sentry startup script | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: sentry | |
| # Required-Start: $remote_fs $syslog $network | |
| # Required-Stop: $remote_fs $syslog $network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
NewerOlder