Skip to content

Instantly share code, notes, and snippets.

View Kuzyashin's full-sized avatar
😀
Some shit

Alexey Kuzyashin Kuzyashin

😀
Some shit
View GitHub Profile
#!/bin/bash
export DEBIAN_FRONTEND="noninteractive"
export KUBERNETES_VERSION="1.24.10-00"
export DPKG_LOCK_TIMOUT="-1"
#############################################
# Update && upgrade && install docker.io #
#############################################
sudo apt-get update && sudo apt-get upgrade -y
@Kuzyashin
Kuzyashin / chatgpt.py
Created March 19, 2023 06:01
chatgpt.py
import sys
import requests
API_KEY = "YOUR_API_KEY"
ENDPOINT = "https://api.openai.com/v1/engines/davinci-codex/completions"
HEADERS = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_KEY}"
}
SESSION_ID = "your_session_id"
@Kuzyashin
Kuzyashin / refreash_helm.sh
Created May 31, 2023 13:58 — forked from naotookuda/refreash_helm.sh
How to refresh "helm" cache ?
# !/bin/bash
# Remove all files in these directories.
rm -rf ~/.helm/cache/archive/*
rm -rf ~/.helm/repository/cache/*
# Refreash repository configurations
helm repo update
#That's all.
#If you "helm search" next time, you can find newest stable charts in repository.