Skip to content

Instantly share code, notes, and snippets.

🇭🇺
"Works on my laptop"

Akos Veres akosveres

🇭🇺
"Works on my laptop"
Block or report user

Report or block akosveres

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:bdc4db57de0f69aff7d5c64bf63e498e
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
finalizers:
- kubernetes.io/pvc-protection
name: traefik-local-path-pvc
namespace: kube-system
spec:
accessModes:
View env.sh
#!/bin/bash
export SECRET1=Blabla
export SLACK_WEBHOOK=http://slack.com/blabla
View keybase.md

Keybase proof

I hereby claim:

  • I am akosveres on github.
  • I am akosee (https://keybase.io/akosee) on keybase.
  • I have a public key ASDePmiJnM0H7lBh1DA8cZGTB1XBeJRZl_rSsV7md4oDZQo

To claim this, I am signing this object:

@akosveres
akosveres / gist:f2bd41bfc17e8edfc3edec0eeae747b7
Last active Aug 6, 2018 — forked from xxxVxxx/gist:9648264fd6f41bbb1f65
boto3 aws find all IAM accesskeys details for the account
View gist:f2bd41bfc17e8edfc3edec0eeae747b7
import boto3
resource = boto3.resource('iam')
client = boto3.client("iam")
KEY = 'LastUsedDate'
for user in resource.users.all():
Metadata = client.list_access_keys(UserName=user.user_name)
if Metadata['AccessKeyMetadata'] :
@akosveres
akosveres / mariadb.yml
Last active Jan 16, 2020
Mariadb + phpmyadmin docker-compose
View mariadb.yml
version: "2"
services:
db:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_DATABASE=radio
volumes:
- ./database:/var/lib/mysql
phpmyadmin:
View gist:0785a67ab668ce7e74f9d09e0501a4c0
docker run -it --rm alpine /bin/ash
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
/etc/apk # cat repositories
http://dl-cdn.alpinelinux.org/alpine/v3.4/main
http://dl-cdn.alpinelinux.org/alpine/v3.4/community
/etc/apk # apk add stableapp newapp@edge bleedingapp@testing
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
View prom.conf
global:
scrape_interval: 60s
evaluation_interval: 60s
external_labels:
monitor: '{{ ansible_fqdn }}'
rule_files:
- /etc/prometheus/rules/general.rules
scrape_configs:
View gist:650930791fae2730283d4507a2799da0
FROM prom/prometheus:master
MAINTAINER me
COPY prometheus.yml /etc/prometheus/prometheus.yml
COPY targets/ /etc/prometheus/targets/
COPY rules/ /etc/prometheus/rules/
EXPOSE 9090
VOLUME [ "/prometheus" ]
WORKDIR /prometheus
You can’t perform that action at this time.