Skip to content

Instantly share code, notes, and snippets.

View carlosonunez's full-sized avatar

Carlos Nunez carlosonunez

View GitHub Profile
@carlosonunez
carlosonunez / Dockerfile
Last active February 4, 2024 15:47
ugit, but even smaller!
FROM alpine:3.18 as base
ENV ESSENTIAL="tar sh"
ENV DEPS="ugit git fzf tput nl cut bash sed awk tr env xargs"
RUN apk add --no-cache \
bash \
coreutils \
git \
ncurses \
ncurses-terminfo \
@carlosonunez
carlosonunez / lima.yaml
Created November 12, 2023 16:42
Lima example
# A template to use Docker (rootful) instead of containerd & nerdctl
# $ limactl start ./docker-rootful.yaml
# $ limactl shell docker-roootful docker run -it -v $HOME:$HOME --rm alpine
# To run `docker` on the host (assumes docker-cli is installed):
# $ export DOCKER_HOST=$(limactl list docker-rootful --format 'unix://{{.Dir}}/sock/docker.sock')
# $ docker ...
# This template requires Lima v0.8.0 or later
images:
@carlosonunez
carlosonunez / log.txt
Created May 19, 2023 16:25
minikube + qemu2 + !kindnet issue
*
* ==> Audit <==
* |---------|-------------------------------------------------------|----------|------|---------|---------------------|---------------------|
| Command | Args | Profile | User | Version | Start Time | End Time |
|---------|-------------------------------------------------------|----------|------|---------|---------------------|---------------------|
| start | --cni=calico | minikube | cn | v1.30.1 | 18 May 23 18:37 CDT | 18 May 23 18:38 CDT |
| delete | | minikube | cn | v1.30.1 | 18 May 23 18:39 CDT | 18 May 23 18:39 CDT |
| start | --cni=calico | minikube | cn | v1.30.1 | 18 May 23 18:39 CDT | 18 May 23 18:39 CDT |
| start | --cni=/tmp/antrea.yaml | minikube | cn | v1.30.1 | 18 May 23 18:40 CDT | |
| delete |
@carlosonunez
carlosonunez / AssumeRolePolicy.json
Created March 7, 2023 13:27
Use this JSON to create the AssumeRolePolicy IAM policy used within "Kubernetes: Your First Project".
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["sts:AssumeRole"],
"Resource": "*"
}]
}
@carlosonunez
carlosonunez / 0.10.0-kubelet-logs
Created March 25, 2022 04:13
logs from kubelet in kind cluster for TCE v0.10.0
This file has been truncated, but you can view the full file.
-- Logs begin at Fri 2022-03-25 04:01:58 UTC, end at Fri 2022-03-25 04:11:11 UTC. --
Mar 25 04:01:58 test-control-plane systemd[1]: Started kubelet: The Kubernetes Node Agent.
Mar 25 04:01:58 test-control-plane kubelet[126]: Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Mar 25 04:01:58 test-control-plane kubelet[126]: E0325 04:01:58.628965 126 server.go:204] "Failed to load kubelet config file" err="failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file \"/var/lib/kubelet/config.yaml\", error: open /var/lib/kubelet/config.yaml: no such file or directory" path="/var/lib/kubelet/config.yaml"
Mar 25 04:01:58 test-control-plane systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Mar 25 04:01:58 test-control-plane system
arch: default
images:
- location: "~/Downloads/impish-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "~/Downloads/impish-server-cloudimg-arm64.img"
arch: "aarch64"
- location: https://github.com/lima-vm/alpine-lima/releases/download/v0.2.3/alpine-lima-rd-3.14.3-aarch64.iso
arch: "aarch64"
digest: "sha512:277d2140f9c8adb2d1777103c6ce69cc079375d66944f8745d6f786216e3a7b197e813384a6c113b3fdf78e4f65bb129b997f358819daa2a3af113b1caab0dba"
- location: https://github.com/lima-vm/alpine-lima/releases/download/v0.2.3/alpine-lima-rd-3.14.3-x86_64.iso
@carlosonunez
carlosonunez / homebridge_docker_compose.yml
Last active September 12, 2023 15:28
HomeBridge Docker Compose
version: '2'
services:
homebridge:
image: homebridge/homebridge
container_name: homebridge
restart: always
network_mode: host
environment:
- TZ=America/Chicago
- PGID=1000
@carlosonunez
carlosonunez / docker-compose.pihole.yml
Created September 1, 2021 06:27
pi_hole_no_admin_password
version: "3"
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
@carlosonunez
carlosonunez / combating_misinformation_and_fake_news.md
Last active August 27, 2021 18:35
Combating Misinformation and Fake News

originally from Reddit; source

So much of the misinformation that gets spread stems from online sources like Facebook and Twitter. Usually, the root of the data that produced the misinformation stems from a website.

Here are some cool tips to help you know what's probably real and what's probably not while you're surfin' the World Wide Web.

FactCheck.org is your friend

FactCheck.org is an unbiased (to my knowledge) place to check the facts. They even cover viral tweets and Instagram posts, like this one. It's an amazing resource in helping combat misinformation.

@carlosonunez
carlosonunez / use_velero_with_kind.md
Created March 4, 2021 21:42
Use Velero with Kind without Minio

This quick Gist will show you how to get Velero up and running with Kind without using Minio. You might find this useful if you need a quick instance of Velero for testing or are just getting started with the tool but do not have access to AWS, Azure, or GCP.

Prereqs

  • Docker
  • Helm
  • Velero (brew install velero, choco install velero, or build from source)