Provisioning Kubernetes Cluster BareMetal with KubeSpray
2x Ubuntu Server 20.04LTS
Relax, I only have one Sunday to work on idea, literally my weekend project. So I tried Deepseek to see if it can help. Surprisingly, it works and it saves me another weekend...
Just chat.deepseek.com (cost = free) with prompts adapted from this gist.
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "sync" | |
| "time" | |
| "go.uber.org/ratelimit" |
Architecture Decision Record (ADR) 004:
Title: Selection of Luxury Vehicle Brand - Audi, BMW, or Porsche?
Status: Accepted
Date: [Insert Date Here]
In our company's history, we have had the privilege of choosing luxury vehicles for company cars and fleet management. We are currently in need of a new vehicle brand that aligns with our values, performance expectations, and budget constraints.
| #include <ESP8266WiFi.h> | |
| extern "C" { | |
| #include "user_interface.h" | |
| } | |
| byte channel; | |
| int maxssids=10; /* how much SSIDs we have */ | |
| char *ssids[] = { |
| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
| #!/usr/bin/env python -u | |
| # -*- coding: utf-8 -*- | |
| # --------------------------------------------------------------------------- | |
| # region-names.py | |
| # Author: Maxim Dubinin ([email protected]) | |
| # About: For each input name search for reference region name and add codes to output. | |
| # Created: 24.03.2014 | |
| # Usage example: python region-names.py in.csv ref.csv out.csv | |
| # --------------------------------------------------------------------------- |
| # Run the last command as root | |
| sudo !! | |
| # Serve current directory tree at http://$HOSTNAME:8000/ | |
| python -m SimpleHTTPServer | |
| # Save a file you edited in vim without the needed permissions | |
| :w !sudo tee % | |
| # change to the previous working directory | |
| cd - | |
| # Runs previous command but replacing | |
| ^foo^bar |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |