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 KIBANA_VERSION | |
FROM docker.elastic.co/kibana/kibana:${KIBANA_VERSION} | |
ARG KIBANA_VERSION | |
ARG LOGTRAIL_VERSION | |
USER root | |
RUN NODE_OPTIONS="--max_old_space_size=4096" kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v${LOGTRAIL_VERSION}/logtrail-${KIBANA_VERSION}-${LOGTRAIL_VERSION}.zip | |
COPY kibana.yaml /usr/share/kibana/config/kibana.yml | |
COPY elasticsearch.repo /etc/yum.repos.d/elasticsearch.repo |
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
INFO[0000] Skaffold &{Version:v0.24.0 ConfigVersion:skaffold/v1beta6 GitVersion: GitCommit:6a829c4b29e3a102b0b14c4584cd174f780402e9 GitTreeState:clean BuildDate:2019-03-01T20:36:32Z GoVersion:go1.12 Compiler:gc Platform:darwin/amd64} | |
DEBU[0000] Defaulting build type to local build | |
INFO[0000] no config entry found for kube-context ops.orbit.dev | |
INFO[0000] Using kubectl context: ops.orbit.dev | |
INFO[0000] no config entry found for kube-context ops.orbit.dev | |
DEBU[0000] Using builder: local | |
DEBU[0000] setting Docker user agent to skaffold-v0.24.0 | |
INFO[0000] no config entry found for kube-context ops.orbit.dev | |
DEBU[0000] push value not present, defaulting to true because localCluster is false | |
Starting build... |
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: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
creationTimestamp: null | |
labels: | |
controller-tools.k8s.io: "1.0" | |
name: certificates.certmanager.k8s.io | |
spec: | |
additionalPrinterColumns: | |
- JSONPath: .status.conditions[?(@.type==\"Ready\")].status |
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
.:53 { | |
cache 30 | |
log | |
errors | |
prometheus | |
etcd k8s { | |
stubzones | |
endpoint http://etcd:2379 | |
} | |
} |
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
#!/bin/bash | |
# source this file in /root/.bashrc or /root/.zshrc | |
# Sets up the server for chrooted users | |
configure_chrooted() { | |
grep ^chrooted: /etc/group | |
if [[ $? == 0 ]]; then | |
printf "The chrooted group already exists, aborting...\n" | |
exit 1 |
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
#!/bin/bash -xe | |
deinit() { | |
module_path=$1 | |
test -d $module_path | |
current_branch=$(git rev-parse --abbrev-ref HEAD) | |
url=$(cd $module_path; git config --get remote.origin.url) | |
remote_name=$(basename $url) | |
branch_name=$(basename $url) | |
head=$(cd $module_path; git rev-parse HEAD) |
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
npm list --json | |
{ | |
"name": "@secoya/rabbitmq-tools", | |
"version": "0.1.8", | |
"problems": [ | |
"missing: amqplib@0.4.2, required by @secoya/rabbitmq-tools@0.1.8", | |
"missing: babel-runtime@6.9.2, required by @secoya/rabbitmq-tools@0.1.8", | |
"missing: bitsyntax@0.0.4, required by amqplib@0.4.2", | |
"missing: buffer-more-ints@0.0.2, required by amqplib@0.4.2", | |
"missing: readable-stream@1.1.14, required by amqplib@0.4.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
#!/bin/bash -e | |
function merge_repo_to_subdir { | |
local url=$1 | |
local commit=$2 | |
local module_path=$3 | |
if [[ -z $url || -z $commit || -z $module_path ]]; then | |
echo "Usage: merge-repo-to-subdir.sh URL BRANCH PATH" >&2 | |
exit 1 |
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
#!/usr/bin/env python | |
from collections import Counter | |
import csv | |
all_tags = [] | |
lines = [] | |
with open('passpack.csv') as passwords_handle: | |
passwords = csv.reader(passwords_handle, delimiter=',', | |
quotechar='"', quoting=csv.QUOTE_MINIMAL) |
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
#/usr/bin/php | |
<?php | |
$mysqli = new mysqli('hostname', 'username', 'password'); | |
$result = $mysqli->query( | |
"SELECT `TABLE_SCHEMA`, `TABLE_NAME` FROM `information_schema`.`TABLES` | |
WHERE | |
`TABLE_COLLATION` != 'utf8_general_ci' | |
AND `TABLE_SCHEMA` != 'mysql' | |
AND `TABLE_SCHEMA` != 'information_schema'"); |