Skip to content

Instantly share code, notes, and snippets.

View zhilyaev's full-sized avatar
💎
average devops enjoyer

Dmitrii Zhiliaev zhilyaev

💎
average devops enjoyer
View GitHub Profile
@zhilyaev
zhilyaev / remote.tmpl
Created March 26, 2025 18:33
helmwave
context: {{ . }}!
@zhilyaev
zhilyaev / keybase.md
Last active December 8, 2022 17:35
keybase.md

Keybase proof

I hereby claim:

  • I am zhilyaev on github.
  • I am diamon (https://keybase.io/diamon) on keybase.
  • I have a public key whose fingerprint is 9AA0 3DA2 194C 4EAD AF04 04B6 DE20 7716 6455 6F5E

To claim this, I am signing this object:

image:
pullPolicy: {{ .Release.Store.pullPolicy }}
@zhilyaev
zhilyaev / gitlab-cloner.sh
Last active October 31, 2024 22:26
gitlab-cloner.sh
#!/usr/bin/env bash
HOST_API="gitlab.com"
TOKEN="<token>"
fullPath="<path>"
q="{group (fullPath: \"$fullPath\") {projects(includeSubgroups: true) {nodes {sshUrlToRepo}}}}"
# brew install httpie
repos=`https -A bearer -a $TOKEN -b https://$HOST_API/api/graphql query="$q" \
@zhilyaev
zhilyaev / crackzip.sh
Created January 11, 2021 18:06
CrackZip
#!/bin/bash
# Tested using bash version 4.1.5
for ((i=100000;i<=1000000;i++));
do
unzip -P $i -o $1
if [ $? -eq 0 ]
then
echo "Your password is $i"
break
fi
@zhilyaev
zhilyaev / chicken-or-egg.sh
Last active January 22, 2020 14:41
chicken-or-egg
#!/usr/bin/env bash
for repo in $(curl "https://gitlab.com/api/v4/groups/6969791/projects&include_subgroups=true" | jq '.[].ssh_url_to_repo' | tr -d '"'); do
dir=$(echo $repo | awk -F ":" '{print substr($2, 1, length($2)-4)}')
mkdir -p $dir
git clone $repo $dir
done
cd chicken-or-egg/iac/make
echo "# AWS" > .env

JS is awesome

Node v8.11.4 Lets try understand this shit.

a === b

It's easy

a\b 0 '0' null undefined [] {}
0 true false false false false false