Skip to content

Instantly share code, notes, and snippets.

View kksudo's full-sized avatar
:octocat:
Software is like sex: It’s better when it’s free.

Kirill kksudo

:octocat:
Software is like sex: It’s better when it’s free.
View GitHub Profile
@kksudo
kksudo / table.csv
Last active July 30, 2024 21:06
https://medium.com/p/9b5827660bcc Warm-Up Kubernetes Node with large image size: 3GB size, 1000 PODS, from 1 hour to seconds
Step Init deploy step Pre deploy step Deploy Total time Diff
Without preheat 0 0 11m 21s 11m 21s 0
With preheat 8 seconds 58 seconds 25 seconds 1m 31s -9m 50s
@kksudo
kksudo / vpn-instructions.md
Last active December 8, 2024 09:06
Настраиваем подключение к впн Устанавливайте только Stable версии приложений!

Настраиваем подключение к впн Устанавливайте только Stable версии приложений!

Подробнее про клиенты и настройку можно почитать по этой ссылке

Android

  1. NekoBox for Android
  • Скачать и установить приложение на смартфон.
@kksudo
kksudo / aws-s3-test-connection.sh
Last active October 10, 2023 17:22
Test connection to AWS S3 bucket using AWS CLI from bash script.
#!/usr/bin/env bash
set -eo pipefail
# Description: Test connection to AWS S3 bucket using AWS CLI from bash script.
# Prerequisites:
# - Install jq https://stedolan.github.io/jq/download/
# - Install AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
# Author: Kirill https://Kazakov.xyz
@kksudo
kksudo / .zshenv
Last active March 24, 2023 19:26
bash_profile file is a personal initialization file for configuring the user environment.
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='vim'
fi
export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export FPATH=/opt/linuxbrew/.linuxbrew/share/zsh/site-functions:$FPATH
@kksudo
kksudo / certificate_synthetic.js
Created April 7, 2022 15:15 — forked from adamcrews/certificate_synthetic.js
New Relic SSL/TLS Synthetic
/*
To use this synthetic, set the following Secure credentials:
NEW_RELIC_INSIGHTS_API_KEY - Your api key from the account settings.
NEW_RELIC_ACCOUNT_ID - Your account ID, also found in the account settings.
CERTS_TO_MONITOR - A list of hosts to check via https, separated by a comma and a space, for example:
host.example.com, foo.example.com
Create a new Synthetic monitor, copy the entire contents of this script to the monitor.
Set the monitor to run once a day from a single location.
@kksudo
kksudo / iam.tf
Created November 29, 2021 14:28
SkillFactory, a task solution ECS with EC2. Getting started with the classic console using Amazon EC2
# This role has a trust relationship which allows
# to assume the role of ec2
resource "aws_iam_role" "ecs" {
name = "${var.appName}_ecs_${var.environ}"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
@kksudo
kksudo / fix-salt-keys.sh
Created September 23, 2021 15:19
FIx the salt minion, when the master key on the salt-master changed
#!/bin/bash
invoke-rc.d salt-minion stop && \
rm -rf /etc/salt/pki/* && \
invoke-rc.d salt-minion start
printf "\nminion %s restarted\n" $(cat /etc/salt/minion_id)
@kksudo
kksudo / CKA-table-list-questions
Last active June 23, 2021 11:24
A predefined list table with all questions (16-20), useful to pass the CKA exam
#| weight | total score | correct (+ or -)
1 6 6 | +
2 3 9 | -
3 3 12 |
4 3 15 |
5 6 21 |
6 6 27 |
7 3 30 |
8 3 33 |
9 6 39 |
@kksudo
kksudo / k8s-bookmarks-CKA-CKAD.html
Created April 11, 2021 19:46
A useful kubernetes bookmarks || Certified Kubernetes Application (CKA): ProTips to pass exam 2021
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1616427741" LAST_MODIFIED="1617895617" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3>
<DT><H3 ADD_DATE="1616428159" LAST_MODIFIED="1616428159">CKA special</H3>
@kksudo
kksudo / test.sh
Created July 29, 2020 17:29
demo
#!/usr/bin/env bash
echo "Hello, today is $(date)"