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
admin: | |
access_log_path: /dev/null | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 10001 | |
static_resources: | |
listeners: | |
- name: listener_0 |
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
func newResource(hostname, version, serviceName string) *resource.Resource { | |
return resource.NewWithAttributes( | |
semconv.SchemaURL, | |
semconv.ServiceNameKey.String(serviceName), | |
semconv.ServiceVersionKey.String(version), | |
semconv.ServiceInstanceIDKey.String(hostname), | |
semconv.TelemetrySDKLanguageGo, | |
semconv.TelemetrySDKVersionKey.String("1.7.0"), | |
semconv.TelemetrySDKNameKey.String("opentelemetry"), | |
) |
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
defaults write NSGlobalDomain KeyRepeat -int 0 | |
#https://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder |
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
extraArgs: {} | |
agent: | |
## If false, agent will not be installed | |
## | |
enabled: true | |
## agent container name | |
## | |
name: agent |
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
version: '2' | |
services: | |
traefik: | |
image: traefik | |
command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG --entryPoints="Name:https Address::443 TLS:/certs/server.crt,/certs/server.key;/certs_br/server.crt,/certs_br/server.key" --entryPoints="Name:http Address::80 Redirect.EntryPoint:https" | |
ports: | |
- "80:80" | |
- "8080:8080" |
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
from kubernetes import client, config | |
from datetime import datetime | |
def extract_days(pod_timestamp): | |
delta = datetime.now().replace(tzinfo=None) - pod_timestamp.replace(tzinfo=None) | |
return delta.days | |
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
def jobName = "folder/job/branch" | |
def job = Jenkins.instance.getItemByFullName(jobName) | |
job.getBuilds().each { it.delete() } | |
job.nextBuildNumber = 1 | |
job.save() |
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: kops/v1alpha2 | |
kind: Cluster | |
metadata: | |
creationTimestamp: 2018-06-13T17:45:29Z | |
name: k8s-sbx.avenuecode.io | |
spec: | |
api: | |
dns: {} | |
authorization: | |
rbac: {} |
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
hosts=(host1 host2) | |
for host in "${hosts[@]}" | |
do | |
ssh-copy-id -i ~/.ssh/id_rsa.pub a_bvale@$host | |
done |
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
psql -h 127.0.0.1 -p 5432 -U postgres acdc_development < acdc_production.sql |
NewerOlder